mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-13 04:49:36 +00:00
kernel: Add KERNEL_DEBUG_ENABLED to build scripts
We want to be able to build a debug version of the kernel for various use-cases like debugging, tracing and others. Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
This commit is contained in:
committed by
Fabiano Fidêncio
parent
b7af7f344b
commit
a4597672c0
@@ -33,6 +33,7 @@ readonly default_initramfs="${script_dir}/initramfs.cpio.gz"
|
||||
readonly VENDOR_INTEL="intel"
|
||||
readonly VENDOR_NVIDIA="nvidia"
|
||||
readonly KBUILD_SIGN_PIN=${KBUILD_SIGN_PIN:-""}
|
||||
readonly KERNEL_DEBUG_ENABLED=${KERNEL_DEBUG_ENABLED:-"no"}
|
||||
|
||||
#Path to kernel directory
|
||||
kernel_path=""
|
||||
@@ -315,6 +316,12 @@ get_kernel_frag_path() {
|
||||
all_configs="${all_configs} ${sign_configs}"
|
||||
fi
|
||||
|
||||
if [[ ${KERNEL_DEBUG_ENABLED} == "yes" ]]; then
|
||||
info "Enable kernel debug"
|
||||
local debug_configs="$(ls ${common_path}/common/debug.conf)"
|
||||
all_configs="${all_configs} ${debug_configs}"
|
||||
fi
|
||||
|
||||
if [[ "$force_setup_generate_config" == "true" ]]; then
|
||||
info "Remove existing config ${config_path} due to '-f'"
|
||||
[ -f "$config_path" ] && rm -f "${config_path}"
|
||||
|
Reference in New Issue
Block a user