aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPiotr JaroszyƄski <p.jaroszynski@gmail.com>2010-03-22 23:19:00 +0100
committerMichael Brown <mcb30@etherboot.org>2010-03-26 19:07:22 +0000
commit46d6ec7d77a041d8266d0d9811f57ba92e86599e (patch)
tree9dee1e363ca6028070c28d4ced6565b48edf3240 /src
parent80d1ac7320f597b4c981dfdeb19d8e88eb85ca69 (diff)
downloadipxe-46d6ec7d77a041d8266d0d9811f57ba92e86599e.tar.gz
[build] Add support for local configuration files
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>
Diffstat (limited to 'src')
-rw-r--r--src/.gitignore1
-rw-r--r--src/Makefile.housekeeping9
-rw-r--r--src/config/console.h2
-rw-r--r--src/config/general.h2
-rw-r--r--src/config/ioapi.h2
-rw-r--r--src/config/isa.h2
-rw-r--r--src/config/local/.gitignore1
-rw-r--r--src/config/nap.h2
-rw-r--r--src/config/serial.h2
-rw-r--r--src/config/timer.h2
-rw-r--r--src/config/umalloc.h2
11 files changed, 25 insertions, 2 deletions
diff --git a/src/.gitignore b/src/.gitignore
index 413f81410..cc8e33e28 100644
--- a/src/.gitignore
+++ b/src/.gitignore
@@ -2,4 +2,3 @@
.echocheck
TAGS*
bin*
-config-local.h
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping
index 7e7ad762f..c373c8820 100644
--- a/src/Makefile.housekeeping
+++ b/src/Makefile.housekeeping
@@ -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)' \
@@ -923,6 +923,13 @@ CLEANUP += $(ICCFIX)
###############################################################################
#
+# Local configs
+#
+config/local/%.h :
+ $(Q)touch $@
+
+###############################################################################
+#
# 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.
diff --git a/src/config/console.h b/src/config/console.h
index be3242dd9..586e37151 100644
--- a/src/config/console.h
+++ b/src/config/console.h
@@ -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 */
diff --git a/src/config/general.h b/src/config/general.h
index 0a9e6252a..bfab5b6e9 100644
--- a/src/config/general.h
+++ b/src/config/general.h
@@ -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 */
diff --git a/src/config/ioapi.h b/src/config/ioapi.h
index 8ddd557b9..ce19c6d71 100644
--- a/src/config/ioapi.h
+++ b/src/config/ioapi.h
@@ -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 */
diff --git a/src/config/isa.h b/src/config/isa.h
index 523be1c0a..e2a05050f 100644
--- a/src/config/isa.h
+++ b/src/config/isa.h
@@ -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
index 000000000..72e8ffc0d
--- /dev/null
+++ b/src/config/local/.gitignore
@@ -0,0 +1 @@
+*
diff --git a/src/config/nap.h b/src/config/nap.h
index 1b981355a..187af4289 100644
--- a/src/config/nap.h
+++ b/src/config/nap.h
@@ -14,4 +14,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
//#undef NAP_PCBIOS
//#define NAP_NULL
+#include <config/local/nap.h>
+
#endif /* CONFIG_NAP_H */
diff --git a/src/config/serial.h b/src/config/serial.h
index 44272d1fa..8bb9311f1 100644
--- a/src/config/serial.h
+++ b/src/config/serial.h
@@ -32,4 +32,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define COMSTOP 1 /* Stop bits */
#endif
+#include <config/local/serial.h>
+
#endif /* CONFIG_SERIAL_H */
diff --git a/src/config/timer.h b/src/config/timer.h
index cc6a93d18..abd669851 100644
--- a/src/config/timer.h
+++ b/src/config/timer.h
@@ -14,4 +14,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
//#undef TIMER_PCBIOS
//#define TIMER_RDTSC
+#include <config/local/timer.h>
+
#endif /* CONFIG_TIMER_H */
diff --git a/src/config/umalloc.h b/src/config/umalloc.h
index 65febf1fd..245c6b4aa 100644
--- a/src/config/umalloc.h
+++ b/src/config/umalloc.h
@@ -11,4 +11,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <config/defaults.h>
+#include <config/local/umalloc.h>
+
#endif /* CONFIG_UMALLOC_H */