Commit 690bea3a authored by Sebastian Bøe's avatar Sebastian Bøe Committed by Anas Nashif
Browse files

cmake: Fix "make usage" regression from the ZEPHYR_BASE change



$ENV{ZEPHYR_BASE} was recently search-replaced with ${ZEPHYR_BASE},
but some CMake code, like usage.cmake, is run by a seperate CMake
build system that does not have access to the CMake variable
ZEPHYR_BASE.

This patch reverts the usage of ${ZEPHYR_BASE} back to use
$ENV{ZEPHYR_BASE} in usage.cmake.

This has been proven to work on both Windows and Linux.

Signed-off-by: default avatarSebastian Bøe <sebastian.boe@nordicsemi.no>
parent b0d80757
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ set(arch_list
  xtensa
  )

set(board_dir ${ZEPHYR_BASE}/boards)
set(board_dir $ENV{ZEPHYR_BASE}/boards)

foreach(arch ${arch_list})
  set(board_arch_dir ${board_dir}/${arch})