Explorar el Código

[build] Remove obsolete and unused portions of config.c

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown hace 9 años
padre
commit
04c1ea8170
Se han modificado 4 ficheros con 0 adiciones y 55 borrados
  1. 0
    25
      src/Makefile.housekeeping
  2. 0
    1
      src/config/.gitignore
  3. 0
    28
      src/config/config.c
  4. 0
    1
      src/include/.gitignore

+ 0
- 25
src/Makefile.housekeeping Ver fichero

@@ -1303,31 +1303,6 @@ $(CONFIG_LOCAL_NAMED_HEADERS) :
1303 1303
 
1304 1304
 endif
1305 1305
 
1306
-###############################################################################
1307
-#
1308
-# Auto-incrementing build serial number.  Append "bs" to your list of
1309
-# build targets to get a serial number printed at the end of the
1310
-# build.  Enable -DBUILD_SERIAL in order to see it when the code runs.
1311
-#
1312
-BUILDSERIAL_H		= config/.buildserial.h
1313
-BUILDSERIAL_NOW		= config/.buildserial.now
1314
-BUILDSERIAL_NEXT	= config/.buildserial.next
1315
-
1316
-$(BUILDSERIAL_NOW) $(BUILDSERIAL_NEXT) :
1317
-	$(ECHO) 1 > $@
1318
-
1319
-$(BUILDSERIAL_H) : $(BUILDSERIAL_NOW) $(BUILDSERIAL_NEXT)
1320
-	$(ECHO) '#define BUILD_SERIAL_NUM $(shell cat $<)' > $@
1321
-
1322
-ifeq ($(filter bs,$(MAKECMDGOALS)),bs)
1323
-$(shell diff -q $(BUILDSERIAL_NOW) $(BUILDSERIAL_NEXT) > /dev/null || \
1324
-	cp -f $(BUILDSERIAL_NEXT) $(BUILDSERIAL_NOW))
1325
-endif
1326
-
1327
-bs : $(BUILDSERIAL_NOW)
1328
-	@$(ECHO) $$(( $(shell cat $<) + 1 )) > $(BUILDSERIAL_NEXT)
1329
-	@$(ECHO) "Build serial number is $(shell cat $<)"
1330
-
1331 1306
 ###############################################################################
1332 1307
 #
1333 1308
 # Build the TAGS file(s) for emacs

+ 0
- 1
src/config/.gitignore Ver fichero

@@ -1 +0,0 @@
1
-.buildserial.*

+ 0
- 28
src/config/config.c Ver fichero

@@ -44,34 +44,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
44 44
  * in the final iPXE executable built.
45 45
  */
46 46
 
47
-/*
48
- * Build ID string calculations
49
- *
50
- */
51
-#undef XSTR
52
-#undef STR
53
-#define XSTR(s) STR(s)
54
-#define STR(s) #s
55
-
56
-#ifdef BUILD_SERIAL
57
-#include "config/.buildserial.h"
58
-#define BUILD_SERIAL_STR " #" XSTR(BUILD_SERIAL_NUM)
59
-#else
60
-#define BUILD_SERIAL_STR ""
61
-#endif
62
-
63
-#ifdef BUILD_ID
64
-#define BUILD_ID_STR " " BUILD_ID
65
-#else
66
-#define BUILD_ID_STR ""
67
-#endif
68
-
69
-#if defined(BUILD_ID) || defined(BUILD_SERIAL)
70
-#define BUILD_STRING " [build" BUILD_ID_STR BUILD_SERIAL_STR "]"
71
-#else
72
-#define BUILD_STRING ""
73
-#endif
74
-
75 47
 /*
76 48
  * Drag in all requested console types
77 49
  *

+ 0
- 1
src/include/.gitignore Ver fichero

@@ -1 +0,0 @@
1
-.buildserial.h

Loading…
Cancelar
Guardar