mirror of https://gitee.com/openkylin/qemu.git
build: enable using $(CONFIG_FOO) on the rhs of config files
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
9196dd411d
commit
bb585a784e
5
Makefile
5
Makefile
|
@ -76,7 +76,10 @@ config-all-devices.mak:
|
||||||
$(call quiet-command,echo '# no devices' > $@," GEN $@")
|
$(call quiet-command,echo '# no devices' > $@," GEN $@")
|
||||||
else
|
else
|
||||||
config-all-devices.mak: $(SUBDIR_DEVICES_MAK)
|
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
|
endif
|
||||||
|
|
||||||
-include $(SUBDIR_DEVICES_MAK_DEP)
|
-include $(SUBDIR_DEVICES_MAK_DEP)
|
||||||
|
|
Loading…
Reference in New Issue