From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfPdL-0001Yt-7F for qemu-devel@nongnu.org; Fri, 04 Jan 2019 08:35:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfPdI-0006cV-3y for qemu-devel@nongnu.org; Fri, 04 Jan 2019 08:35:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54178) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gfPdH-0006bX-Ov for qemu-devel@nongnu.org; Fri, 04 Jan 2019 08:35:27 -0500 References: <20181227063419.12981-1-yang.zhong@intel.com> <20181227063419.12981-12-yang.zhong@intel.com> From: Thomas Huth Message-ID: Date: Fri, 4 Jan 2019 14:26:05 +0100 MIME-Version: 1.0 In-Reply-To: <20181227063419.12981-12-yang.zhong@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH 11/25] build: convert sound.mak to Kconfig List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yang Zhong , qemu-devel@nongnu.org Cc: pbonzini@redhat.com, sameo@linux.intel.com, ehabkost@redhat.com, peter.maydell@linaro.org On 2018-12-27 07:34, Yang Zhong wrote: > From: Paolo Bonzini > > 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 > --- > 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 > Reviewed-by: Thomas Huth