Skip to content

Commit 4016567

Browse files
authored
Merge branch 'main' into outbound/projmgr-list-packs-locked
2 parents 03b5bd7 + c55093d commit 4016567

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

tools/buildmgr/cbuildgen/config/AC6.6.16.2.cmake

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ elseif(CPU STREQUAL "Star-MC1")
162162
set(ARMASM_CPU "--cpu=Star-MC1")
163163
endif()
164164
endif()
165+
elseif(CPU STREQUAL "Star-MC3")
166+
set(ARMASM_CPU " ")
165167
elseif(CPU STREQUAL "Cortex-M35P")
166168
if(FPU STREQUAL "NO_FPU")
167169
if(DSP STREQUAL "NO_DSP")
@@ -400,6 +402,43 @@ elseif(CPU STREQUAL "Cortex-M35P")
400402
set(ARMCLANG_CPU "-mcpu=Cortex-M35P+nodsp -mfpu=none")
401403
endif()
402404
endif()
405+
elseif(CPU STREQUAL "Star-MC3")
406+
message("Star-MC3 support using Cortex-M52 compatibility mode.")
407+
set(ARMCLANG_ARCH "armv8.1m.main")
408+
set(CPU_FEATURES "Cortex-M52")
409+
if(MVE STREQUAL "NO_MVE")
410+
if(FPU STREQUAL "NO_FPU")
411+
set(CPU_FEATURES "${CPU_FEATURES}+nomve+nofp")
412+
elseif(FPU STREQUAL "SP_FPU")
413+
set(CPU_FEATURES "${CPU_FEATURES}+nomve+nofp.dp")
414+
elseif(FPU STREQUAL "DP_FPU")
415+
set(CPU_FEATURES "${CPU_FEATURES}+nomve")
416+
endif()
417+
elseif(MVE STREQUAL "INT_MVE")
418+
if(FPU STREQUAL "NO_FPU")
419+
set(CPU_FEATURES "${CPU_FEATURES}+nomve.fp+nofp")
420+
elseif(FPU STREQUAL "SP_FPU")
421+
set(CPU_FEATURES "${CPU_FEATURES}+nomve.fp+nofp.dp")
422+
elseif(FPU STREQUAL "DP_FPU")
423+
message(FATAL_ERROR "Error: Cortex-M52+nomve.fp is not supported!")
424+
endif()
425+
elseif(MVE STREQUAL "FP_MVE")
426+
if(FPU STREQUAL "NO_FPU")
427+
message(FATAL_ERROR "Error: Cortex-M52+nofp is not supported!")
428+
elseif(FPU STREQUAL "SP_FPU")
429+
message(FATAL_ERROR "Error: Cortex-M52+nofp.dp is not supported!")
430+
elseif(FPU STREQUAL "DP_FPU")
431+
set(CPU_FEATURES "${CPU_FEATURES}")
432+
endif()
433+
endif()
434+
if(PACBTI STREQUAL "NO_PACBTI")
435+
set(CPU_FEATURES "${CPU_FEATURES}+nopacbti")
436+
endif()
437+
if(FPU STREQUAL "NO_FPU")
438+
set(ARMCLANG_CPU "-mcpu=${CPU_FEATURES}")
439+
else()
440+
set(ARMCLANG_CPU "-mcpu=${CPU_FEATURES} -mfloat-abi=hard")
441+
endif()
403442
elseif(CPU STREQUAL "Cortex-M52")
404443
set(ARMCLANG_ARCH "armv8.1m.main")
405444
set(CPU_FEATURES "Cortex-M52")

tools/buildmgr/cbuildgen/config/GCC.10.3.1.cmake

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,23 @@ elseif(CPU STREQUAL "Cortex-M35P")
147147
set(GNUASM_CPU "-mcpu=cortex-m35p+nodsp")
148148
endif()
149149
endif()
150+
elseif(CPU STREQUAL "Star-MC3")
151+
message("Star-MC3 support using Cortex-M52 compatibility mode.")
152+
if(FPU STREQUAL "NO_FPU")
153+
if(MVE STREQUAL "NO_MVE")
154+
set(GNUASM_CPU "-mcpu=cortex-m52+nofp+nomve")
155+
else()
156+
set(GNUASM_CPU "-mcpu=cortex-m52+nofp")
157+
endif()
158+
else()
159+
if(MVE STREQUAL "NO_MVE")
160+
set(GNUASM_CPU "-mcpu=cortex-m52+nomve -mfloat-abi=hard")
161+
elseif(MVE STREQUAL "MVE")
162+
set(GNUASM_CPU "-mcpu=cortex-m52+nomve.fp -mfloat-abi=hard")
163+
else()
164+
set(GNUASM_CPU "-mcpu=cortex-m52 -mfloat-abi=hard")
165+
endif()
166+
endif()
150167
elseif(CPU STREQUAL "Cortex-M55")
151168
if(FPU STREQUAL "NO_FPU")
152169
if(MVE STREQUAL "NO_MVE")

0 commit comments

Comments
 (0)