File tree Expand file tree Collapse file tree 3 files changed +22
-15
lines changed Expand file tree Collapse file tree 3 files changed +22
-15
lines changed Original file line number Diff line number Diff line change 1
- # Copyright (c) 2020 ARM Limited. All rights reserved.
1
+ # Copyright (c) 2020-2021 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
- if ("TMPM46B" IN_LIST MBED_TARGET_LABELS )
5
- add_subdirectory (TARGET_TMPM46B )
6
- elseif ("TMPM4G9" IN_LIST MBED_TARGET_LABELS )
7
- add_subdirectory (TARGET_TMPM4G9 )
8
- endif ()
4
+ add_subdirectory (TARGET_TMPM46B EXCLUDE_FROM_ALL )
5
+ add_subdirectory (TARGET_TMPM4G9 EXCLUDE_FROM_ALL )
9
6
10
- target_include_directories (mbed-core
7
+ add_library (mbed-toshiba INTERFACE )
8
+
9
+ target_include_directories (mbed-toshiba
11
10
INTERFACE
12
11
.
13
12
)
Original file line number Diff line number Diff line change 1
- # Copyright (c) 2020 ARM Limited. All rights reserved.
1
+ # Copyright (c) 2020-2021 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
4
if (${MBED_TOOLCHAIN} STREQUAL "ARM" )
@@ -9,16 +9,16 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
9
9
set (STARTUP_FILE device/TOOLCHAIN_GCC_ARM/startup_TMPM46b.S )
10
10
endif ()
11
11
12
- set_property ( GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR} /${LINKER_FILE} )
12
+ add_library ( mbed-tmpm46b INTERFACE )
13
13
14
- target_include_directories (mbed-core
14
+ target_include_directories (mbed-tmpm46b
15
15
INTERFACE
16
16
.
17
17
device
18
18
Periph_Driver/inc
19
19
)
20
20
21
- target_sources (mbed-core
21
+ target_sources (mbed-tmpm46b
22
22
INTERFACE
23
23
analogin_api.c
24
24
flash_api.c
@@ -52,3 +52,7 @@ target_sources(mbed-core
52
52
53
53
${STARTUP_FILE}
54
54
)
55
+
56
+ mbed_set_linker_script (mbed-tmpm46b ${CMAKE_CURRENT_SOURCE_DIR} /${LINKER_FILE} )
57
+
58
+ target_link_libraries (mbed-tmpm46b INTERFACE mbed-toshiba )
Original file line number Diff line number Diff line change 1
- # Copyright (c) 2020 ARM Limited. All rights reserved.
1
+ # Copyright (c) 2020-2021 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
4
if (${MBED_TOOLCHAIN} STREQUAL "ARM" )
@@ -9,16 +9,16 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
9
9
set (STARTUP_FILE device/TOOLCHAIN_GCC_ARM/startup_TMPM4G9.S )
10
10
endif ()
11
11
12
- set_property ( GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR} /${LINKER_FILE} )
12
+ add_library ( mbed-tmpm4g9 INTERFACE )
13
13
14
- target_include_directories (mbed-core
14
+ target_include_directories (mbed-tmpm4g9
15
15
INTERFACE
16
16
.
17
17
device
18
18
Periph_Driver/inc
19
19
)
20
20
21
- target_sources (mbed-core
21
+ target_sources (mbed-tmpm4g9
22
22
INTERFACE
23
23
analogin_api.c
24
24
analogout_api.c
@@ -54,3 +54,7 @@ target_sources(mbed-core
54
54
55
55
${STARTUP_FILE}
56
56
)
57
+
58
+ mbed_set_linker_script (mbed-tmpm4g9 ${CMAKE_CURRENT_SOURCE_DIR} /${LINKER_FILE} )
59
+
60
+ target_link_libraries (mbed-tmpm4g9 INTERFACE mbed-toshiba )
You can’t perform that action at this time.
0 commit comments