From: Philippe Mathieu-Daudé Date: Sat, 24 Apr 2021 22:20:57 +0000 (+0200) Subject: hw/pcmcia: Do not register PCMCIA type if not required X-Git-Tag: qemu-xen-4.16.0-rc4~191^2~19 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=32bec2eea2c5ab96ba8b149cda7e33716678a5a6;p=qemu-xen.git hw/pcmcia: Do not register PCMCIA type if not required If the Kconfig 'PCMCIA' value is not selected, it is pointless to build the PCMCIA core components. (Currently only one machine of the ARM targets requires this). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20210424222057.3434459-4-f4bug@amsat.org> Signed-off-by: Laurent Vivier --- diff --git a/hw/pcmcia/meson.build b/hw/pcmcia/meson.build index ab50bd325d..51f2512b8e 100644 --- a/hw/pcmcia/meson.build +++ b/hw/pcmcia/meson.build @@ -1,2 +1,2 @@ -softmmu_ss.add(files('pcmcia.c')) +softmmu_ss.add(when: 'CONFIG_PCMCIA', if_true: files('pcmcia.c')) softmmu_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx.c'))