Skip to content

Commit

Permalink
kconfig: get debug from Torvalds' tree if not avail locally
Browse files Browse the repository at this point in the history
Easier like that if we want to test older kernels.

Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
  • Loading branch information
matttbe committed Aug 9, 2024
1 parent a4a3e98 commit 3583e40
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,15 @@ gen_kconfig() { local mode kconfig=() vck rc=0
-e BOOTPARAM_HUNG_TASK_PANIC # instead of blocking
)

vck+=(--custom kernel/configs/debug.config)
local debug_config="kernel/configs/debug.config"

# Introduced in v5.17
if [ ! -s "${debug_config}" ]; then
debug_config="${VIRTME_CACHE_DIR}/debug.config"
curl "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/kernel/configs/debug.config" > "${debug_config}"
fi

vck+=(--custom "${debug_config}")
else
# low-overhead sampling-based memory safety error detector.
# Only in non-debug: KASAN is more precise
Expand Down

0 comments on commit 3583e40

Please sign in to comment.