Skip to content

Commit d7b7463

Browse files
agansarigalak
authored andcommitted
cmake: allow boards to have extra cmake parametes
This commit allows boards to have custom cmake parameters that are loaded before device tree is processed. Signed-off-by: Andrei Gansari <[email protected]>
1 parent d1fa27c commit d7b7463

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/app/boilerplate.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,9 @@ set(CMAKE_CXX_COMPILER_FORCED 1)
442442

443443
include(${ZEPHYR_BASE}/cmake/host-tools.cmake)
444444

445+
# Include board specific device-tree flags before parsing.
446+
include(${BOARD_DIR}/pre_dt_board.cmake OPTIONAL)
447+
445448
# DTS should be close to kconfig because CONFIG_ variables from
446449
# kconfig and dts should be available at the same time.
447450
#

0 commit comments

Comments
 (0)