<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15059</bug_id>
          
          <creation_ts>2023-03-03 23:50:04 +0000</creation_ts>
          <short_desc>INITRAMFS_IMAGE_BUNDLE rebuilds the whole kernel</short_desc>
          <delta_ts>2026-05-28 14:28:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>kernel</component>
          <version>4.0.10</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>IN PROGRESS IMPLEMENTATION</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>NIR 03/31</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>6.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nick Owens">nick.owens</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>nick.owens</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>95063</commentid>
    <comment_count>0</comment_count>
    <who name="Nick Owens">nick.owens</who>
    <bug_when>2023-03-03 23:50:04 +0000</bug_when>
    <thetext>in an otherwise clean kirkstone tree with

INITRAMFS_FSTYPES = &quot;cpio&quot;
INITRAMFS_IMAGE = &quot;core-image-minimal-initramfs&quot;
INITRAMFS_IMAGE_BUNDLE = &quot;1&quot;

set in local.conf, the do_bundle_initramfs task takes an excruciatingly long time, much longer than just do_compile.

to bundle the initramfs, the task appears to rebuild the whole kernel, while also ignoring PARALLEL_MAKE.

on my system with PARALLEL_MAKE=&quot;-j32&quot;, do_compile takes about 1 minute, whereas bundle_initramfs takes over 9 minutes.

i suspect setting CONFIG_INITRAMFS_SOURCE somehow taints the kernel source and the kernel makefiles think everything has to be rebuilt.

the best fix here is probably to not rebuild the whole kernel if possible, but if that isn&apos;t possible then at least rebuild it in parallel.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95095</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-03-09 15:35:29 +0000</bug_when>
    <thetext>Does this also happen on the master branch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95109</commentid>
    <comment_count>2</comment_count>
    <who name="Nick Owens">nick.owens</who>
    <bug_when>2023-03-10 13:30:30 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Does this also happen on the master branch?

yes, i&apos;ve just tested this on master:

commit 45d0ab66fd1285834312c8bb28124d2617461763 (HEAD -&gt; master, origin/master)
Author: Michael Halstead &lt;mhalstead@linuxfoundation.org&gt;
Date:   Wed Mar 8 16:09:31 2023 -0800

    selftest/runtime_test/virgl: Disable for all Rocky Linux


the kernel is still completely rebuilt, and ignores PARALLEL_MAKE, when executing do_bundle_initramfs. my expectation is that either the whole kernel is not rebuilt just to bundle the initramfs, or it is at least done in parallel.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95154</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-03-16 15:20:11 +0000</bug_when>
    <thetext>Still a bug. Bruce?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95257</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2023-03-31 17:04:59 +0000</bug_when>
    <thetext>Yup. Parallel or not, we need to root cause the rebuild reason.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99933</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-10-17 19:04:15 +0000</bug_when>
    <thetext>Bulk move of medium importance bugs from 5.1 to 5.2 on behalf of Bruce.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>