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"],
```
pull/14190/head
Martin Kojtal 2021-01-25 12:21:38 +00:00
parent 1b7b620528
commit 747de9f849
6 changed files with 3 additions and 3 deletions

View File

@ -18,6 +18,7 @@ function(mbed_set_cpu_core_definitions target)
INTERFACE
__CORTEX_M23
ARM_MATH_ARMV8MBL
DOMAIN_NS=1
__CMSIS_RTOS
__MBED_CMSIS_RTOS_CM
)

View File

@ -18,7 +18,6 @@ function(mbed_set_cpu_core_definitions target)
INTERFACE
__CORTEX_M23
ARM_MATH_ARMV8MBL
DOMAIN_NS=1
__CMSIS_RTOS
__MBED_CMSIS_RTOS_CM
)

View File

@ -20,6 +20,7 @@ function(mbed_set_cpu_core_definitions target)
INTERFACE
__CORTEX_M33
ARM_MATH_ARMV8MML
DOMAIN_NS=1
__CMSIS_RTOS
__MBED_CMSIS_RTOS_CM
)

View File

@ -20,7 +20,6 @@ function(mbed_set_cpu_core_definitions target)
INTERFACE
__CORTEX_M33
ARM_MATH_ARMV8MML
DOMAIN_NS=1
__CMSIS_RTOS
__MBED_CMSIS_RTOS_CM
)

View File

@ -23,6 +23,7 @@ function(mbed_set_cpu_core_definitions target)
INTERFACE
__CORTEX_M33
ARM_MATH_ARMV8MML
DOMAIN_NS=1
__FPU_PRESENT=1U
__CMSIS_RTOS
__MBED_CMSIS_RTOS_CM

View File

@ -22,7 +22,6 @@ function(mbed_set_cpu_core_definitions target)
INTERFACE
__CORTEX_M33
ARM_MATH_ARMV8MML
DOMAIN_NS=1
__FPU_PRESENT=1U
__CMSIS_RTOS
__MBED_CMSIS_RTOS_CM