On Tue, Jun 14, 2016 at 3:47 PM, Laura Abbott <labbott@xxxxxxxxxx> wrote: > On 06/13/2016 12:54 PM, Paul Bolle wrote: >> >> On vr, 2016-06-10 at 12:42 -0700, Miguel Flores Silverio wrote: >>> >>> +rpmbuild --target $1 --without debuginfo --without perf --without tools >>> --rebuild $2 >> >> >> When I build locally I also have: >> --with baseonly >> --without debug >> --without doc >> >> I've been using these additional flags for years. My hope is that doing >> this speeds up building the kernel rpms. Of course I've never actually >> measured anything so this might be cargo cult behavior on my side. >> >> (I also build with CONFIG_DEBUG_INFO unset, for a year or two now. See >> https://lkml.org/lkml/2014/1/28/402 . I mainly noticed that it saves a >> few GB of space in my rpmbuild directory, if memory serves me right. >> Cargo cult again?) >> > > Thanks for this info. CONFIG_DEBUG_INFO does save a bunch of disk space. > It goes from ~7GB -> ~1.5GB which is much more reasonable. To be clear, that means tools like crash, gdb, and the kernel-debuginfo package won't work at all because the information isn't part of the build. If you just want to test compiling, that's fine. If you're actively developing something and just want a faster build but need to debug issues, it might not be the best choice. > I think --without debug would be a good addition to this. Miguel, can > you send out another version of this patch with --without debug added? Yes, that is probably a good addition. josh _______________________________________________ kernel mailing list kernel@xxxxxxxxxxxxxxxxxxxxxxx https://lists.fedoraproject.org/admin/lists/kernel@xxxxxxxxxxxxxxxxxxxxxxx