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.
22# SPDX-License-Identifier: Apache-2.0
33
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 )
96
10- target_include_directories (mbed-core
7+ add_library (mbed-toshiba INTERFACE )
8+
9+ target_include_directories (mbed-toshiba
1110 INTERFACE
1211 .
1312)
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.
22# SPDX-License-Identifier: Apache-2.0
33
44if (${MBED_TOOLCHAIN} STREQUAL "ARM" )
@@ -9,16 +9,16 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
99 set (STARTUP_FILE device/TOOLCHAIN_GCC_ARM/startup_TMPM46b.S)
1010endif ()
1111
12- set_property ( GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR} / ${LINKER_FILE} )
12+ add_library (mbed-tmpm46b INTERFACE )
1313
14- target_include_directories (mbed-core
14+ target_include_directories (mbed-tmpm46b
1515 INTERFACE
1616 .
1717 device
1818 Periph_Driver/inc
1919)
2020
21- target_sources (mbed-core
21+ target_sources (mbed-tmpm46b
2222 INTERFACE
2323 analogin_api.c
2424 flash_api.c
@@ -52,3 +52,7 @@ target_sources(mbed-core
5252
5353 ${STARTUP_FILE}
5454)
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.
22# SPDX-License-Identifier: Apache-2.0
33
44if (${MBED_TOOLCHAIN} STREQUAL "ARM" )
@@ -9,16 +9,16 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
99 set (STARTUP_FILE device/TOOLCHAIN_GCC_ARM/startup_TMPM4G9.S)
1010endif ()
1111
12- set_property ( GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR} / ${LINKER_FILE} )
12+ add_library (mbed-tmpm4g9 INTERFACE )
1313
14- target_include_directories (mbed-core
14+ target_include_directories (mbed-tmpm4g9
1515 INTERFACE
1616 .
1717 device
1818 Periph_Driver/inc
1919)
2020
21- target_sources (mbed-core
21+ target_sources (mbed-tmpm4g9
2222 INTERFACE
2323 analogin_api.c
2424 analogout_api.c
@@ -54,3 +54,7 @@ target_sources(mbed-core
5454
5555 ${STARTUP_FILE}
5656)
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