Skip to content

Commit

Permalink
armbian-kernel: don't force =n for DEBUG_INFO_DWARF5 and `DEBUG_I…
Browse files Browse the repository at this point in the history
…NFO_BTF`

- really can't remember why I added those, and they cause trouble for BTF
  - See https://www.kernel.org/doc/html/next/bpf/btf.html
  - `CONFIG_DEBUG_INFO_BTF: Generate BTF typeinfo`
    - _Generate deduplicated BTF type information from DWARF debug info. Turning this on expects presence of pahole tool, which will convert DWARF type info into equivalent deduplicated BTF type info._
  • Loading branch information
rpardini authored and igorpecovnik committed Nov 29, 2023
1 parent 073bda8 commit 983d825
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/functions/compilation/armbian-kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ function armbian_kernel_config__disable_module_compression() {
kernel_config_set_string CONFIG_LOCALVERSION '""' # Must be empty; make is later invoked with LOCALVERSION and it adds up

# DONE: Disable: debug option
kernel_config_set_n DEBUG_INFO_DWARF5 # Armbian doesn't know how to package a debug kernel.
kernel_config_set_n DEBUG_KERNEL # ditto
kernel_config_set_n DEBUG_INFO # ditto
kernel_config_set_n DEBUG_INFO_BTF # ditto
kernel_config_set_n GDB_SCRIPTS # ditto
kernel_config_set_n DEBUG_KERNEL # Armbian doesn't know how to package a debug kernel.
kernel_config_set_n DEBUG_INFO # ditto
kernel_config_set_n GDB_SCRIPTS # ditto

# @TODO: Enable the options for the extrawifi/drivers; so we don't need to worry about them when updating configs
fi
Expand Down

0 comments on commit 983d825

Please sign in to comment.