[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/35] build: enable using $(CONFIG_FOO) on the rhs
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 01/35] build: enable using $(CONFIG_FOO) on the rhs of config files |
Date: |
Thu, 4 Apr 2013 21:22:41 +0200 |
Signed-off-by: Paolo Bonzini <address@hidden>
---
Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 80344d9..0b6e6a1 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)
--
1.8.1.4
- [Qemu-devel] [PATCH v3 00/35] hw/ reorganization, part 2, Paolo Bonzini, 2013/04/04
- [Qemu-devel] [PATCH 01/35] build: enable using $(CONFIG_FOO) on the rhs of config files,
Paolo Bonzini <=
- [Qemu-devel] [PATCH 03/35] hw: make subdirectories for devices, Paolo Bonzini, 2013/04/04
- [Qemu-devel] [PATCH 04/35] moxie: configure with default-configs file, Paolo Bonzini, 2013/04/04
- [Qemu-devel] [PATCH 06/35] hw: move virtio devices to hw/ subdirectories, Paolo Bonzini, 2013/04/04
- [Qemu-devel] [PATCH 07/35] hw: make all of hw/ide/ configurable via default-configs/, Paolo Bonzini, 2013/04/04
- [Qemu-devel] [PATCH 08/35] hw: make all of hw/usb/ configurable via default-configs/, Paolo Bonzini, 2013/04/04
- [Qemu-devel] [PATCH 10/35] hw: move watchdogs to hw/watchdog, configure via default-configs/, Paolo Bonzini, 2013/04/04
- [Qemu-devel] [PATCH 09/35] hw: make all of hw/pci/ configurable via default-configs/, Paolo Bonzini, 2013/04/04
- [Qemu-devel] [PATCH 13/35] hw: move block devices to hw/block/, configure via default-configs/, Paolo Bonzini, 2013/04/04
- [Qemu-devel] [PATCH 05/35] hw: move target-independent files to subdirectories, Paolo Bonzini, 2013/04/04
- [Qemu-devel] [PATCH 11/35] hw: move MC146818RTC to hw/timer/, configure via default-configs/, Paolo Bonzini, 2013/04/04