File tree Expand file tree Collapse file tree 6 files changed +40
-29
lines changed Expand file tree Collapse file tree 6 files changed +40
-29
lines changed Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2020 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
- if ("RZ_A1XX" IN_LIST MBED_TARGET_LABELS )
5
- add_subdirectory (TARGET_RZ_A1XX )
6
- elseif ("RZ_A2XX" IN_LIST MBED_TARGET_LABELS )
7
- add_subdirectory (TARGET_RZ_A2XX )
8
- endif ()
4
+ add_subdirectory (TARGET_RZ_A1XX EXCLUDE_FROM_ALL )
5
+ add_subdirectory (TARGET_RZ_A2XX EXCLUDE_FROM_ALL )
9
6
10
- target_include_directories (mbed-core
7
+ add_library (mbed-renesas INTERFACE )
8
+
9
+ target_include_directories (mbed-renesas
11
10
INTERFACE
12
11
.
13
12
)
Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2020 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
- if ("GR_LYCHEE" IN_LIST MBED_TARGET_LABELS )
5
- add_subdirectory (TARGET_GR_LYCHEE )
6
- elseif ("RZ_A1H" IN_LIST MBED_TARGET_LABELS )
7
- add_subdirectory (TARGET_RZ_A1H )
8
- endif ()
4
+ add_subdirectory (TARGET_GR_LYCHEE EXCLUDE_FROM_ALL )
5
+ add_subdirectory (TARGET_RZ_A1H EXCLUDE_FROM_ALL )
9
6
10
- target_include_directories (mbed-core
7
+ add_library (mbed-rz-a1xx INTERFACE )
8
+
9
+ target_include_directories (mbed-rz-a1xx
11
10
INTERFACE
12
11
.
13
12
common
14
13
)
15
14
16
- target_sources (mbed-core
15
+ target_sources (mbed-rz-a1xx
17
16
INTERFACE
18
17
analogin_api.c
19
18
can_api.c
@@ -35,3 +34,5 @@ target_sources(mbed-core
35
34
36
35
common/rza_io_regrw.c
37
36
)
37
+
38
+ target_link_libraries (mbed-rz-a1xx INTERFACE mbed-renesas )
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
11
11
set (WEAK_HANDLER_FILE device/TOOLCHAIN_GCC_ARM/weak_handler.S )
12
12
endif ()
13
13
14
- set_property ( GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR} /${LINKER_FILE} )
14
+ add_library ( mbed-gr-lychee INTERFACE )
15
15
16
16
17
- target_include_directories (mbed-core
17
+ target_include_directories (mbed-gr-lychee
18
18
INTERFACE
19
19
.
20
20
device
@@ -23,7 +23,7 @@ target_include_directories(mbed-core
23
23
device/inc/iodefines
24
24
)
25
25
26
- target_sources (mbed-core
26
+ target_sources (mbed-gr-lychee
27
27
INTERFACE
28
28
trng_api_esp32.cpp
29
29
PeripheralPins.c
@@ -40,3 +40,6 @@ target_sources(mbed-core
40
40
${WEAK_HANDLER_FILE}
41
41
)
42
42
43
+ mbed_set_linker_script (mbed-gr-lychee ${CMAKE_CURRENT_SOURCE_DIR} /${LINKER_FILE} )
44
+
45
+ target_link_libraries (mbed-gr-lychee INTERFACE mbed-rz-a1xx )
Original file line number Diff line number Diff line change @@ -11,10 +11,9 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
11
11
set (WEAK_HANDLER_FILE device/TOOLCHAIN_GCC_ARM/weak_handler.S )
12
12
endif ()
13
13
14
- set_property ( GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR} /${LINKER_FILE} )
14
+ add_library ( mbed-rz-a1h INTERFACE )
15
15
16
-
17
- target_include_directories (mbed-core
16
+ target_include_directories (mbed-rz-a1h
18
17
INTERFACE
19
18
.
20
19
device
@@ -23,7 +22,7 @@ target_include_directories(mbed-core
23
22
device/inc/iodefines
24
23
)
25
24
26
- target_sources (mbed-core
25
+ target_sources (mbed-rz-a1h
27
26
INTERFACE
28
27
PeripheralPins.c
29
28
@@ -38,3 +37,7 @@ target_sources(mbed-core
38
37
${STARTUP_FILE}
39
38
${WEAK_HANDLER_FILE}
40
39
)
40
+
41
+ mbed_set_linker_script (mbed-rz-a1h ${CMAKE_CURRENT_SOURCE_DIR} /${LINKER_FILE} )
42
+
43
+ target_link_libraries (mbed-rz-a1h INTERFACE mbed-rz-a1xx )
Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2020 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
- if ("GR_MANGO" IN_LIST MBED_TARGET_LABELS )
5
- add_subdirectory (TARGET_GR_MANGO )
6
- endif ()
4
+ add_subdirectory (TARGET_GR_MANGO EXCLUDE_FROM_ALL )
7
5
8
- target_include_directories (mbed-core
6
+ add_library (mbed-rz-a2xx INTERFACE )
7
+
8
+ target_include_directories (mbed-rz-a2xx
9
9
INTERFACE
10
10
.
11
11
common
@@ -14,7 +14,7 @@ target_include_directories(mbed-core
14
14
r_can/inc
15
15
)
16
16
17
- target_sources (mbed-core
17
+ target_sources (mbed-rz-a2xx
18
18
INTERFACE
19
19
analogin_api.c
20
20
can_api.c
@@ -38,3 +38,5 @@ target_sources(mbed-core
38
38
39
39
r_can/src/r_can_rz.c
40
40
)
41
+
42
+ target_link_libraries (mbed-rz-a2xx INTERFACE mbed-renesas )
Original file line number Diff line number Diff line change @@ -11,10 +11,9 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
11
11
set (WEAK_HANDLER_FILE device/TOOLCHAIN_GCC_ARM/weak_handler.S )
12
12
endif ()
13
13
14
- set_property ( GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR} /${LINKER_FILE} )
14
+ add_library ( mbed-gr-mango INTERFACE )
15
15
16
-
17
- target_include_directories (mbed-core
16
+ target_include_directories (mbed-gr-mango
18
17
INTERFACE
19
18
.
20
19
device
@@ -24,7 +23,7 @@ target_include_directories(mbed-core
24
23
device/inc/iodefine/iodefines
25
24
)
26
25
27
- target_sources (mbed-core
26
+ target_sources (mbed-gr-mango
28
27
INTERFACE
29
28
PeripheralPins.c
30
29
@@ -40,3 +39,7 @@ target_sources(mbed-core
40
39
${STARTUP_FILE}
41
40
${WEAK_HANDLER_FILE}
42
41
)
42
+
43
+ mbed_set_linker_script (mbed-gr-mango ${CMAKE_CURRENT_SOURCE_DIR} /${LINKER_FILE} )
44
+
45
+ target_link_libraries (mbed-gr-mango INTERFACE mbed-rz-a2xx )
You can’t perform that action at this time.
0 commit comments