File tree Expand file tree Collapse file tree 15 files changed +15
-105
lines changed Expand file tree Collapse file tree 15 files changed +15
-105
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,9 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
11
11
"-mno-unaligned-access"
12
12
)
13
13
elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
14
- list (APPEND c_cxx_compile_options
14
+ list (APPEND common_options
15
15
"-mcpu=cortex-a9"
16
16
)
17
- list (APPEND asm_compile_options
18
- "-mcpu=Cortex-A9"
19
- )
20
- list (APPEND link_options
21
- "--cpu=Cortex-A9"
22
- )
23
17
endif ()
24
18
25
19
function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change @@ -8,15 +8,9 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
8
8
"-mcpu=cortex-m0plus"
9
9
)
10
10
elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
11
- list (APPEND c_cxx_compile_options
11
+ list (APPEND common_options
12
12
"-mcpu=cortex-m0plus"
13
13
)
14
- list (APPEND asm_compile_options
15
- "-mcpu=Cortex-M0plus"
16
- )
17
- list (APPEND link_options
18
- "--cpu=Cortex-M0plus"
19
- )
20
14
endif ()
21
15
22
16
function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change @@ -8,15 +8,9 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
8
8
"-mcpu=cortex-m0"
9
9
)
10
10
elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
11
- list (APPEND c_cxx_compile_options
11
+ list (APPEND common_options
12
12
"-mcpu=cortex-m0"
13
13
)
14
- list (APPEND asm_compile_options
15
- "-mcpu=Cortex-M0"
16
- )
17
- list (APPEND link_options
18
- "--cpu=Cortex-M0"
19
- )
20
14
endif ()
21
15
22
16
function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change @@ -7,15 +7,9 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
7
7
"-mthumb"
8
8
)
9
9
elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
10
- list (APPEND c_cxx_compile_options
10
+ list (APPEND common_options
11
11
"-mcpu=cortex-m1"
12
12
)
13
- list (APPEND asm_compile_options
14
- "-mcpu=Cortex-M1"
15
- )
16
- list (APPEND link_options
17
- "--cpu=Cortex-M1"
18
- )
19
13
endif ()
20
14
21
15
function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change @@ -7,15 +7,9 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
7
7
"-mthumb"
8
8
)
9
9
elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
10
- list (APPEND c_cxx_compile_options
10
+ list (APPEND common_options
11
11
"-mcpu=cortex-m23"
12
12
)
13
- list (APPEND asm_compile_options
14
- "-mcpu=Cortex-M23"
15
- )
16
- list (APPEND link_options
17
- "--cpu=Cortex-M23"
18
- )
19
13
endif ()
20
14
21
15
Original file line number Diff line number Diff line change @@ -7,15 +7,9 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
7
7
"-mthumb"
8
8
)
9
9
elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
10
- list (APPEND c_cxx_compile_options
10
+ list (APPEND common_options
11
11
"-mcpu=cortex-m23"
12
12
)
13
- list (APPEND asm_compile_options
14
- "-mcpu=Cortex-M23"
15
- )
16
- list (APPEND link_options
17
- "--cpu=Cortex-M23"
18
- )
19
13
endif ()
20
14
21
15
Original file line number Diff line number Diff line change @@ -8,15 +8,9 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
8
8
"-mcpu=cortex-m3"
9
9
)
10
10
elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
11
- list (APPEND c_cxx_compile_options
11
+ list (APPEND common_options
12
12
"-mcpu=cortex-m3"
13
13
)
14
- list (APPEND asm_compile_options
15
- "-mcpu=Cortex-M3"
16
- )
17
- list (APPEND link_options
18
- "--cpu=Cortex-M3"
19
- )
20
14
endif ()
21
15
22
16
function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change @@ -10,17 +10,11 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
10
10
"-march=armv8-m.main"
11
11
)
12
12
elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
13
- list (APPEND c_cxx_compile_options
13
+ list (APPEND common_options
14
14
"-mcpu=cortex-m33+nodsp"
15
15
"-mfpu=fpv5-sp-d16"
16
16
"-mfloat-abi=hard"
17
17
)
18
- list (APPEND asm_compile_options
19
- "-mcpu=Cortex-M33.no_dsp"
20
- )
21
- list (APPEND link_options
22
- "--cpu=Cortex-M33.no_dsp"
23
- )
24
18
endif ()
25
19
26
20
Original file line number Diff line number Diff line change @@ -10,17 +10,11 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
10
10
"-march=armv8-m.main"
11
11
)
12
12
elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
13
- list (APPEND c_cxx_compile_options
13
+ list (APPEND common_options
14
14
"-mcpu=cortex-m33+nodsp"
15
15
"-mfpu=fpv5-sp-d16"
16
16
"-mfloat-abi=hard"
17
17
)
18
- list (APPEND asm_compile_options
19
- "-mcpu=Cortex-M33.no_dsp"
20
- )
21
- list (APPEND link_options
22
- "--cpu=Cortex-M33.no_dsp"
23
- )
24
18
endif ()
25
19
26
20
function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change @@ -10,15 +10,9 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
10
10
"-march=armv8-m.main+dsp"
11
11
)
12
12
elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
13
- list (APPEND c_cxx_compile_options
13
+ list (APPEND common_options
14
14
"-mcpu=cortex-m33"
15
15
)
16
- list (APPEND asm_compile_options
17
- "-mcpu=Cortex-M33"
18
- )
19
- list (APPEND link_options
20
- "--cpu=Cortex-M33"
21
- )
22
16
endif ()
23
17
24
18
function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change @@ -10,15 +10,9 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
10
10
"-march=armv8-m.main+dsp"
11
11
)
12
12
elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
13
- list (APPEND c_cxx_compile_options
13
+ list (APPEND common_options
14
14
"-mcpu=cortex-m33"
15
15
)
16
- list (APPEND asm_compile_options
17
- "-mcpu=Cortex-M33"
18
- )
19
- list (APPEND link_options
20
- "--cpu=Cortex-M33"
21
- )
22
16
endif ()
23
17
24
18
function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change @@ -8,16 +8,10 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
8
8
"-mcpu=cortex-m4"
9
9
)
10
10
elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
11
- list (APPEND c_cxx_compile_options
11
+ list (APPEND common_options
12
12
"-mcpu=cortex-m4"
13
13
"-mfpu=none"
14
14
)
15
- list (APPEND asm_compile_options
16
- "-mcpu=Cortex-M4.no_fp"
17
- )
18
- list (APPEND link_options
19
- "--cpu=Cortex-M4.no_fp"
20
- )
21
15
endif ()
22
16
23
17
function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change @@ -10,17 +10,11 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
10
10
"-mfloat-abi=softfp"
11
11
)
12
12
elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
13
- list (APPEND c_cxx_compile_options
13
+ list (APPEND common_options
14
14
"-mcpu=cortex-m4"
15
15
"-mfpu=fpv4-sp-d16"
16
16
"-mfloat-abi=hard"
17
17
)
18
- list (APPEND asm_compile_options
19
- "-mcpu=Cortex-M4"
20
- )
21
- list (APPEND link_options
22
- "--cpu=Cortex-M4"
23
- )
24
18
endif ()
25
19
26
20
function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change @@ -8,16 +8,10 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
8
8
"-mcpu=cortex-m7"
9
9
)
10
10
elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
11
- list (APPEND c_cxx_compile_options
11
+ list (APPEND common_options
12
12
"-mcpu=cortex-m7"
13
13
"-mfpu=none"
14
14
)
15
- list (APPEND asm_compile_options
16
- "-mcpu=Cortex-M7.no_fp"
17
- )
18
- list (APPEND link_options
19
- "--cpu=Cortex-M7.no_fp"
20
- )
21
15
endif ()
22
16
23
17
function (mbed_set_cpu_core_definitions target )
Original file line number Diff line number Diff line change @@ -10,17 +10,11 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
10
10
"-mcpu=cortex-m7"
11
11
)
12
12
elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
13
- list (APPEND c_cxx_compile_options
13
+ list (APPEND common_options
14
14
"-mcpu=cortex-m7"
15
15
"-mfpu=fpv5-d16"
16
16
"-mfloat-abi=hard"
17
17
)
18
- list (APPEND asm_compile_options
19
- "-mcpu=Cortex-M7"
20
- )
21
- list (APPEND link_options
22
- "--cpu=Cortex-M7"
23
- )
24
18
endif ()
25
19
26
20
function (mbed_set_cpu_core_definitions target )
You can’t perform that action at this time.
0 commit comments