[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 11/25] build: convert sound.mak to Kconfig
From: |
Yang Zhong |
Subject: |
[Qemu-devel] [RFC PATCH 11/25] build: convert sound.mak to Kconfig |
Date: |
Thu, 27 Dec 2018 14:34:05 +0800 |
From: Paolo Bonzini <address@hidden>
There is really nothing special in these devices; they are just
ISA devices. Instead of including them for each target,
set CONFIG_ISA to true, and make the devices default to present
whenever ISA is available. More conversion of ISA devices will
follow.
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 ISA' \
`grep -lw $i hw/*/Kconfig`
done < default-configs/sound.mak
Signed-off-by: Paolo Bonzini <address@hidden>
---
default-configs/i386-softmmu.mak | 2 +-
default-configs/sound.mak | 4 ----
hw/audio/Kconfig | 8 ++++++++
3 files changed, 9 insertions(+), 5 deletions(-)
delete mode 100644 default-configs/sound.mak
diff --git a/default-configs/i386-softmmu.mak b/default-configs/i386-softmmu.mak
index 61f19e5231..275e72f3c6 100644
--- a/default-configs/i386-softmmu.mak
+++ b/default-configs/i386-softmmu.mak
@@ -1,7 +1,7 @@
# Default configuration for i386-softmmu
CONFIG_PCI=y
-include sound.mak
+CONFIG_ISA=y
include usb.mak
include hyperv.mak
CONFIG_VGA_ISA=y
diff --git a/default-configs/sound.mak b/default-configs/sound.mak
deleted file mode 100644
index 4f22c34b5d..0000000000
--- a/default-configs/sound.mak
+++ /dev/null
@@ -1,4 +0,0 @@
-CONFIG_SB16=y
-CONFIG_ADLIB=y
-CONFIG_GUS=y
-CONFIG_CS4231A=y
diff --git a/hw/audio/Kconfig b/hw/audio/Kconfig
index af34bbcf0c..bfb30276ec 100644
--- a/hw/audio/Kconfig
+++ b/hw/audio/Kconfig
@@ -1,5 +1,7 @@
config SB16
bool
+ default y
+ depends on ISA_BUS
config ES1370
bool
@@ -13,12 +15,18 @@ config AC97
config ADLIB
bool
+ default y
+ depends on ISA_BUS
config GUS
bool
+ default y
+ depends on ISA_BUS
config CS4231A
bool
+ default y
+ depends on ISA_BUS
config HDA
bool
--
2.17.1
- [Qemu-devel] [RFC PATCH 00/25] Support Kconfig in QEMU, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 01/25] build: actually use CONFIG_PAM, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 02/25] hw/i386/Makefile.objs: Build pc_piix* and pc_q35 boards, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 04/25] minikconfig: add AST, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 11/25] build: convert sound.mak to Kconfig,
Yang Zhong <=
- [Qemu-devel] [RFC PATCH 09/25] ide: express dependencies with Kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 03/25] minikconfig: add parser skeleton, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 10/25] build: convert pci.mak to Kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 07/25] kconfig: introduce kconfig files, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 05/25] minikconfig: add semantic analysis, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 08/25] build: switch to Kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 06/25] hw/display: make edid configurable, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 12/25] build: convert usb.mak to Kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 13/25] scsi: express dependencies with Kconfig, Yang Zhong, 2018/12/27
- [Qemu-devel] [RFC PATCH 16/25] i386: express dependencies with Kconfig, Yang Zhong, 2018/12/27