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 <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>
>>> 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 <mailto:edk2-devel@lists.01.org>
>> https://lists.01.org/mailman/listinfo/edk2-devel 
>> <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 
> <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