From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in24.apple.com (mail-out24.apple.com [17.171.2.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 437F721A16E49 for ; Tue, 16 May 2017 19:43:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1494989006; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=W1nT1+nMuPbh36tmuxQUwJofaH1Zbs4ZR+XupPlWWCA=; b=tE3XURZOuY6RPiUC2zY+toSCYEqqtyJJo1ZSD5HVTca84yK+Mnzr36u49R86vJX7 rK3mnRGaEyzsU/N2FXXTIkZEzP5W/zq3NG/0iiTpR6sUv1+enobco7VRtDRdByx4 /nWcRLQZ9Phc4DNLI7m+vLY60GgiYpcLhe6SeAFr+PsP5/kgRJGZcggeug75roh+ iGPCtp1gZ5gKv9StTZ5mLtD9mOUr5iKTuQnTKBVR2z3Hy8yTjup8ACbpbpCLB5Kg BWvlp0xlHaDhXiDvpUqXycz+0RGmskQC7PR7+9/0QkD+ulO2y9EiUFWE0DYjNqrc TFSORUKxaMTKmjM+QkAMOA==; Received: from relay2.apple.com (relay2.apple.com [17.128.113.67]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail-in24.apple.com (Apple Secure Mail Relay) with SMTP id BE.85.20460.DC8BB195; Tue, 16 May 2017 19:43:25 -0700 (PDT) X-AuditID: 11ab0218-80c229a000004fec-90-591bb8cd6e08 Received: from nwk-mmpp-sz11.apple.com (nwk-mmpp-sz11.apple.com [17.128.115.155]) by relay2.apple.com (Apple SCV relay) with SMTP id 58.5B.07829.CC8BB195; Tue, 16 May 2017 19:43:24 -0700 (PDT) MIME-version: 1.0 Received: from [17.114.154.119] by nwk-mmpp-sz11.apple.com (Oracle Communications Messaging Server 8.0.1.2.20170210 64bit (built Feb 10 2017)) with ESMTPSA id <0OQ2003ZKSWCNT50@nwk-mmpp-sz11.apple.com>; Tue, 16 May 2017 19:43:24 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish Message-id: Date: Tue, 16 May 2017 19:43:24 -0700 In-reply-to: <9C5BAB2F-5013-416E-B8A7-1F606DCCE1CB@apple.com> Cc: edk2-devel To: "Gao, Liming" References: <4A89E2EF3DFEDB4C8BFDE51014F606A14D72EC72@shsmsx102.ccr.corp.intel.com> <9C5BAB2F-5013-416E-B8A7-1F606DCCE1CB@apple.com> X-Mailer: Apple Mail (2.3273) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKLMWRmVeSWpSXmKPExsUi2FDorHtuh3SkwbvJjBZ7Dh1ltlhxbwO7 A5PH4j0vmTy6Z/9jCWCK4rJJSc3JLEst0rdL4Mr4+LmDueB4ZcWx3ntMDYzHsrsYOTkkBEwk zhw6wQ5iCwmsYZLoW+MHE1/8YydzFyMXUPwQo8SRe4vYQBK8AoISPybfYwGxmQXCJA5fuAJV 9I1RYt/EK0wgCWEBcYl3ZzYxg9hsAsoSK+Z/YIdotpF4OfECO0SNocTBSb/ABrEIqEr8270P rJdTwFZi2oxrbBALNCS+rt4OVi8CZD+89xtq2U5GiRenm1ghTpWVuDX7ElhCQmAPm0TzqdNs ExiFZiG5dhaSayFsLYnvj1qB4hxAtrzEwfOyEGFNiWf3PrFD2NoST95dYF3AyLaKUTg3MTNH NzPPyEQvsaAgJ1UvOT93EyMoHlYzSexg/PLa8BCjAAejEg/vBC7pSCHWxLLiytxDjNIcLEri vHKuQCGB9MSS1OzU1ILUovii0pzU4kOMTBycUg2Mp2X663SPaDndnVInt7ic6+/TzdanKrZ+ LXreNuH/9dRTHg82bmc1ramuYlwbpjtt7tLlbJtn9GbES0xN6WsLaFzis/7n4Ub78M1nJvrd Ces2+Kbg9naX6FqpsIK1RzV25HeESDNJbn09rbf39OrOP7F/duza+Dvhy4xvS51vLHu+qvBt sO2nD0osxRmJhlrMRcWJAKrz8jhoAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPIsWRmVeSWpSXmKPExsUi2FA8W/fMDulIgzuXzC32HDrKbLHi3gZ2 ByaPxXteMnl0z/7HEsAUxWWTkpqTWZZapG+XwJXx8XMHc8HxyopjvfeYGhiPZXcxcnJICJhI LP6xk7mLkYtDSOAQo8SRe4vYQBK8AoISPybfYwGxmQXCJA5fuAJV9I1RYt/EK0wgCWEBcYl3 ZzYxg9hsAsoSK+Z/YIdotpF4OfECO0SNocTBSb/ABrEIqEr8270PrJdTwFZi2oxrbBALNCS+ rt4OVi8CZD+89xtq2U5GiRenm1ghTpWVuDX7EvMERv5ZSA6cheRACFtL4vujVqA4B5AtL3Hw vCxEWFPi2b1P7BC2tsSTdxdYFzCyrWIUKErNSaw00kssKMhJ1UvOz93ECA7fQucdjMeWWR1i FOBgVOLhteCQjhRiTSwrrswFhhIHs5IIr8t8oBBvSmJlVWpRfnxRaU5q8SHGiYxAX05klhJN zgdGV15JvKGJiYGJsbGZsbG5iTkthZXEeetXAF0kkJ5YkpqdmlqQWgRzFBMHp1QD41x+K7td /eF83ew7382cqPXerkbWVGKXWE7o8YmzeSqnavsW/ubdvb2XW5BdiPNX5n+l9obXzyfXu+6b kqwx1c/l4uWQzgNWJd128V8to5VlXDJ2/f8ldLvhVU9XTTbzLQ63RasqVAynX1YNPV4VGJJb L28rJv7gmfT5vjUn+LfcToxiaP2qxFKckWioxVxUnAgAeXQibtICAAA= X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: Re: Can I do this in an INF file? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2017 02:43:27 -0000 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT Liming, Why does INF syntax support [LibraryClasses.common.DXE_RUNTIME_DRIVER] if it does nothing? https://edk2-docs.gitbooks.io/edk-ii-inf-specification/content/3_edk_ii_inf_file_format/36_[libraryclasses]_sections.html Thanks, Andrew Fish > On May 16, 2017, at 6:46 PM, Andrew Fish wrote: > >> >> On May 16, 2017, at 6:41 PM, Gao, Liming > wrote: >> >> Andrew: >> There is no such usage. INF can specify source files for the different ARCHs, but not specify source files for the different module type. In fact, INF module type is fixed. It can't be changed to other type in build time. If you expect the library to be linked to the different type driver with the different sources, you may create two version INF files to include the different source files. >> > > Liming, > > Thanks. Yes given how the build system works what I asked is not possible. > > I ended up doing it the correct way and made an instance of the UefiRuntimeLib to link against. > > Thanks, > > Andrew Fish > >> Thanks >> Liming >>> -----Original Message----- >>> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of >>> Andrew Fish >>> Sent: Wednesday, May 17, 2017 7:43 AM >>> To: edk2-devel >>> Subject: [edk2] Can I do this in an INF file? >>> >>> I'm trying to cross compile a runtime library to work in an Application (for >>> testing). I can't seem to restrict files and libs to specific module types? >>> >>> [Sources.common.UEFI_APPLICATION] >>> FakeRuntime.c >>> >>> >>> [LibraryClasses.common.DXE_RUNTIME_DRIVER] >>> UefiRuntimeLib >>> >>> Am I using the wrong syntax? >>> >>> Thanks, >>> >>> Andrew Fish >>> _______________________________________________ >>> edk2-devel mailing list >>> edk2-devel@lists.01.org >>> https://lists.01.org/mailman/listinfo/edk2-devel >> _______________________________________________ >> edk2-devel mailing list >> edk2-devel@lists.01.org >> https://lists.01.org/mailman/listinfo/edk2-devel > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel