Does anyone here know why syntax for .inf does not support #if FEATUREA
 #endif?

I have a platform with different features disable/enable by config options
in .dsc file.  For example FEATUREA and in .DSC file there are:

[Components.IA32]

!if $(FEATUREA) == TRUE

  MyPkg/A.inf

!endif

!if $(FEATUREB) == TRUE

  MyPkg/B.inf

!endif
A.efi will install PPI with GUID_A and B.efi will install PPI with GUID_B

I also have other PEI modules that once A.efi was there then it need to
depends on it so in the .inf file it has:

[Depex]
  PpiGuidA

However I like it to be

[Depex]
#if $(FEATUREA) == TRUE
  PpiGuidA
#else
  TRUE
#endif

But current .inf spec did not support this and it will cause build error.

Any reason why .inf does not support #if ... #endif while in .dsc and .fdf
 it is supported?

Thanks,
Tao
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to