Commit e677cfd6 authored by Jamie McCrae's avatar Jamie McCrae Committed by Chris Friedt
Browse files

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: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
parent db1ed25f
Loading
Loading
Loading
Loading
+1 −1
Changes for cmake/dts.cmake: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ list(REMOVE_DUPLICATES
# Drop support for NOT CONFIG_HAS_DTS perhaps?
if(EXISTS ${DTS_SOURCE})
  set(SUPPORTS_DTS 1)
  if(BOARD_REVISION AND EXISTS ${BOARD_DIR}/${BOARD}_${BOARD_REVISION_STRING}.overlay)
  if(DEFINED BOARD_REVISION AND EXISTS ${BOARD_DIR}/${BOARD}_${BOARD_REVISION_STRING}.overlay)
    list(APPEND DTS_SOURCE ${BOARD_DIR}/${BOARD}_${BOARD_REVISION_STRING}.overlay)
  endif()
else()