diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-03-04 14:49:43 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-03-04 14:49:43 +0000 |
commit | 04c1ea81709b3de2658331761eb94843110c165f (patch) | |
tree | c28c8a40705696d5baa6b8023eda1c17dd19ef3b | |
parent | 81112dea5f2774474d52feada0ca2237e73f5cc8 (diff) | |
download | ipxe-04c1ea81709b3de2658331761eb94843110c165f.tar.gz |
[build] Remove obsolete and unused portions of config.c
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r-- | src/Makefile.housekeeping | 25 | ||||
-rw-r--r-- | src/config/.gitignore | 1 | ||||
-rw-r--r-- | src/config/config.c | 28 | ||||
-rw-r--r-- | src/include/.gitignore | 1 |
4 files changed, 0 insertions, 55 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index 274945ae..f54008cf 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -1305,31 +1305,6 @@ endif ############################################################################### # -# Auto-incrementing build serial number. Append "bs" to your list of -# build targets to get a serial number printed at the end of the -# build. Enable -DBUILD_SERIAL in order to see it when the code runs. -# -BUILDSERIAL_H = config/.buildserial.h -BUILDSERIAL_NOW = config/.buildserial.now -BUILDSERIAL_NEXT = config/.buildserial.next - -$(BUILDSERIAL_NOW) $(BUILDSERIAL_NEXT) : - $(ECHO) 1 > $@ - -$(BUILDSERIAL_H) : $(BUILDSERIAL_NOW) $(BUILDSERIAL_NEXT) - $(ECHO) '#define BUILD_SERIAL_NUM $(shell cat $<)' > $@ - -ifeq ($(filter bs,$(MAKECMDGOALS)),bs) -$(shell diff -q $(BUILDSERIAL_NOW) $(BUILDSERIAL_NEXT) > /dev/null || \ - cp -f $(BUILDSERIAL_NEXT) $(BUILDSERIAL_NOW)) -endif - -bs : $(BUILDSERIAL_NOW) - @$(ECHO) $$(( $(shell cat $<) + 1 )) > $(BUILDSERIAL_NEXT) - @$(ECHO) "Build serial number is $(shell cat $<)" - -############################################################################### -# # Build the TAGS file(s) for emacs # TAGS : diff --git a/src/config/.gitignore b/src/config/.gitignore deleted file mode 100644 index 8e94f32f..00000000 --- a/src/config/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.buildserial.* diff --git a/src/config/config.c b/src/config/config.c index 346f79bf..e4d378f0 100644 --- a/src/config/config.c +++ b/src/config/config.c @@ -45,34 +45,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); */ /* - * Build ID string calculations - * - */ -#undef XSTR -#undef STR -#define XSTR(s) STR(s) -#define STR(s) #s - -#ifdef BUILD_SERIAL -#include "config/.buildserial.h" -#define BUILD_SERIAL_STR " #" XSTR(BUILD_SERIAL_NUM) -#else -#define BUILD_SERIAL_STR "" -#endif - -#ifdef BUILD_ID -#define BUILD_ID_STR " " BUILD_ID -#else -#define BUILD_ID_STR "" -#endif - -#if defined(BUILD_ID) || defined(BUILD_SERIAL) -#define BUILD_STRING " [build" BUILD_ID_STR BUILD_SERIAL_STR "]" -#else -#define BUILD_STRING "" -#endif - -/* * Drag in all requested console types * */ diff --git a/src/include/.gitignore b/src/include/.gitignore deleted file mode 100644 index de1598ef..00000000 --- a/src/include/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.buildserial.h |