zephyr: boot: Correct how the default board is set
The default board should be set simply by 'set'ing the BOARD. This has
the lowest precedence of all possible inputs.
Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
diff --git a/boot/zephyr/CMakeLists.txt b/boot/zephyr/CMakeLists.txt
index e31e531..40b188c 100644
--- a/boot/zephyr/CMakeLists.txt
+++ b/boot/zephyr/CMakeLists.txt
@@ -18,10 +18,8 @@
endif()
endmacro()
-# The board should be set to a supported target.
-if (NOT DEFINED BOARD)
- set(BOARD qemu_x86)
-endif()
+# Default to qemu_x86 if no board has been specified.
+set(BOARD qemu_x86)
# Add a common dts overlay necessary to ensure mcuboot is linked into,
# and fits inside, the boot partition. (If the user specified a