Skip to content

Commit 2b71e9b

Browse files
authored
feat: Enable BTF config for kernel BPF CORE (#34)
* control: add libelf-dev, pahole Prepare depends for BTF CORE. * configs: add BTF for x86 desktop generate BTF typeinfo for BPF CORE and advanced BTF features * configs: add BTF for x86 laptop generate BTF typeinfo for BPF CORE and advanced BTF features * configs: add BTF for arm64 desktop generate BTF typeinfo for BPF CORE and advanced BTF features * mkdebian: add libelf-dev, pahole fix [control: add libelf-dev, pahole](04b5dd3) Depends for BTF CORE.
1 parent 6f1d27b commit 2b71e9b

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

arch/arm64/configs/deepin_arm_desktop_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3389,6 +3389,7 @@ CONFIG_PRINTK_TIME=y
33893389
CONFIG_CONSOLE_LOGLEVEL_DEFAULT=4
33903390
CONFIG_DYNAMIC_DEBUG=y
33913391
CONFIG_DEBUG_INFO=y
3392+
CONFIG_DEBUG_INFO_BTF=y
33923393
# CONFIG_ENABLE_MUST_CHECK is not set
33933394
CONFIG_STRIP_ASM_SYMS=y
33943395
CONFIG_DEBUG_SECTION_MISMATCH=y

arch/x86/configs/deepin_desktop_common_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5623,6 +5623,7 @@ CONFIG_BOOT_PRINTK_DELAY=y
56235623
CONFIG_DYNAMIC_DEBUG=y
56245624
# CONFIG_DEBUG_MISC is not set
56255625
CONFIG_DEBUG_INFO_DWARF4=y
5626+
CONFIG_DEBUG_INFO_BTF=y
56265627
CONFIG_GDB_SCRIPTS=y
56275628
CONFIG_FRAME_WARN=1024
56285629
CONFIG_STACK_VALIDATION=y

arch/x86/configs/deepin_desktop_laptop_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5627,6 +5627,7 @@ CONFIG_BOOT_PRINTK_DELAY=y
56275627
CONFIG_DYNAMIC_DEBUG=y
56285628
# CONFIG_DEBUG_MISC is not set
56295629
CONFIG_DEBUG_INFO_DWARF4=y
5630+
CONFIG_DEBUG_INFO_BTF=y
56305631
CONFIG_GDB_SCRIPTS=y
56315632
CONFIG_FRAME_WARN=1024
56325633
CONFIG_STACK_VALIDATION=y

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Section: kernel
33
Priority: optional
44
Maintainer: matrix <matrix@matrix-PC>
55
Rules-Requires-Root: no
6-
Build-Depends: zstd, bc, debhelper, rsync, kmod, cpio, bison, flex, libelf-dev:native, libssl-dev:native, openssl
6+
Build-Depends: zstd, bc, debhelper, rsync, kmod, cpio, bison, flex, libelf-dev:native, libssl-dev:native, openssl, libelf-dev, pahole
77
Homepage: https://www.kernel.org/
88

99
Package: linux-image-6.5.4

scripts/package/mkdebian

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ Section: kernel
215215
Priority: optional
216216
Maintainer: $maintainer
217217
Rules-Requires-Root: no
218-
Build-Depends: zstd, bc, debhelper, rsync, kmod, cpio, bison, flex, libelf-dev:native, libssl-dev:native, openssl
218+
Build-Depends: zstd, bc, debhelper, rsync, kmod, cpio, bison, flex, libelf-dev:native, libssl-dev:native, openssl, libelf-dev, pahole
219219
Homepage: https://www.kernel.org/
220220
221221
Package: $packagename-$version

0 commit comments

Comments
 (0)