Skip to contentSkip to conversation

hw/arm: Add missing dependencies for STM32F405 SoC

PATCH Applied Chisheng Chen 2 participants 2 messages Feb 28 – Mar 3

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/arm: Add missing dependencies for STM32F405 SoC

The STM32F405 SoC relies on STM32F2xx peripherals (ADC, SPI, TIMER, USART) and the unimplemented device (UNIMP). However, they are not selected in Kconfig. This added these dependencies.

---
When using the following command to configure it and
enabling CONFIG_OLIMEX_STM32_H405 in configs/devices/arm-softmmu/default.mak, this problem can be found:

```
$ ./configure --target-list=arm-softmmu --without-default-devices
$ ninja -C build
qemu-system-arm: unknown type 'stm32f2xx-usart'
```

This is because the dependencies were not selected in Kconfig.

---
 hw/arm/Kconfig | 5 +++++
 1 file changed, 5 insertions(+)
hw/arm/Kconfig +5 -0
index c66c452737..65fd8607c8 100644
@@ -403,8 +403,13 @@ config STM32F405_SOC
     select ARM_V7M
     select OR_IRQ
     select STM32_RCC
+    select STM32F2XX_ADC
+    select STM32F2XX_SPI
+    select STM32F2XX_TIMER
+    select STM32F2XX_USART
     select STM32F4XX_SYSCFG
     select STM32F4XX_EXTI
+    select UNIMP
 
 config B_L475E_IOT01A
     bool
Signature · 1 line
2.43.0
#1 lore raw
Quoted 10 lines · Chisheng Chen

The STM32F405 SoC relies on STM32F2xx peripherals (ADC, SPI, TIMER, USART) and the unimplemented device (UNIMP). However, they are not selected in Kconfig. This added these dependencies.

---
When using the following command to configure it and
enabling CONFIG_OLIMEX_STM32_H405 in configs/devices/arm-softmmu/default.mak, this problem can be found:

Quoted 7 lines
```
$ ./configure --target-list=arm-softmmu --without-default-devices
$ ninja -C build
qemu-system-arm: unknown type 'stm32f2xx-usart'
```

This is because the dependencies were not selected in Kconfig.

Applied to target-arm.next, thanks.

-- PMM