mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 00:17:57 +03:00
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=<name>: - config/defaults/<platform>.h (e.g. config/defaults/pcbios.h) - config/<header>.h - config/<name>/<header>.h (only if the directory config/<name> exists) - config/local/<header>.h (autocreated if necessary) - config/local/<name>/<header>.h (autocreated if necessary) This mechanism allows for predefined named configurations to be checked in to the source tree, as a directory config/<name> 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/<name>. 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 <robin@smidsrod.no> Tested-by: Robin Smidsrød <robin@smidsrod.no> Signed-off-by: Michael Brown <mcb30@ipxe.org>
39 lines
795 B
C
39 lines
795 B
C
#ifndef CONFIG_COLOUR_H
|
|
#define CONFIG_COLOUR_H
|
|
|
|
/** @file
|
|
*
|
|
* Display colour configuration
|
|
*
|
|
*/
|
|
|
|
FILE_LICENCE ( GPL2_OR_LATER );
|
|
|
|
#define COLOR_NORMAL_FG COLOR_WHITE
|
|
#define COLOR_NORMAL_BG COLOR_BLUE
|
|
|
|
#define COLOR_SELECT_FG COLOR_WHITE
|
|
#define COLOR_SELECT_BG COLOR_RED
|
|
|
|
#define COLOR_SEPARATOR_FG COLOR_CYAN
|
|
#define COLOR_SEPARATOR_BG COLOR_BLUE
|
|
|
|
#define COLOR_EDIT_FG COLOR_BLACK
|
|
#define COLOR_EDIT_BG COLOR_CYAN
|
|
|
|
#define COLOR_ALERT_FG COLOR_WHITE
|
|
#define COLOR_ALERT_BG COLOR_RED
|
|
|
|
#define COLOR_URL_FG COLOR_CYAN
|
|
#define COLOR_URL_BG COLOR_BLUE
|
|
|
|
#define COLOR_PXE_FG COLOR_BLACK
|
|
#define COLOR_PXE_BG COLOR_WHITE
|
|
|
|
#include <config/named.h>
|
|
#include NAMED_CONFIG(colour.h)
|
|
#include <config/local/colour.h>
|
|
#include LOCAL_NAMED_CONFIG(colour.h)
|
|
|
|
#endif /* CONFIG_COLOUR_H */
|