Chuck Ebbert
2007-Oct-18 22:50 UTC
Building a kernel "--without debuginfo" is kind of broken
I got a 160MB kernel package and discovered that the kernel and
modules contained debug info. This seems to fix it, does anyone
see a problem with it?
make -s mrproper
cp configs/$Config .config
+ %if !%{with_debuginfo}
+ perl -p -i -e ''s/^CONFIG_DEBUG_INFO=y$/# CONFIG_DEBUG_INFO is not
set/'' .config
+ %endif
Arch=`head -1 .config | cut -b 3-`
echo USING ARCH=$Arch
Jarod Wilson
2007-Oct-19 01:44 UTC
Re: Building a kernel "--without debuginfo" is kind of broken
Chuck Ebbert wrote:> I got a 160MB kernel package and discovered that the kernel and > modules contained debug info. This seems to fix it, does anyone > see a problem with it? > > > make -s mrproper > cp configs/$Config .config > > + %if !%{with_debuginfo} > + perl -p -i -e ''s/^CONFIG_DEBUG_INFO=y$/# CONFIG_DEBUG_INFO is not set/'' .config > + %endif > > Arch=`head -1 .config | cut -b 3-` > echo USING ARCH=$ArchI believe at one point in the past, debuginfo was still getting stripped, just not packaged, with that option. Then things changed around a bit, and with that option, stripping didn''t happen. The above seems like a sane remedy to me. -- Jarod Wilson jwilson@redhat.com