seL4Config.cmake is responsible for generating a valid CMAKE_TOOLCHAIN_FILE and setting up platform config options at the start of the build. The CMAKE_TOOLCHAIN_FILE variable has to be set before the first cmake `project()` function is processed to take effect. Previously this file was required to be imported in a CMake script before the kernel's CMakeLists.txt could be processed. This prevented the main CMakeLists.txt file from being used without an additional configuration file: cmake -G Ninja -C ../configs/ARM_verified.cmake ../ Now it is possible to do: cmake -G Ninja -DKernelPlatform=imx6 -DKernelARMPlatform=sabre ../ This should make it easier to invoke CMake for building kernel configurations from other build environments. Because this file is now imported in the Kernel's CMakeLists.txt context, there is no longer a requirement to save all the intermediate settings into the cache and then read them out again. Signed-off-by: Kent McLeod <kent@kry10.com> |
||
|---|---|---|
| .. | ||
| ARM_HYP_verified.cmake | ||
| ARM_MCS_verified.cmake | ||
| ARM_verified.cmake | ||
| RISCV64_MCS_verified.cmake | ||
| RISCV64_verified.cmake | ||
| seL4Config.cmake | ||
| X64_verified.cmake | ||