]> git.proxmox.com Git - qemu.git/blobdiff - Makefile
ide: refuse WIN_READ_NATIVE_MAX on empty device
[qemu.git] / Makefile
index 80344d9436c5b4613e7e14fb5b57480efc3019d0..0b6e6a137fbd5831c0e65b4294d6e46136f453d4 100644 (file)
--- 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)