cspec: adjust Kernel_Config generation (#590)

seL4/seL4#975 slightly changed how the config headers are generated.
They now need a (short) `ninja` build step and they produce less spaces
in the header file.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
This commit is contained in:
Gerwin Klein 2023-03-02 11:54:20 +11:00 committed by GitHub
parent 244e7d464f
commit eaf735c38f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -193,7 +193,7 @@ def parse_gen_config(gen_config_file: str) -> Dict[str, str]:
"""
Parse gen_config.h and return a dictionary of the values.
"""
end_comment_re = re.compile(r' /\*.*\*/')
end_comment_re = re.compile(r'/\*.*\*/')
config = {}
with open(gen_config_file, 'r') as f:

View File

@ -128,4 +128,5 @@ ${KERNEL_CONFIG_ROOT}/.cmake_done: ${KERNEL_DEPS} gen-config-thy.py
-DCMAKE_TOOLCHAIN_FILE=${CSPEC_DIR}/c/no-compiler.cmake \
${KERNEL_CMAKE_EXTRA_OPTIONS} \
-G Ninja ${SOURCE_ROOT}
cd ${KERNEL_CONFIG_ROOT} && ninja gen_config/kernel/gen_config.json
touch ${KERNEL_CONFIG_ROOT}/.cmake_done