mirror of
https://github.com/ipxe/ipxe
synced 2025-12-18 10:30:23 +03:00
This is, of course, the neater and much more obvious way to do it.
This commit is contained in:
@@ -22,25 +22,19 @@
|
|||||||
|
|
||||||
#ifdef BUILD_SERIAL
|
#ifdef BUILD_SERIAL
|
||||||
#include "config/.buildserial.h"
|
#include "config/.buildserial.h"
|
||||||
#define BUILD_SERIAL_STR "#" XSTR(BUILD_SERIAL_NUM)
|
#define BUILD_SERIAL_STR " #" XSTR(BUILD_SERIAL_NUM)
|
||||||
#else
|
#else
|
||||||
#define BUILD_SERIAL_STR ""
|
#define BUILD_SERIAL_STR ""
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BUILD_ID
|
#ifdef BUILD_ID
|
||||||
#define BUILD_ID_STR BUILD_ID
|
#define BUILD_ID_STR " " BUILD_ID
|
||||||
#else
|
#else
|
||||||
#define BUILD_ID_STR ""
|
#define BUILD_ID_STR ""
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(BUILD_ID) && defined(BUILD_SERIAL)
|
|
||||||
#define BUILD_SPACER " "
|
|
||||||
#else
|
|
||||||
#define BUILD_SPACER ""
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(BUILD_ID) || defined(BUILD_SERIAL)
|
#if defined(BUILD_ID) || defined(BUILD_SERIAL)
|
||||||
#define BUILD_STRING " [build " BUILD_ID_STR BUILD_SPACER BUILD_SERIAL_STR "]"
|
#define BUILD_STRING " [build" BUILD_ID_STR BUILD_SERIAL_STR "]"
|
||||||
#else
|
#else
|
||||||
#define BUILD_STRING ""
|
#define BUILD_STRING ""
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user