hw: Restrict PCMCIA to ARM target
cover hw: Restrict PCMCIA to ARM target
Only a pair of ARM PXA machines requires the PCMCIA type. Complete the Kconfig dependencies to only build the PCMCIA related devices when required.
Philippe Mathieu-Daudé (3):
hw/arm/pxa2xx: Declare PCMCIA bus with Kconfig hw/ide: Add Kconfig dependency MICRODRIVE -> PCMCIA hw/pcmcia: Do not register PCMCIA type if not required
hw/arm/Kconfig | 1 + hw/ide/Kconfig | 1 + hw/pcmcia/meson.build | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-)
Signature · 1 line
2.26.3
PATCH 1/3 hw/arm/pxa2xx: Declare PCMCIA bus with Kconfig
The Intel XScale PXA chipsets provide a PCMCIA controller, which expose a PCMCIA (IDE) bus. Express this dependency using the Kconfig 'select' expression.
--- hw/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)
hw/arm/Kconfig +1 -0
@@ -142,6 +142,7 @@ config PXA2XX select SD select SSI select USB_OHCI + select PCMCIA config GUMSTIX bool
Signature · 1 line
2.26.3
Re: [PATCH 1/3] hw/arm/pxa2xx: Declare PCMCIA bus with Kconfig
Quoted 4 lines · Philippe Mathieu-Daudé
The Intel XScale PXA chipsets provide a PCMCIA controller, which expose a PCMCIA (IDE) bus. Express this dependency using the
Kconfig'select' expression.
I'd consider dropping the (IDE) in the description of the PCMCIA bus since I think it's more confusing than helpful...
Quoted 22 lines
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)hw/arm/Kconfig +1
-1@@ -142,6 +142,7 @@ config PXA2XX select SD select SSI select USB_OHCI + select PCMCIA config GUMSTIX bool --2.26.3
Laurent Vivier
AppliedRe: [PATCH 1/3] hw/arm/pxa2xx: Declare PCMCIA bus with Kconfig
In reply to Philippe Mathieu-DaudéLe 25/04/2021 à 00:20, Philippe Mathieu-Daudé a écrit :
Quoted 15 lines
The Intel XScale PXA chipsets provide a PCMCIA controller, which expose a PCMCIA (IDE) bus. Express this dependency using the
Kconfig'select' expression.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)hw/arm/Kconfig +0
-0
hw/arm/Kconfig config PXA2XX · line 148
Quoted 7 lines
hw/arm/Kconfig +1
-0@@ -142,6 +142,7 @@ config PXA2XX select SD select SSI select USB_OHCI + select PCMCIA config GUMSTIX bool
Applied to my trivial-patches branch.
Thanks,
Laurent
PATCH 2/3 hw/ide: Add Kconfig dependency MICRODRIVE -> PCMCIA
In reply to Philippe Mathieu-DaudéThe Microdrive Compact Flash can be plugged on a PCMCIA bus. Express the dependency using the 'depends on' Kconfig expression.
--- hw/ide/Kconfig | 1 + 1 file changed, 1 insertion(+)
hw/ide/Kconfig +1 -0
@@ -41,6 +41,7 @@ config IDE_VIA config MICRODRIVE bool select IDE_QDEV + depends on PCMCIA config AHCI bool
Signature · 1 line
2.26.3
Re: [PATCH 2/3] hw/ide: Add Kconfig dependency MICRODRIVE -> PCMCIA
Quoted 3 lines · Philippe Mathieu-Daudé
The Microdrive Compact Flash can be plugged on a PCMCIA bus. Express the dependency using the 'depends on'
Kconfigexpression.
Quoted 22 lines
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/ide/Kconfig | 1 + 1 file changed, 1 insertion(+)hw/ide/Kconfig +1
-1@@ -41,6 +41,7 @@ config IDE_VIA config MICRODRIVE bool select IDE_QDEV + depends on PCMCIA config AHCI bool --2.26.3
Laurent Vivier
AppliedRe: [PATCH 2/3] hw/ide: Add Kconfig dependency MICRODRIVE -> PCMCIA
In reply to Philippe Mathieu-DaudéLe 25/04/2021 à 00:20, Philippe Mathieu-Daudé a écrit :
Quoted 14 lines
The Microdrive Compact Flash can be plugged on a PCMCIA bus. Express the dependency using the 'depends on'
Kconfigexpression.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/ide/Kconfig | 1 + 1 file changed, 1 insertion(+)hw/ide/Kconfig +0
-0
hw/ide/Kconfig config IDE_VIA · line 47
Quoted 7 lines
hw/ide/Kconfig +1
-0@@ -41,6 +41,7 @@ config IDE_VIA config MICRODRIVE bool select IDE_QDEV + depends on PCMCIA config AHCI bool
Applied to my trivial-patches branch.
Thanks,
Laurent
PATCH 3/3 hw/pcmcia: Do not register PCMCIA type if not required
In reply to Philippe Mathieu-Daudé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).
--- hw/pcmcia/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/pcmcia/meson.build +1 -1
@@ -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'))
Signature · 1 line
2.26.3
Laurent Vivier
AppliedRe: [PATCH 3/3] hw/pcmcia: Do not register PCMCIA type if not required
Le 25/04/2021 à 00:20, Philippe Mathieu-Daudé a écrit :
Quoted 16 lines
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é <[email protected]>--- hw/pcmcia/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/pcmcia/meson.build +0
-0
hw/pcmcia/meson.build line 2
Quoted 3 lines
hw/pcmcia/meson.build +1
-1@@ -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'))
Applied to my trivial-patches branch.
Thanks,
Laurent
Quoted 4 lines · Philippe Mathieu-Daudé
Philippe Mathieu-Daudé (3):
hw/arm/pxa2xx: Declare PCMCIA bus withKconfighw/ide: AddKconfigdependency MICRODRIVE -> PCMCIA hw/pcmcia: Do not register PCMCIA type if not required
r~