Skip to content

build(linux-mt6858): build without debug information - #111

Open
patrickjquinn wants to merge 1 commit into
fix/jolla-ovl-34bitfrom
build/jolla-kernel-no-debuginfo
Open

patrickjquinn wants to merge 1 commit into
fix/jolla-ovl-34bitfrom
build/jolla-kernel-no-debuginfo

Conversation

@patrickjquinn

Copy link
Copy Markdown
Owner

Stacked on #110.

arm64's defconfig turns on CONFIG_DEBUG_INFO, which made linux-mt6858's build tree about 12 GB. An r25 build on the 85 GB build host ran out of space 8 GB in. Nothing ships the debug info: package() installs the modules stripped (INSTALL_MOD_STRIP=1) and ships no vmlinux.

Checked that nothing that ships changes. The tree was configured twice (defconfig + mt6858.config + marathon.config, with and without the new line). The generated .configs differ only in the debug-info symbols:

< CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
< CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
< CONFIG_DEBUG_INFO_REDUCED=y
< CONFIG_DEBUG_INFO=y
---
> CONFIG_DEBUG_INFO_NONE=y
  • The =y and =m sets are the same, so the built-in drivers and the module list (modules.order) are the same.
  • No BTF or BPF option depends on it; the phone has no /sys/kernel/btf.
  • The strip step is unaffected.

Decoding a stack trace now needs the same tree rebuilt with CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y (same patches and config otherwise), then scripts/decode_stacktrace.sh vmlinux. The comment in marathon.config says so.

The r26 package (with #105 and #110) is built from this branch and installed on the Jolla; results are in the session report.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BrjN1gf1Fu2w5MqXBmEowh

arm64's defconfig turns on CONFIG_DEBUG_INFO, which made the package's
build tree about 12 GB: an r25 build on the 85 GB build host ran out of
space 8 GB in. Nothing ships it: the modules are installed stripped and
the package carries no vmlinux.

With CONFIG_DEBUG_INFO_NONE=y the generated .config differs from the
current one only in the four DEBUG_INFO symbols: the same =y and =m
sets, so the same built-in drivers and module list, and no BTF or BPF
option depends on it (the phone has no /sys/kernel/btf). To decode a
stack trace, rebuild the same tree with
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y and run
scripts/decode_stacktrace.sh on its vmlinux.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant