seL4Config.cmake: Add FORCE to KernelSel4Arch

Without FORCE being added to `set` in declare_seL4_arch for
KernelSel4Arch, the set command doesn't seem to persist as the variable
must be already initialised in some cases. In this part of the script
processing, a platform has already been selected and is setting its seL4
arch and so using FORCE seems appropriate anyway.
This commit is contained in:
Kent McLeod
2019-09-19 17:26:35 +10:00
parent 8234026c1f
commit 8748d8ea5e

View File

@@ -25,7 +25,7 @@ include(${CMAKE_CURRENT_LIST_DIR}/../tools/helpers.cmake)
# aarch32, aarch64, arm_hyp, riscv32, riscv64, x86_64, ia32
# This macro is intended to be called from within a platform config.
macro(declare_seL4_arch sel4_arch)
set(KernelSel4Arch "${sel4_arch}" CACHE STRING "")
set(KernelSel4Arch "${sel4_arch}" CACHE STRING "" FORCE)
config_choice(
KernelSel4Arch
SEL4_ARCH