]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Remove obsolete and unused portions of config.c
authorMichael Brown <mcb30@ipxe.org>
Wed, 4 Mar 2015 14:49:43 +0000 (14:49 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 4 Mar 2015 14:49:43 +0000 (14:49 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/Makefile.housekeeping
src/config/.gitignore [deleted file]
src/config/config.c
src/include/.gitignore [deleted file]

index 274945ae5af8c96a4e86e36ce899bdb7e8a4e31d..f54008cfc045ed9de8f88f88bfcb06fba9074cc8 100644 (file)
@@ -1303,31 +1303,6 @@ $(CONFIG_LOCAL_NAMED_HEADERS) :
 
 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
diff --git a/src/config/.gitignore b/src/config/.gitignore
deleted file mode 100644 (file)
index 8e94f32..0000000
+++ /dev/null
@@ -1 +0,0 @@
-.buildserial.*
index 346f79bfcf42eede12149e2bc5a82df52de4882e..e4d378f0057ad5fe38e6e5059959af823fa745a0 100644 (file)
@@ -44,34 +44,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  * in the final iPXE executable built.
  */
 
-/*
- * 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 (file)
index de1598e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-.buildserial.h