<?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>13361</bug_id>
          
          <creation_ts>2019-05-26 03:41:37 +0000</creation_ts>
          <short_desc>Building Out-of-Tree Modules on the BBB Target using optional YOCTO package kernel-headers</short_desc>
          <delta_ts>2019-05-28 16:40:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>kernel-configuration</component>
          <version>2.8</version>
          <rep_platform>BeagleBone</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>13360</dup_id>
          
          <bug_file_loc>https://github.com/ZoranStojsavljevic/bbb-yocto/tree/master/Issues</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.8</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zoran Stojsavljevic">zoran.stojsavljevic</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</cc>
    
    <cc>zoran.stojsavljevic</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83954</commentid>
    <comment_count>0</comment_count>
    <who name="Zoran Stojsavljevic">zoran.stojsavljevic</who>
    <bug_when>2019-05-26 03:41:37 +0000</bug_when>
    <thetext>The problem summation:

---------- Forwarded message ---------
From: Khem Raj &lt;raj.khem@gmail.com&gt;
Date: Fri, May 24, 2019 at 3:00 AM
Subject: Re: [yocto] Building Out-of-Tree Modules on the BBB Target
To: Zoran Stojsavljevic &lt;zoran.stojsavljevic@gmail.com&gt;, Bruce Ashfield &lt;bruce.ashfield@gmail.com&gt;
Cc: Yocto Project &lt;yocto@yoctoproject.org&gt;

I think this is a fair suggestion. Having prebuilt kernel available that contains the configuration and header files used in the build is all that is required for external modules to build in addition to toolchain, so maybe its worth a try to create such a package and then have kernel-source separated out which can be installed on top if one needs.
_______

The rationale to add kernel-headers package is the image footprint. Still, as empirically measured by me, kernel-headers package will add ~ 7x to 9x reduction in size to image comparing to kernel-devsrc package. Having BBB&apos;s DDR2 of size 512MB, and initramfs for testing purposes, in speaks for itself.

Me (Zoran) opened this one just to track progress of this work by Bruce Ashfield.

Thank you,
Zoran Stojsavljevic</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83955</commentid>
    <comment_count>1</comment_count>
    <who name="Zoran Stojsavljevic">zoran.stojsavljevic</who>
    <bug_when>2019-05-27 13:59:09 +0000</bug_when>
    <thetext>Forgot to propose a name. I propose a name for the new package to be: kernel-devhdrs , which is in-line with name: kernel-devsrc .

Thank you,
Zoran</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83957</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2019-05-27 18:29:08 +0000</bug_when>
    <thetext>There&apos;s no massive size reduction to be had in a different package aside from the existing kernel-devsrc. It currently measures in around 100M.

Just a copy of all .h files in the kernel tree, is over 200M. If you prune out drivers, and some other non-essential headers, you can get down to about !00M again, but that is not something you can build against. You need the same elements that are already in kernel-devsrc.

The details of the work is in: https://bugzilla.yoctoproject.org/show_bug.cgi?id=13360

If you are seeing different measurements for source/header sizes, please do add the details in the bug so we can sort out the different interpretations before I sent things to the list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83963</commentid>
    <comment_count>3</comment_count>
    <who name="Zoran Stojsavljevic">zoran.stojsavljevic</who>
    <bug_when>2019-05-28 04:15:27 +0000</bug_when>
    <thetext>https://bugzilla.yoctoproject.org/show_bug.cgi?id=13360#c3

Zoran</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83967</commentid>
    <comment_count>4</comment_count>
    <who name="Zoran Stojsavljevic">zoran.stojsavljevic</who>
    <bug_when>2019-05-28 16:40:22 +0000</bug_when>
    <thetext>Closing 13361 since it is duplicate of https://bugzilla.yoctoproject.org/show_bug.cgi?id=13360

Zoran

*** This bug has been marked as a duplicate of bug 13360 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>