> On May 17, 2017, at 7:00 AM, Gao, Liming <liming....@intel.com> 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: af...@apple.com [mailto:af...@apple.com]
> Sent: Wednesday, May 17, 2017 10:43 AM
> To: Gao, Liming <liming....@intel.com>
> Cc: edk2-devel <edk2-devel@lists.01.org>
> 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<https://edk2-docs.gitbooks.io/edk-ii-inf-specification/content/3_edk_ii_inf_file_format/36_%5blibraryclasses%5d_sections.html>
> 
> Thanks,
> 
> Andrew Fish
> 
> 
> On May 16, 2017, at 6:46 PM, Andrew Fish 
> <af...@apple.com<mailto:af...@apple.com>> wrote:
> 
> 
> On May 16, 2017, at 6:41 PM, Gao, Liming 
> <liming....@intel.com<mailto:liming....@intel.com>> 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-boun...@lists.01.org] On Behalf Of
> Andrew Fish
> Sent: Wednesday, May 17, 2017 7:43 AM
> To: edk2-devel <edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>>
> 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<mailto:edk2-devel@lists.01.org>
> https://lists.01.org/mailman/listinfo/edk2-devel
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
> https://lists.01.org/mailman/listinfo/edk2-devel
> 
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org<mailto: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

Reply via email to