public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] [edk2] INF file : use conditional sentence
@ 2019-11-13  8:48 Tiger Liu(BJ-RD)
  0 siblings, 0 replies; 2+ messages in thread
From: Tiger Liu(BJ-RD) @ 2019-11-13  8:48 UTC (permalink / raw)
  To: devel@edk2.groups.io

Dear All:
I have a question about INF file written syntax.
Could I use conditional sentence in INF file?

For example:
[Defines]
......
[Sources]
!ifdef ABC
    a.c
!else
b.c
!endif
......

Thanks


保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.

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

* Re: [edk2-devel] [edk2] INF file : use conditional sentence
@ 2019-11-13 10:09 Tiger Liu(BJ-RD)
  0 siblings, 0 replies; 2+ messages in thread
From: Tiger Liu(BJ-RD) @ 2019-11-13 10:09 UTC (permalink / raw)
  To: devel@edk2.groups.io

Based on INF Spec, maybe FeatureFlagExpress is a choice.
When present, the feature flag expression determines whether the entry line is valid.
If the feature flag expression evaluates to FALSE, this entry will be ignored by the EDK II build tools.

For below example,  is MSFT/GCC FeatureFlag ?
[Sources.Ia32]
  Ia32/DisableCache.c | MSFT
  Ia32/GccInline.c | GCC

Thanks
-----邮件原件-----
发件人: Tiger Liu(BJ-RD)
发送时间: 2019年11月13日 16:49
收件人: devel@edk2.groups.io
主题: [edk2-devel] [edk2] INF file : use conditional sentence

Dear All:
I have a question about INF file written syntax.
Could I use conditional sentence in INF file?

For example:
[Defines]
......
[Sources]
!ifdef ABC
    a.c
!else
b.c
!endif
......

Thanks


保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.

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

end of thread, other threads:[~2019-11-13 10:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-13  8:48 [edk2-devel] [edk2] INF file : use conditional sentence Tiger Liu(BJ-RD)
  -- strict thread matches above, loose matches on Subject: below --
2019-11-13 10:09 Tiger Liu(BJ-RD)

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