aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2010-11-26 18:47:45 +0000
committerPaul Brook <paul@codesourcery.com>2010-11-26 18:47:45 +0000
commitbd9141bb2e53195e3c1abf29275365d7f554beb5 (patch)
treebd58ce6d38d04e2cea21de3410124f7535510589 /Makefile
parent6e14404aab26f74a448747d1e793ac16bde8a92b (diff)
downloadqemu-bd9141bb2e53195e3c1abf29275365d7f554beb5.zip
qemu-bd9141bb2e53195e3c1abf29275365d7f554beb5.tar.gz
qemu-bd9141bb2e53195e3c1abf29275365d7f554beb5.tar.bz2
Include directives in default configs
Allow default configs to be split into several files. Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3389775..d3bc0f2 100644
--- a/Makefile
+++ b/Makefile
@@ -39,18 +39,19 @@ endif
SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory)
SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS))
+SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %/config-devices.mak.d, $(TARGET_DIRS))
config-all-devices.mak: $(SUBDIR_DEVICES_MAK)
$(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort -u > $@," GEN $@")
+-include $(SUBDIR_DEVICES_MAK_DEP)
+
%/config-devices.mak: default-configs/%.mak
- $(call quiet-command,cat $< > $@.tmp, " GEN $@")
+ $(call quiet-command,$(SHELL) $(SRC_PATH)/make_device_config.sh $@ $<, " GEN $@")
@if test -f $@; then \
if cmp -s $@.old $@; then \
- if ! cmp -s $@ $@.tmp; then \
- mv $@.tmp $@; \
- cp -p $@ $@.old; \
- fi; \
+ mv $@.tmp $@; \
+ cp -p $@ $@.old; \
else \
if test -f $@.old; then \
echo "WARNING: $@ (user modified) out of date.";\