Skip to content

Commit e677cfd

Browse files
nordicjmcfriedt
authored andcommitted
cmake: modules: dts: Fix board revision 0 overlay
Fixes an issue whereby a board revision is 0 and the overlay file exists but would not be included Signed-off-by: Jamie McCrae <[email protected]>
1 parent db1ed25 commit e677cfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/dts.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ list(REMOVE_DUPLICATES
5353
# Drop support for NOT CONFIG_HAS_DTS perhaps?
5454
if(EXISTS ${DTS_SOURCE})
5555
set(SUPPORTS_DTS 1)
56-
if(BOARD_REVISION AND EXISTS ${BOARD_DIR}/${BOARD}_${BOARD_REVISION_STRING}.overlay)
56+
if(DEFINED BOARD_REVISION AND EXISTS ${BOARD_DIR}/${BOARD}_${BOARD_REVISION_STRING}.overlay)
5757
list(APPEND DTS_SOURCE ${BOARD_DIR}/${BOARD}_${BOARD_REVISION_STRING}.overlay)
5858
endif()
5959
else()

0 commit comments

Comments
 (0)