Is there a way to conditionally exclude libraries? Let's take this example:
[LibraryClasses]
PeimEntryPoint
PeiServicesLib
PcdLib
HobLib
SerialPortLib
ReportStatusCodeLib
PrintLib
DebugLib
BaseMemoryLib
What if I want to exclude one of the libraries? Say the SerialPortLib or
DebugLib.
Actually. I am rather surprised that there isn't a predefined/uniform way of
doing this. Especially since there is one (-D BUILD_FAT) for the FAT driver
(and no other drivers) but there are so many mother boards without a serial
port these days, yet no simple way to exclude it?
The only thing that I can come up with now is to copy/rename the file and
comment the target library out of it. Then use something like (example):
!if $(SERIAL_PORT_SUPPORT)
EmulatorPkg/Library/../original.inf
!else
EmulatorPkg/Library/../oroginal-NoSerial.inf
!endif
Which of course is rather cumbersome, and thus I hope that there is a better
way of doing this. Hopefully something I have missed. Thanks.
Pike
------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel