microkit icon indicating copy to clipboard operation
microkit copied to clipboard

build_sdk.py: allow SMC calls in release mode

Open Ivan-Velickovic opened this issue 1 month ago • 1 comments

Ivan-Velickovic avatar Nov 26 '25 00:11 Ivan-Velickovic

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)

lsf37 avatar Nov 26 '25 00:11 lsf37

Dropping this for now, see https://github.com/seL4/seL4/issues/1565 for details.

Ivan-Velickovic avatar Nov 27 '25 02:11 Ivan-Velickovic