I have built the Linux kernel, but I wanted to do it without building the debug package.

I know that it's possible to disable the flag CONFIG_DEBUG_INFO, via scripts/config (with either --set str "" or --disable).

However, I'm confused, because when I invoke make deb-pkg, the flag is reset to the value y, so that the package is built.

Why does this happen?

1 Answer 1


The behaviour changed slightly in 5.18, which may be why you’re seeing this. DEBUG_INFO is now a selection, so CONFIG_DEBUG_INFO is set based on other configuration settings. To disable DEBUG_INFO, you need to enable DEBUG_INFO_NONE and make sure all the other selections are disabled (DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT, DEBUG_INFO_DWARF4, DEBUG_INFO_DWARF5).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .