Skip to content

Commit 747de9f

Browse files
committed
CMake cores: fix NS cores
Set DOMAIN_NS=1 only for _NS cores. We had it otherway around. I verified one non NS target that was failing to build, plus also checked the old tools that had this definitions: ``` 91: "Cortex-M23-NS": ["__CORTEX_M23", "ARM_MATH_ARMV8MBL", "DOMAIN_NS=1", 92 "__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"], 93 "Cortex-M23": ["__CORTEX_M23", "ARM_MATH_ARMV8MBL", "__CMSIS_RTOS", 94 "__MBED_CMSIS_RTOS_CM"], ```
1 parent 1b7b620 commit 747de9f

File tree

6 files changed

+3
-3
lines changed

6 files changed

+3
-3
lines changed

tools/cmake/cores/Cortex-M23-NS.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ function(mbed_set_cpu_core_definitions target)
1818
INTERFACE
1919
__CORTEX_M23
2020
ARM_MATH_ARMV8MBL
21+
DOMAIN_NS=1
2122
__CMSIS_RTOS
2223
__MBED_CMSIS_RTOS_CM
2324
)

tools/cmake/cores/Cortex-M23.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ function(mbed_set_cpu_core_definitions target)
1818
INTERFACE
1919
__CORTEX_M23
2020
ARM_MATH_ARMV8MBL
21-
DOMAIN_NS=1
2221
__CMSIS_RTOS
2322
__MBED_CMSIS_RTOS_CM
2423
)

tools/cmake/cores/Cortex-M33-NS.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ function(mbed_set_cpu_core_definitions target)
2020
INTERFACE
2121
__CORTEX_M33
2222
ARM_MATH_ARMV8MML
23+
DOMAIN_NS=1
2324
__CMSIS_RTOS
2425
__MBED_CMSIS_RTOS_CM
2526
)

tools/cmake/cores/Cortex-M33.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ function(mbed_set_cpu_core_definitions target)
2020
INTERFACE
2121
__CORTEX_M33
2222
ARM_MATH_ARMV8MML
23-
DOMAIN_NS=1
2423
__CMSIS_RTOS
2524
__MBED_CMSIS_RTOS_CM
2625
)

tools/cmake/cores/Cortex-M33F-NS.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function(mbed_set_cpu_core_definitions target)
2323
INTERFACE
2424
__CORTEX_M33
2525
ARM_MATH_ARMV8MML
26+
DOMAIN_NS=1
2627
__FPU_PRESENT=1U
2728
__CMSIS_RTOS
2829
__MBED_CMSIS_RTOS_CM

tools/cmake/cores/Cortex-M33F.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ function(mbed_set_cpu_core_definitions target)
2222
INTERFACE
2323
__CORTEX_M33
2424
ARM_MATH_ARMV8MML
25-
DOMAIN_NS=1
2625
__FPU_PRESENT=1U
2726
__CMSIS_RTOS
2827
__MBED_CMSIS_RTOS_CM

0 commit comments

Comments
 (0)