Skip to content

Commit 78612da

Browse files
committed
stm32cube: stm32mp2xx: CMakeLists: Add Cortex A35 source
Add Cortex A35 sources in the CMakeLists.txt to enable support of the hal and ll files for the stm32mp2x Cortex A35. Signed-off-by: Julien Racki <[email protected]>
1 parent f9b324c commit 78612da

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

stm32cube/stm32mp2xx/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
zephyr_library_sources(soc/system_stm32mp2xx_m33.c)
5+
if(CONFIG_CPU_CORTEX_A35)
6+
zephyr_library_sources(soc/system_stm32mp2xx_a35.c)
7+
elseif(CONFIG_CPU_CORTEX_M33)
8+
zephyr_library_sources(soc/system_stm32mp2xx_m33.c)
9+
else()
10+
message(FATAL_ERROR "Unsupported CPU configuration: Please define CONFIG_CPU_CORTEX_A35 or CONFIG_CPU_CORTEX_M33")
11+
endif()
612
zephyr_library_sources(drivers/src/stm32mp2xx_hal.c)
713
zephyr_library_sources(drivers/src/stm32mp2xx_hal_rcc.c)
814
zephyr_library_sources(drivers/src/stm32mp2xx_hal_rcc_ex.c)

0 commit comments

Comments
 (0)