]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Add support for local configuration files
authorPiotr Jaroszyński <p.jaroszynski@gmail.com>
Mon, 22 Mar 2010 22:19:00 +0000 (23:19 +0100)
committerMichael Brown <mcb30@etherboot.org>
Fri, 26 Mar 2010 19:07:22 +0000 (19:07 +0000)
Include config/local/$file in config/$file where it makes sense and
create empty local configs during build if not present.

Modified-by: Michael Brown <mcb30@etherboot.org>
Signed-off-by: Michael Brown <mcb30@etherboot.org>
src/.gitignore
src/Makefile.housekeeping
src/config/console.h
src/config/general.h
src/config/ioapi.h
src/config/isa.h
src/config/local/.gitignore [new file with mode: 0644]
src/config/nap.h
src/config/serial.h
src/config/timer.h
src/config/umalloc.h

index 413f81410393a3067603a2b7d7dfc0ca71625b02..cc8e33e28ef57fc493a9f4b8002e87fed1e8b537 100644 (file)
@@ -2,4 +2,3 @@
 .echocheck
 TAGS*
 bin*
-config-local.h
index 7e7ad762fbe78fcc21803e4dbc4e59e718d95c0f..c373c8820b8f80aed27afd3950789a5180832c9f 100644 (file)
@@ -468,7 +468,7 @@ define src_template
        @$(RM) $(2)
        @$(TOUCH) $(2)
        @$(CPP) $(CFLAGS) $(CFLAGS_$(3)) $(CFLAGS_$(4)) -DOBJECT=$(4) \
-               -Wno-error -MM $(1) -MG -MP | \
+               -Wno-error -M $(1) -MG -MP | \
                sed 's/\.o\s*:/_DEPS =/' >> $(2)
        @$(ECHO_E) '\n$$(BIN)/$(4).o :' \
                 '$(1) $$(MAKEDEPS) $$(POST_O_DEPS) $$($(4)_DEPS)' \
@@ -921,6 +921,13 @@ $(ICCFIX) : util/iccfix.c $(MAKEDEPS)
        $(Q)$(HOST_CC) -idirafter include -O2 -o $@ $<
 CLEANUP += $(ICCFIX)
 
+###############################################################################
+#
+# Local configs
+#
+config/local/%.h :
+       $(Q)touch $@
+
 ###############################################################################
 #
 # Auto-incrementing build serial number.  Append "bs" to your list of
index be3242dd9e4dc58b6723a07bb101fcabc8e1a7f5..586e3715136661efc31af28fda709610d16e39f0 100644 (file)
@@ -20,4 +20,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
 //#define      CONSOLE_BTEXT           /* Who knows what this does? */
 //#define      CONSOLE_PC_KBD          /* Direct access to PC keyboard */
 
+#include <config/local/console.h>
+
 #endif /* CONFIG_CONSOLE_H */
index 0a9e6252a2a06bc034a958e71128b19846f80287..bfab5b6e9b596a6b1c1708550cd5f309fb93db48 100644 (file)
@@ -145,4 +145,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
 #undef GDBUDP                  /* Remote GDB debugging over UDP
                                 * (both may be set) */
 
+#include <config/local/general.h>
+
 #endif /* CONFIG_GENERAL_H */
index 8ddd557b97f89b931f2aa22ba9249f9b7d4917c0..ce19c6d719943e96cfa139631789d9748e152c6d 100644 (file)
@@ -14,4 +14,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
 //#undef       PCIAPI_PCBIOS           /* Access via PCI BIOS */
 //#define      PCIAPI_DIRECT           /* Direct access via Type 1 accesses */
 
+#include <config/local/ioapi.h>
+
 #endif /* CONFIG_IOAPI_H */
index 523be1c0a747f930dcd0cd4193210d02f82085eb..e2a05050f3d55d83c399ae38f20d598aa71848b3 100644 (file)
@@ -12,4 +12,6 @@
 #undef ISA_PROBE_ADDRS         /* e.g. 0x200, 0x300 */
 #undef ISA_PROBE_ONLY          /* Do not probe any other addresses */
 
+#include <config/local/isa.h>
+
 #endif /* CONFIG_ISA_H */
diff --git a/src/config/local/.gitignore b/src/config/local/.gitignore
new file mode 100644 (file)
index 0000000..72e8ffc
--- /dev/null
@@ -0,0 +1 @@
+*
index 1b981355a9322471f340d1e56a30638bd7b5d30b..187af42894017d34dbf4b25d939c57afb4f31ae2 100644 (file)
@@ -14,4 +14,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
 //#undef               NAP_PCBIOS
 //#define              NAP_NULL
 
+#include <config/local/nap.h>
+
 #endif /* CONFIG_NAP_H */
index 44272d1fad07346de70537015b8c2e211bc49242..8bb9311f15760fc7682cb11cedab89a03dfa86ad 100644 (file)
@@ -32,4 +32,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
 #define        COMSTOP         1               /* Stop bits */
 #endif
 
+#include <config/local/serial.h>
+
 #endif /* CONFIG_SERIAL_H */
index cc6a93d18deac69f187fa6e566229bd074611c7e..abd6698518666347e67967fbd7a3120957e6ea6e 100644 (file)
@@ -14,4 +14,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
 //#undef               TIMER_PCBIOS
 //#define              TIMER_RDTSC
 
+#include <config/local/timer.h>
+
 #endif /* CONFIG_TIMER_H */
index 65febf1fd6da37ebc2f117e16746482b1f407081..245c6b4aa831e73d1606948072ae1e42d9614036 100644 (file)
@@ -11,4 +11,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
 
 #include <config/defaults.h>
 
+#include <config/local/umalloc.h>
+
 #endif /* CONFIG_UMALLOC_H */