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 A567721959725 for ; Wed, 17 May 2017 08:41:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1495035693; 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=EBbeVL7MqNhK85uDU+aj0xHn7JTRDUxBfxXac08ckDs=; b=uNfh3xPXU6QNyLk4RKrJGhid0bQGvv6mhSUMCAdPZoUuUQLYvvov+98LkhIPfk6n FeIHjfrPP4EsNK4NRhjau9W8sGO3fv3Cgzok2DmKD1/1sByElBFr6wlOlUvNmJkb YzcBpKZoc8cWoJcp7vVsnsVzXFCjRXf1J/2u2vMm0P7J9+wJgpUwYIq2z23Pvmdh 9zESfYeJiRsU2RtmJPr39sVLNVsw2vrby7cS7ihEUUdcU60TxdB6xa73WXkyiAsy 4Spur21QeMGk76MVRkCX5gRTi1Hsd6hzQ4gDrf57QLh+CZycP8BDSrc9wtir4jd2 EFqNUqVEE36sVPV2U7ScGQ==; Received: from relay6.apple.com (relay6.apple.com [17.128.113.90]) (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 3B.16.20460.D2F6C195; Wed, 17 May 2017 08:41:33 -0700 (PDT) X-AuditID: 11ab0218-80c229a000004fec-6b-591c6f2dee7f Received: from nwk-mmpp-sz09.apple.com (nwk-mmpp-sz09.apple.com [17.128.115.80]) by relay6.apple.com (Apple SCV relay) with SMTP id CF.8D.09762.C2F6C195; Wed, 17 May 2017 08:41:32 -0700 (PDT) MIME-version: 1.0 Received: from [17.153.94.75] by nwk-mmpp-sz09.apple.com (Oracle Communications Messaging Server 8.0.1.2.20170210 64bit (built Feb 10 2017)) with ESMTPSA id <0OQ30081GSX7IO00@nwk-mmpp-sz09.apple.com>; Wed, 17 May 2017 08:41:32 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish In-reply-to: <4A89E2EF3DFEDB4C8BFDE51014F606A14D730072@shsmsx102.ccr.corp.intel.com> Date: Wed, 17 May 2017 08:41:31 -0700 Cc: edk2-devel Message-id: References: <4A89E2EF3DFEDB4C8BFDE51014F606A14D72EC72@shsmsx102.ccr.corp.intel.com> <9C5BAB2F-5013-416E-B8A7-1F606DCCE1CB@apple.com> <4A89E2EF3DFEDB4C8BFDE51014F606A14D730072@shsmsx102.ccr.corp.intel.com> To: "Gao, Liming" X-Mailer: Apple Mail (2.3273) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDLMWRmVeSWpSXmKPExsUi2FAYpaubLxNp8H22kcWeQ0eZLVbc28Du wOSxeM9LJo/u2f9YApiiuGxSUnMyy1KL9O0SuDLeNSxhKtgpVbHtxES2BsYOsS5GTg4JAROJ KZ+usHQxcnEICaxhkji07gVbFyMHWGLt7CKI+EFGiVPNZ9lAGngFBCV+TL7HAlLDLCAvcfC8 LEiYWUBL4vujVqg5XxglPr27wAiSEBYQl3h3ZhMzhG0ocXDSLxYQm01AWWLF/A/sIDanQJjE 8xmbWEFsFgFViefvtzFCDNWQ+Lp6OzvEXhuJc++XMkMs2MYk8WbqPbChIkBFD+/9Zob4Rlbi 1uxLYEUSAivYJFpu/WCcwCg8C8nhsxAOn4Xk8AWMzKsYhXMTM3N0M/OMTPQSCwpyUvWS83M3 MYKCezWTxA7GL68NDzEKcDAq8fBGBMhECrEmlhVX5h5ilOZgURLnlXOVjhQSSE8sSc1OTS1I LYovKs1JLT7EyMTBKdXAeOB3EffijYKJ/771rp68XvRqjsie+WHSsxZsf6LYURPuxN+pa7n/ bGS287vFM97GqBzd8Pn5Wtljom4e0fJXXkulWNguuu8bZPylWPelr5/gXobmNS9eZ6y6t0yj L/qKaVu0p+HKhyq290v9QksfSqRmzJdbnf+GM4Bp0erULT1XON9V6nCrK7EUZyQaajEXFScC AG/Il5lPAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkeLIzCtJLcpLzFFi42IRbCgO0NXJl4k0eHKR32LPoaPMFivubWB3 YPJYvOclk0f37H8sAUxRXDYpqTmZZalF+nYJXBnvGpYwFeyUqth2YiJbA2OHWBcjB4eEgInE 2tlFXYxcHEICBxklTjWfZeti5OTgFRCU+DH5HgtIDbOAvMTB87IgYWYBLYnvj1pZIOq/MEp8 eneBESQhLCAu8e7MJmYI21Di4KRfLCA2m4CyxIr5H9hBbE6BMInnMzaxgtgsAqoSz99vY4QY qiHxdfV2doi9NhLn3i9lhliwjUnizdR7YENFgIoe3vsNZksIyErcmn2JeQKjwCwkt85CuHUW klsXMDKvYhQoSs1JrDTTSywoyEnVS87P3cQIDsXCqB2MDcutDjEKcDAq8fBGBMhECrEmlhVX 5h5ilOBgVhLh3Z8DFOJNSaysSi3Kjy8qzUktPsRYBfTARGYp0eR8YJzklcQbmpgYmBgbmxkb m5uYU0VYSZy3boV0pJBAemJJanZqakFqEcxyJg5OqQbGfr9Ea8tLPWvW/irYNk1t7g+te7K1 r6LL+wpb1tmqSqx6zCq+smv3afsvKTXNvHwrvOZUss2WunA9zy/SL+ZDwHqJ9sIz529JWgcE /912X2Q797MLsh/+HtxizV98wvZ4gFzomoMfps9ombJdvmLawtjrz+c/D/sfw+967tulqX4T BCV5eSdoKLEUZyQaajEXFScCAAVB5gKgAgAA 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 15:41:34 -0000 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII > On May 17, 2017, at 7:00 AM, Gao, Liming wrote: > > Andrew: > I agree this is the spec issue. I submit spec issue https://bugzilla.tianocore.org/show_bug.cgi?id=548 to track it. > Liming, Thanks. I think it may be present in a few more sections. I got distracted trying to figure out what BNF was saying and I forgot that there would be no way to implement what I was trying to do in the current build system. Thanks, Andrew Fish > From: afish@apple.com [mailto:afish@apple.com] > Sent: Wednesday, May 17, 2017 10:43 AM > To: Gao, Liming > Cc: edk2-devel > Subject: Re: [edk2] Can I do this in an INF file? > > 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 > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel