File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ set(ARCH_FOR_cortex-m4 armv7e-m )
77set (ARCH_FOR_cortex-m23 armv8-m.base )
88set (ARCH_FOR_cortex-m33 armv8-m.main+dsp)
99set (ARCH_FOR_cortex-m33+nodsp armv8-m.main )
10+ set (ARCH_FOR_cortex-r4 armv7-r )
1011
1112if (ARCH_FOR_${GCC_M_CPU} )
1213 set (ARCH_FLAG -march=${ARCH_FOR_${GCC_M_CPU} })
Original file line number Diff line number Diff line change 1414# if one selects a different ARM Cortex Family (Cortex-A or Cortex-M)
1515
1616
17+ config CPU_CORTEX_R4
18+ bool
19+ select CPU_CORTEX_R
20+ select ARMV7_R
21+ select ARMV7_R_FP if CPU_HAS_FPU
22+ help
23+ This option signifies the use of a Cortex-R4 CPU
24+
1725if CPU_CORTEX_R
1826
1927config ARMV7_R
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ if("${ARCH}" STREQUAL "arm")
2222 else ()
2323 set (GCC_M_CPU cortex-m33+nodsp)
2424 endif ()
25+ elseif (CONFIG_CPU_CORTEX_R4)
26+ set (GCC_M_CPU cortex-r4)
2527 else ()
2628 message (FATAL_ERROR "Expected CONFIG_CPU_CORTEX_x to be defined" )
2729 endif ()
You can’t perform that action at this time.
0 commit comments