Skip to content

Commit 28dfe13

Browse files
authored
Add BTF support to host kernel, rename zone-debug to zone-bpf (#113)
* Add BTF support to host kernel, rename `zone-debug` to `zone-bpf` * Host kernel build is running out of build space :/ * use large runner for test too, that should be better
1 parent a59f2ff commit 28dfe13

File tree

6 files changed

+16
-7
lines changed

6 files changed

+16
-7
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
jobs:
1313
test:
1414
name: test
15-
runs-on: ubuntu-latest
15+
runs-on: edera-large
1616
env:
1717
FIRMWARE_URL: "https://cdn.kernel.org/pub/linux/kernel/firmware/linux-firmware-20250410.tar.xz"
1818
FIRMWARE_SIG_URL: "https://cdn.kernel.org/pub/linux/kernel/firmware/linux-firmware-20250410.tar.sign"

config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ architectures:
44
- aarch64
55
flavors:
66
- name: zone
7-
- name: zone-debug
7+
- name: zone-bpf
88
constraints:
99
lower: '6.1'
1010
- name: zone-amdgpu
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#
22
# Edera kernel config snippet
3-
# - Generated from delta config: configs/aarch64/zone-debug.fragment.config
3+
# - Generated from delta config: configs/aarch64/zone-bpf.fragment.config
44
# - Against base config: configs/aarch64/zone.config
55
#
66
CONFIG_DEBUG_INFO=y
77
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
88
CONFIG_DEBUG_INFO_REDUCED=n
9+
CONFIG_DEBUG_INFO_SPLIT=n
910
CONFIG_DEBUG_INFO_NONE=n
1011
CONFIG_DEBUG_INFO_BTF=y
1112
CONFIG_DEBUG_INFO_BTF_MODULES=y
12-
13+
CONFIG_DEBUG_INFO_COMPRESSED_ZSTD=y

configs/x86_64/host.config

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5961,3 +5961,10 @@ CONFIG_ARCH_HAS_KCOV=y
59615961
CONFIG_CC_HAS_SANCOV_TRACE_PC=y
59625962
CONFIG_ARCH_USE_MEMTEST=y
59635963

5964+
# BTF support (needed by some eBPF stuff)
5965+
CONFIG_DEBUG_INFO=y
5966+
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
5967+
CONFIG_DEBUG_INFO_REDUCED=n
5968+
CONFIG_DEBUG_INFO_NONE=n
5969+
CONFIG_DEBUG_INFO_BTF=y
5970+
CONFIG_DEBUG_INFO_BTF_MODULES=y
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
CONFIG_DEBUG_INFO=y
77
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
88
CONFIG_DEBUG_INFO_REDUCED=n
9+
CONFIG_DEBUG_INFO_SPLIT=n
910
CONFIG_DEBUG_INFO_NONE=n
1011
CONFIG_DEBUG_INFO_BTF=y
1112
CONFIG_DEBUG_INFO_BTF_MODULES=y
12-
13+
CONFIG_DEBUG_INFO_COMPRESSED_ZSTD=y

hack/build/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ SQUASH_SIZE=$(stat -c %s "${ADDONS_SQUASHFS_PATH}")
3838
# We don't really care how big the host kernel is.
3939
# Nvidia kernels have chonker firmwares, even compressed (like 200MB total size), so not much we can really do there.
4040
case "$KERNEL_FLAVOR" in
41-
zone-debug)
42-
# Skip the check for zone-debug, it is allowed to be big
41+
zone-bpf)
42+
# Skip the check for zone-bpf, it is allowed to be big
4343
;;
4444
zone-nvidiagpu)
4545
# Firmware means this is unavoidably quite large

0 commit comments

Comments
 (0)