From c801cb29d64764fa8082ec2ab17dd12f74b3143f Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 19 Aug 2014 16:17:25 +0100 Subject: [build] Allow for named configurations at build time Allow named configurations to be specified via the CONFIG=... build parameter. For headers in config/*.h which support named configurations, the following files will be included when building with CONFIG=: - config/defaults/.h (e.g. config/defaults/pcbios.h) - config/
.h - config//
.h (only if the directory config/ exists) - config/local/
.h (autocreated if necessary) - config/local//
.h (autocreated if necessary) This mechanism allows for predefined named configurations to be checked in to the source tree, as a directory config/ containing all of the required header files. The mechanism also allows for users to define multiple local configurations, by creating header files in the directory config/local/. Note that the config/*.h files which are used only to configure internal iPXE APIs (e.g. config/ioapi.h) cannot be modified via a named configuration. This avoids rebuilding the entire iPXE codebase whenever switching to a different named configuration. Inspired-by: Robin Smidsrød Tested-by: Robin Smidsrød Signed-off-by: Michael Brown --- src/config/sideband.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/config/sideband.h') diff --git a/src/config/sideband.h b/src/config/sideband.h index 2e2a8d419..039bb5d09 100644 --- a/src/config/sideband.h +++ b/src/config/sideband.h @@ -11,6 +11,9 @@ FILE_LICENCE ( GPL2_OR_LATER ); //#define CONFIG_BOFM /* IBM's BladeCenter Open Fabric Manager */ +#include +#include NAMED_CONFIG(sideband.h) #include +#include LOCAL_NAMED_CONFIG(sideband.h) #endif /* CONFIG_SIDEBAND_H */ -- cgit v1.2.3-55-g7522