summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaolo Bonzini2013-04-03 17:53:21 +0200
committerPaolo Bonzini2013-04-08 18:13:10 +0200
commitbb585a784e9ad69207315d694e7dad2c422f6baa (patch)
treeccedd9da71ede1f0cac718e928aa471d41a11f4d
parentMerge branch 'arm-devs.next' of git://git.linaro.org/people/pmaydell/qemu-arm (diff)
downloadqemu-bb585a784e9ad69207315d694e7dad2c422f6baa.tar.gz
qemu-bb585a784e9ad69207315d694e7dad2c422f6baa.tar.xz
qemu-bb585a784e9ad69207315d694e7dad2c422f6baa.zip
build: enable using $(CONFIG_FOO) on the rhs of config files
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 80344d9436..0b6e6a137f 100644
--- a/Makefile
+++ b/Makefile
@@ -76,7 +76,10 @@ config-all-devices.mak:
$(call quiet-command,echo '# no devices' > $@," GEN $@")
else
config-all-devices.mak: $(SUBDIR_DEVICES_MAK)
- $(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort -u > $@," GEN $@")
+ $(call quiet-command, sed -n \
+ 's|^\([^=]*\)=\(.*\)$$|\1:=$$(findstring y,$$(\1)\2)|p' \
+ $(SUBDIR_DEVICES_MAK) | sort -u > $@, \
+ " GEN $@")
endif
-include $(SUBDIR_DEVICES_MAK_DEP)