Skip to content

Commit

Permalink
armbian-kernel: skip enabling BTF for rk35xx vendor kernel
Browse files Browse the repository at this point in the history
fix minor typo by @EvilOlaf
  • Loading branch information
amazingfate committed Jan 14, 2025
1 parent 245c74a commit b17e9e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/functions/compilation/armbian-kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,13 @@ function armbian_kernel_config__600_enable_ebpf_and_btf_info() {
declare -a opts_y=(
"CONFIG_BPF_JIT" "CONFIG_BPF_JIT_DEFAULT_ON" "CONFIG_FTRACE_SYSCALLS" "CONFIG_PROBE_EVENTS_BTF_ARGS" "CONFIG_BPF_KPROBE_OVERRIDE"
"CONFIG_DEBUG_INFO" "CONFIG_DEBUG_INFO_DWARF5"
"CONFIG_DEBUG_INFO_BTF" "CONFIG_DEBUG_INFO_BTF_MODULES"
)

# We don't enable BTF on rk vendor kernel because it will cause some dkms module load with kernel panic
if [[ "${LINUXFAMILY}" != "rk35xx" ]]; then
opts_y+=("CONFIG_DEBUG_INFO_BTF")
fi

if [[ "${ARCH}" == "arm64" ]]; then
opts_y+=("CONFIG_ARM64_VA_BITS_48")
opts_val["CONFIG_ARM64_PA_BITS"]="48"
Expand Down

0 comments on commit b17e9e5

Please sign in to comment.