cmake: Error-out when dts.fixup files are detected
The filename dts.fixup is deprecated, dts_fixup.h should be used instead. This commit detects when fixup files have not been renamed and errors out with a warning. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
parent
8eb734cd82
commit
d0fc988e9f
1 changed files with 16 additions and 0 deletions
|
@ -119,6 +119,22 @@ if(CONFIG_HAS_DTS)
|
|||
message(FATAL_ERROR "command failed with return code: ${ret}")
|
||||
endif()
|
||||
|
||||
# Error-out when the deprecated naming convention is found (until
|
||||
# after 1.14.0 has been released)
|
||||
foreach(path
|
||||
${BOARD_DIR}/dts.fixup
|
||||
${PROJECT_SOURCE_DIR}/soc/${ARCH}/${SOC_PATH}/dts.fixup
|
||||
${APPLICATION_SOURCE_DIR}/dts.fixup
|
||||
)
|
||||
if(EXISTS ${path})
|
||||
message(FATAL_ERROR
|
||||
"A deprecated filename has been detected. Porting is required."
|
||||
"The file '${path}' exists, but it should be named dts_fixup.h instead."
|
||||
"See https://github.com/zephyrproject-rtos/zephyr/pull/10352 for more details"
|
||||
)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
# Run extract_dts_includes.py for the header file
|
||||
# generated_dts_board.h
|
||||
set_ifndef(DTS_BOARD_FIXUP_FILE ${BOARD_DIR}/dts_fixup.h)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue