]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
hw/pcmcia: Do not register PCMCIA type if not required
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 24 Apr 2021 22:20:57 +0000 (00:20 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Sun, 2 May 2021 15:24:50 +0000 (17:24 +0200)
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é <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210424222057.3434459-4-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/pcmcia/meson.build

index ab50bd325d6c86160e7aaeed248eed8184fd5a50..51f2512b8ed0d3e0467c07aa83a0ad4c988909ac 100644 (file)
@@ -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'))