[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

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