diff options
| author | Paolo Bonzini | 2019-01-23 07:56:06 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2019-03-07 21:45:53 +0100 |
| commit | d6e9c470fc91f75db1785f17a9d3567d5a27953d (patch) | |
| tree | 19088ad8b5cb7d4a162115674222367fb6df68b6 /python | |
| parent | build: convert sound.mak to Kconfig (diff) | |
| download | qemu-d6e9c470fc91f75db1785f17a9d3567d5a27953d.tar.gz qemu-d6e9c470fc91f75db1785f17a9d3567d5a27953d.tar.xz qemu-d6e9c470fc91f75db1785f17a9d3567d5a27953d.zip | |
build: convert usb.mak to Kconfig
Instead of including the same list of devices for each target,
let the host controllers select CONFIG_USB and make the devices
default to present whenever USB is available.
Done with the following script:
while read i; do
i=${i%=y}; i=${i#CONFIG_}
sed -i -e'/^config '$i'$/!b' -en \
-e'a\' -e' default y\' -e' depends on USB' \
`grep -lw $i hw/*/Kconfig`
done < default-configs/usb.mak
followed by adding "select USB" on the host controllers.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20190123065618.3520-33-yang.zhong@intel.com>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions
