Skip to content

Commit a959f1b

Browse files
quytranpzzKhiemNguyenT
authored andcommitted
hal: renesas: CMakeLists: Add condition for zephyr_library() definition
Move the zephyr_library() definition to hal_renesas CMakeLists and add the condition to use for only Renesas devices Signed-off-by: Quy Tran <[email protected]>
1 parent cbaf9b5 commit a959f1b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3+
if(CONFIG_HAS_RENESAS_RA_FSP OR CONFIG_HAS_RENESAS_RZ_FSP OR CONFIG_SOC_FAMILY_RENESAS_SMARTBOND)
4+
zephyr_library()
5+
endif()
6+
37
add_subdirectory_ifdef(CONFIG_SOC_FAMILY_RENESAS_SMARTBOND smartbond)
48
add_subdirectory(zephyr)
59
add_subdirectory(drivers)

drivers/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3-
zephyr_library()
43
add_subdirectory_ifdef(CONFIG_HAS_RENESAS_RA_FSP ra)
54
add_subdirectory_ifdef(CONFIG_HAS_RENESAS_RZ_FSP rz)

0 commit comments

Comments
 (0)