Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-11358

just make local modules when build debian-sources to save build time

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None

      with localmodconfig and LMC_KEEP documented in kernel readme, we could save much build time.

      diff --git a/sys-kernel/debian-sources/debian-sources-6.1.27_p1.ebuild b/sys-kernel/debian-sources/debian-sources-6.1.27_p1.ebuild
      index c7285c6..dc8fd21 100644
      --- a/sys-kernel/debian-sources/debian-sources-6.1.27_p1.ebuild
      +++ b/sys-kernel/debian-sources/debian-sources-6.1.27_p1.ebuild
      @@ -166,6 +166,7 @@ src_prepare() {
           cp "${FILESDIR}"/config-extract-6.1 ./config-extract || die
           chmod +x config-extract || die
           ./config-extract ${arch} ${featureset} ${subarch} || die
      +    yes "" | make LMC_KEEP="drivers/usb:drivers/gpu:fs" localmodconfig >/dev/null 2>&1 || die
           setno_config .config CONFIG_DEBUG
           if use acpi-ec; then
               # most fan control tools require this
      

      Tried on my e3-1231v3 with this patch, the build time decreased from ~3000s to ~1400s, then boot and work seems as usual.
       

            Unassigned Unassigned
            simsilver simsilver
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: