microkit
microkit copied to clipboard
build_sdk.py: allow SMC calls in release mode
Not sure if you want to go for the same settings as -DRELEASE=True in CI, but those would be set here:
function(ApplyCommonReleaseVerificationSettings release verification)
# Setup flags for different combinations of 'release' (performance optimized builds) and
# 'verification' (verification friendly features) builds
if(release)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
set(KernelPrinting OFF CACHE BOOL "" FORCE)
else()
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "" FORCE)
endif()
if(verification)
set(KernelVerificationBuild ON CACHE BOOL "" FORCE)
else()
set(KernelVerificationBuild OFF CACHE BOOL "" FORCE)
endif()
# If neither release nor verification then enable debug facilities, otherwise turn them off
if((NOT release) AND (NOT verification))
set(KernelDebugBuild ON CACHE BOOL "" FORCE)
set(KernelPrinting ON CACHE BOOL "" FORCE)
else()
set(KernelDebugBuild OFF CACHE BOOL "" FORCE)
endif()
mark_as_advanced(CMAKE_BUILD_TYPE)
endfunction()
(i.e. KernelPrinting OFF is probably one you want to set)
Dropping this for now, see https://github.com/seL4/seL4/issues/1565 for details.