File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: Apache-2.0
2
2
3
- if (IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /variants/${BOARD} )
4
- set (variant_dir variants/${BOARD} )
5
- elseif (IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /variants/${BOARD}${NORMALIZED_BOARD_QUALIFIERS} )
6
- set (variant_dir variants/${BOARD}${NORMALIZED_BOARD_QUALIFIERS} )
7
- else ()
8
- message (FATAL_ERROR "Variant dir not found: variants/${BOARD} , variants/${BOARD}${NORMALIZED_BOARD_QUALIFIERS} " )
9
- endif ()
10
-
11
3
if (CONFIG_ARDUINO_API)
12
- add_subdirectory (cores)
13
- add_subdirectory (libraries)
14
- zephyr_include_directories(${variant_dir} )
4
+ if (IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /variants/${BOARD}${NORMALIZED_BOARD_QUALIFIERS} )
5
+ set (variant_dir variants/${BOARD}${NORMALIZED_BOARD_QUALIFIERS} )
6
+ else ()
7
+ message (FATAL_ERROR "Variant dir not found: variants/${BOARD}${NORMALIZED_BOARD_QUALIFIERS} " )
8
+ endif ()
9
+
10
+ add_subdirectory (cores)
11
+ add_subdirectory (libraries)
12
+ zephyr_include_directories(${variant_dir} )
15
13
endif ()
16
14
You can’t perform that action at this time.
0 commit comments