2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-22 09:31:51 +00:00

[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>
This commit is contained in:
Piotr Jaroszyński 2010-03-22 23:19:00 +01:00 committed by Michael Brown
parent 80d1ac7320
commit 46d6ec7d77
11 changed files with 25 additions and 2 deletions

1
src/.gitignore vendored
View File

@ -2,4 +2,3 @@
.echocheck
TAGS*
bin*
config-local.h

View 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

View 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 */

View 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 */

View 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 */

View 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 */

1
src/config/local/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*

View 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 */

View 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 */

View 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 */

View File

@ -11,4 +11,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <config/defaults.h>
#include <config/local/umalloc.h>
#endif /* CONFIG_UMALLOC_H */