From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (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 758672195970A for ; Wed, 17 May 2017 07:00:37 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 May 2017 07:00:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,354,1491289200"; d="scan'208,217";a="1170350955" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga002.fm.intel.com with ESMTP; 17 May 2017 07:00:36 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 17 May 2017 07:00:35 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 17 May 2017 07:00:35 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.246]) by SHSMSX104.ccr.corp.intel.com ([10.239.4.70]) with mapi id 14.03.0319.002; Wed, 17 May 2017 22:00:33 +0800 From: "Gao, Liming" To: "afish@apple.com" CC: edk2-devel Thread-Topic: [edk2] Can I do this in an INF file? Thread-Index: AQHSzp4lxBcYsJmjNkK3EPKKypQGH6H3vl4Q//99MACAAA/OAIABQX6A Date: Wed, 17 May 2017 14:00:32 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14D730072@shsmsx102.ccr.corp.intel.com> References: <4A89E2EF3DFEDB4C8BFDE51014F606A14D72EC72@shsmsx102.ccr.corp.intel.com> <9C5BAB2F-5013-416E-B8A7-1F606DCCE1CB@apple.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 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 14:00:37 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Andrew: I agree this is the spec issue. I submit spec issue https://bugzilla.tian= ocore.org/show_bug.cgi?id=3D548 to track it. 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 i= t 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 ARCH= s, 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 d= ifferent sources, you may create two version INF files to include the diffe= rent 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 UefiRuntime= Lib 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 (fo= r 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