public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Can I do this in an INF file?
@ 2017-05-16 23:42 Andrew Fish
  2017-05-17  1:41 ` Gao, Liming
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Fish @ 2017-05-16 23:42 UTC (permalink / raw)
  To: edk2-devel

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can I do this in an INF file?
  2017-05-16 23:42 Can I do this in an INF file? Andrew Fish
@ 2017-05-17  1:41 ` Gao, Liming
  2017-05-17  1:46   ` Andrew Fish
  0 siblings, 1 reply; 6+ messages in thread
From: Gao, Liming @ 2017-05-17  1:41 UTC (permalink / raw)
  To: Andrew Fish, edk2-devel

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.  

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 <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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can I do this in an INF file?
  2017-05-17  1:41 ` Gao, Liming
@ 2017-05-17  1:46   ` Andrew Fish
  2017-05-17  2:43     ` Andrew Fish
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Fish @ 2017-05-17  1:46 UTC (permalink / raw)
  To: Gao, Liming; +Cc: edk2-devel


> On May 16, 2017, at 6:41 PM, Gao, Liming <liming.gao@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-bounces@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
> https://lists.01.org/mailman/listinfo/edk2-devel



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can I do this in an INF file?
  2017-05-17  1:46   ` Andrew Fish
@ 2017-05-17  2:43     ` Andrew Fish
  2017-05-17 14:00       ` Gao, Liming
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Fish @ 2017-05-17  2:43 UTC (permalink / raw)
  To: Gao, Liming; +Cc: edk2-devel

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 <afish@apple.com> wrote:
> 
>> 
>> On May 16, 2017, at 6:41 PM, Gao, Liming <liming.gao@intel.com <mailto:liming.gao@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-bounces@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>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can I do this in an INF file?
  2017-05-17  2:43     ` Andrew Fish
@ 2017-05-17 14:00       ` Gao, Liming
  2017-05-17 15:41         ` Andrew Fish
  0 siblings, 1 reply; 6+ messages in thread
From: Gao, Liming @ 2017-05-17 14:00 UTC (permalink / raw)
  To: afish@apple.com; +Cc: edk2-devel

Andrew:
  I agree this is the spec issue. I submit spec issue https://bugzilla.tianocore.org/show_bug.cgi?id=548 to track it.

From: afish@apple.com [mailto:afish@apple.com]
Sent: Wednesday, May 17, 2017 10:43 AM
To: Gao, Liming <liming.gao@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 <afish@apple.com<mailto:afish@apple.com>> wrote:


On May 16, 2017, at 6:41 PM, Gao, Liming <liming.gao@intel.com<mailto:liming.gao@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-bounces@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



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can I do this in an INF file?
  2017-05-17 14:00       ` Gao, Liming
@ 2017-05-17 15:41         ` Andrew Fish
  0 siblings, 0 replies; 6+ messages in thread
From: Andrew Fish @ 2017-05-17 15:41 UTC (permalink / raw)
  To: Gao, Liming; +Cc: edk2-devel


> On May 17, 2017, at 7:00 AM, Gao, Liming <liming.gao@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: afish@apple.com [mailto:afish@apple.com]
> Sent: Wednesday, May 17, 2017 10:43 AM
> To: Gao, Liming <liming.gao@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 <afish@apple.com<mailto:afish@apple.com>> wrote:
> 
> 
> On May 16, 2017, at 6:41 PM, Gao, Liming <liming.gao@intel.com<mailto:liming.gao@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-bounces@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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-17 15:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-16 23:42 Can I do this in an INF file? Andrew Fish
2017-05-17  1:41 ` Gao, Liming
2017-05-17  1:46   ` Andrew Fish
2017-05-17  2:43     ` Andrew Fish
2017-05-17 14:00       ` Gao, Liming
2017-05-17 15:41         ` Andrew Fish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox