blob: 502fa50562cae9b224d18735c59848801a8e7964 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# Config fragment that turns off DWARF and BTF generation.
#
# The package throws the debug info away anyway: the spec sets
# `%global debug_package %{nil}` and installs modules with
# INSTALL_MOD_STRIP=1, so no -debuginfo subpackage is ever produced.
# Compiling it only costs build RAM, disk and time, which is what constrains
# the 6 CPU / 8 GB arm64 builder.
#
# What this gives up: BTF is the one part of the debug info that would have
# shipped, in vmlinux and in the modules. Without it there is no
# /sys/kernel/btf/vmlinux, so eBPF CO-RE tooling (bpftrace, libbpf programs)
# does not work, and CONFIG_BPF_LSM turns itself off because it depends on
# CONFIG_DEBUG_INFO_BTF - which in turn disables systemd unit settings built
# on the BPF LSM, such as RestrictFileSystems=.
CONFIG_DEBUG_INFO_NONE=y
# CONFIG_DEBUG_INFO is not set
# CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT is not set
# CONFIG_DEBUG_INFO_DWARF4 is not set
# CONFIG_DEBUG_INFO_DWARF5 is not set
# CONFIG_DEBUG_INFO_BTF is not set
# CONFIG_DEBUG_INFO_BTF_MODULES is not set
|