Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #66477

Re: kernel-handbook: How to rebuild official Debian Linux kernel package with debug info disabled?

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.kernel
Subject Re: kernel-handbook: How to rebuild official Debian Linux kernel package with debug info disabled?
Date 2020-03-09 01:00 +0100
Message-ID <zIdZU-8kJ-1@gated-at.bofh.it> (permalink)
References <zGUmC-8bz-11@gated-at.bofh.it> <zH2Dw-52X-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu, 2020-03-05 at 18:23 +0100, Thomas Schwinge wrote:
[...]
> > ..., so I'll try again with setting 'debug-info' to 'false' both in
> > 'debian/config/defines' and 'debian/config/i386/defines'.
> 
> Eh, same result/problem...  ;-/
> 
> I'll (later) try to figure out the right edits or commands to use, but
> would also appreciate working instructions, if anyone knows off-hand?
> Probably separate '.config' generation and alternation
> ('CONFIG_DEBUG_INFO=n', is that enough?) from the actual build?

If you already started a build, changing debian/config won't affect it.
In general, you would need to run "debian/rules debian/control", clean,
and build again.

If you have done that, then I don't understand how this is going wrong.

> > Why do some of these configuration files override the generic one
> > (without giving rationale), and/or do the kernel-handbook instructions
> > need to be updated?

We used to enable debug-info only for a few configurations; then we
changed to enable it for all configurations but didn't delete the
redundant settings.  And I documented this wrongly.

I've updated the handbook (only git and the online version so far) to
correct this.  I have also deleted the redundant settings, to make this
simpler in future.

Ben.

-- 
Ben Hutchings
Knowledge is power.  France is bacon.


Back to linux.debian.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

kernel-handbook: How to rebuild official Debian Linux kernel package with debug info disabled? Thomas Schwinge <thomas@codesourcery.com> - 2020-03-05 09:50 +0100
  Re: kernel-handbook: How to rebuild official Debian Linux kernel package with debug info disabled? Thomas Schwinge <thomas@codesourcery.com> - 2020-03-05 18:40 +0100
    Re: kernel-handbook: How to rebuild official Debian Linux kernel  package with debug info disabled? Ben Hutchings <ben@decadent.org.uk> - 2020-03-09 01:00 +0100

csiph-web