zephyr: enable support for Arm AArch32 processors

Arm AArch32 processors have the same WFI assembly instruction
and so can works with the existing cortexm support.

Rename cortexm directory to arm.

Build tested with stm32mp157c_dk2 for Cortex-M,
rcar_h3ulcb for Cortex-R.

Signed-off-by: Julien Massot <julien.massot@iot.bzh>
This commit is contained in:
Julien Massot
2021-06-17 10:24:21 +02:00
committed by Arnaud Pouliquen
parent 7e171668c5
commit e73f0b0139
4 changed files with 4 additions and 3 deletions
+4 -3
View File
@@ -7,7 +7,8 @@ if (WITH_ZEPHYR)
if (NOT WITH_ZEPHYR_LIB)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
endif()
if (CONFIG_CPU_CORTEX_M)
set (MACHINE "cortexm" CACHE STRING "")
endif (CONFIG_CPU_CORTEX_M)
if (CONFIG_ARM)
set (MACHINE "arm" CACHE STRING "")
endif(CONFIG_ARM)
endif (WITH_ZEPHYR)