Hi Apianti,
Macros in INF and DEC files are scoped local to the file and cannot be set on
the build command line.
This decision was made purposely in order to support distribution of EDK II
packages and modules. In order to have a clean distribution, nothing in these
meta-data files can be ambiguous and having MACRO statements that can be
defined outside of these files leads to ambiguity.
Cheers,
Larry
From: [email protected] [mailto:[email protected]]
Sent: Tuesday, January 07, 2014 6:51 AM
To: [email protected]
Subject: [edk2-buildtools] Using command line defined macros in all build file
formats
Hello, I am a developer for the Clover boot loader project on sourceforge. We
use EDKII as the base for our legacy firmware and interface to EFI components,
you probably already know this since others from the project have brought bugs
to your attention. I was wondering if it would be possible to use definitions
in DEC format files. This would be very useful since we have included modified
versions of openssl, and would like to be able to switch between versions of
these with a simple definition of the version like -D OPENSSL_VERSION=1.0.1e
from the command line. This works in the DSC and includes the right INF to be
built. It however then fails because it includes the hard coded version from
the DEC which does not honor the definition or !ifndef so it does not define
the version correctly for the DEC and subsequently the version is different for
the include files location. This causes a build conflict since pre 1.0 open ssl
does not work the same as post. I'd rather not have to make multiple copies of
the DEC file just to change one line. Would it be possible to allow these
definitions in every build structure file, so that editing the file is not
required? As it is now multiple files need to be edited just to change the
version, however this could be achieved simply by checking whether the
OPENSSL_VERSION macro was already defined or not and either defining it to a
default version or doing nothing. Thanks for all your work!
apianti
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
edk2-buildtools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-buildtools-devel