<?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>5749</bug_id>
          
          <creation_ts>2014-01-22 07:10:19 +0000</creation_ts>
          <short_desc>bitbake is unable to parse MACHINE_EXTRA_RRECOMMENDS variable</short_desc>
          <delta_ts>2015-04-09 15:29:40 +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>linux-yocto</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="shammi">shammi.k</reporter>
          <assigned_to name="shammi">shammi.k</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>brendan.le.foll</cc>
    
    <cc>dvhart</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>shammi.k</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>39989</commentid>
    <comment_count>0</comment_count>
    <who name="shammi">shammi.k</who>
    <bug_when>2014-01-22 07:10:19 +0000</bug_when>
    <thetext>bitbake is unable to parse MACHINE_EXTRA_RRECOMMENDS variable from machine file.
i am trying to insert out of tree kernel module but bitbake is unable to add
MACHINE_EXTRA_RRECOMMENDS +=&quot;kernel-module-mcc&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40013</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-01-23 15:45:42 +0000</bug_when>
    <thetext>shammi, can you provide some context? A few lines from the file defining this and the exact error reported? This sort of error is frequently a usage error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40014</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-01-23 15:46:06 +0000</bug_when>
    <thetext>.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40025</commentid>
    <comment_count>3</comment_count>
    <who name="shammi">shammi.k</who>
    <bug_when>2014-01-24 03:17:57 +0000</bug_when>
    <thetext> I am using MACHINE_EXTRA_RRECOMMENDS +=&quot;&quot;kernel-module-mcc&quot; where mcc is my external module.after that i am doing core-image-base.but bitbake is unbale to add this to  my image .When i am manually putting &quot;mcc&quot; module inside 
packagegroup-base.bb bitbake is building my module.

same case with core-image-minimal here i am using MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS +=&quot;mcc&quot; but bitbake is unable to build my module.
when i am manually coping this inside packagegroup-core-boot.bb bitbake is building this.
I am using DPKG package manager.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40086</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-01-29 18:23:15 +0000</bug_when>
    <thetext>Is that exactly what you are using?

MACHINE_EXTRA_RRECOMMENDS +=&quot;&quot;kernel-module-mcc&quot;

If so, the initial &quot;&quot; would indeed cause a parse error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40090</commentid>
    <comment_count>5</comment_count>
    <who name="shammi">shammi.k</who>
    <bug_when>2014-01-30 02:47:34 +0000</bug_when>
    <thetext>sorry i am using MACHINE_EXTRA_RRECOMMENDS +=&quot;kernel-module-mcc&quot; by mistake i typed that.bitbake is unable to parse this.if i am filling the varibale manually
inside packagegroup bitbake is parsing and building the module.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40458</commentid>
    <comment_count>6</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-02-19 16:40:00 +0000</bug_when>
    <thetext>We&apos;ll need more context to help out here. The exact error, the complete recipe, etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40472</commentid>
    <comment_count>7</comment_count>
    <who name="shammi">shammi.k</who>
    <bug_when>2014-02-20 02:43:47 +0000</bug_when>
    <thetext>I am not getting any error. thing is that when i am writing MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS +=&quot;mcc&quot; in machine file and building
core-image-minimal .module should be compiled and should appear in /lib/modules.
but bitbake is not parsing this varibale.
But when manually i am filing this variable inside packagegroup-core-boot.bb.
bitbake is compling it and coying it to /lib/modules.

Why its happening Acc to your manual it should work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42647</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-04-14 12:17:08 +0000</bug_when>
    <thetext>I suspect the problem here is you both need to trigger the external kernel module to build and include it in the image. What is the name of your external module .bb file?

Does something like:

MACHINE_EXTRA_RRECOMMENDS +=&quot;mcc kernel-module-mcc&quot; 

work?

The reason I ask is that &quot;kernel-module-*&quot; is provided by the standard kernel and you somehow need to trigger the build of the external module. If its been built and its included in RRECOMMENDS, it will go into the image. If the recipe was called mcc_xxx.bb, the mcc in the above should help ensure it gets built.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42687</commentid>
    <comment_count>9</comment_count>
    <who name="shammi">shammi.k</who>
    <bug_when>2014-04-16 04:45:52 +0000</bug_when>
    <thetext>I tried everything but my module is not getting build.please give some solution about this.
 in your manual nothing mentioned about trigerring the module.my module is external module.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43273</commentid>
    <comment_count>10</comment_count>
    <who name="shammi">shammi.k</who>
    <bug_when>2014-05-13 03:12:11 +0000</bug_when>
    <thetext>My module is not getting build. As someone told in previous reply that &quot;Need to trigger the external kernel module to build and include it in the image&quot;.

         Can you tell me how to trigger the external kernel module.

My module is external not related to kernel.I am working on freescale vybrid.
having two cores cortex a5+corttex m4. My module is for cortex m4 &quot;mcc&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43538</commentid>
    <comment_count>11</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-05-23 03:51:15 +0000</bug_when>
    <thetext>Shammi, Richard suggested you try adding both &quot;mcc&quot; and &quot;kernel-module-mcc&quot;. Did you try that? The kernel-module- is a special prefix - it&apos;s possible the documentation is missing something about the naming convention.

If you are concerned about it not getting parsed, you can always verify what bitbake is seeing with the -e argument. For example:

$ bitbake core-image-minimal -e | grep MACHINE_EXTRA_RRECOMMENDS=

You can try RDEPENDS instead of RRECOMMENDS to trigger a failure if it can&apos;t meet the requirements.

Try looking in the build output to see if the module is being built, but not installed. build/tmp/deploy/&lt;packageformat&gt;/&lt;machine&gt;/kernel-module-*

We haven&apos;t seen your mcc recipe, so it&apos;s very possible something is wrong there as well.

When you provide comments here, it is very important that you provide as much information about your environment as possible. We have been probing, but you continue to provide very minimal bits of information. We don&apos;t know anything about your configuration and environment other than what you tell us.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43540</commentid>
    <comment_count>12</comment_count>
    <who name="shammi">shammi.k</who>
    <bug_when>2014-05-23 03:57:35 +0000</bug_when>
    <thetext>I have tried everything what you  are telling.Even module is not getting being downloaded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43541</commentid>
    <comment_count>13</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-05-23 04:53:06 +0000</bug_when>
    <thetext>I&apos;m trying to reproduce using hello-mod from meta-skeleton. I might be seeing similar issues. I&apos;ll report back after the builds complete and I can confirm the results.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43567</commentid>
    <comment_count>14</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-05-23 17:50:00 +0000</bug_when>
    <thetext>hello-mod in meta-skeleton is the default example to validate this mechanism. To use it, add meta-skeleton to your BBLAYERS.

That can be build manually by building &quot;hello-mod&quot;. To include the module package in an image, you use &quot;kernel-module-hello&quot;. As Richard suggested earlier, adding &quot;kernel-module-hello&quot; along to one of the MACHINE_* variables doesn&apos;t work, if you add it as an RRECOMMENDS, the build will complete, if you add it to an image-relevant RDEPENDS, the build will fail on a missing dependency. This is due to hello-mod not PROVIDING kernel-module-hello (I&apos;m guessing there). That seems like something we should fix, because we don&apos;t expect users to have to use &quot;hello-mod kernel-module-hello&quot; to get it to build. I suspect this was overlooked in the documentation as most use cases involve adding a module that was built by the provider for virtual/kernel which is always built (it doesn&apos;t need to be explicitly added).

Please verify that you can build with hello-mod by adding:

MACHINE_ESSENTIAL_EXTRA_RDEPENDS += &quot;hello-mod kernel-module-hello&quot;


Finally, pay close attention to the difference between MACHINE_ESSENTIAL_EXTRA* and MACHINE_EXTRA*. ESSENTIAL is applied to core-image-minimal, EXTRA is not. See the reference manual for a detailed treatment of these variables. Then, consider RRECOMMENDS and RDEPENDS. The former means include the package if you have it (you didn&apos;t have it since you didn&apos;t build it), but don&apos;t complain if you don&apos;t (because it might be built into the kernel and we don&apos;t want to break in that case). The latter means this package must be installed, or it is a hard failure.

So with that context, I suggest using MACHINE_ESSENTIAL_EXTRA_RDEPENDS for now as it will throw meaningful errors to help us resolve the issue. Set it to include the name of the recipe itself (mcc I think you said) and the name of the package that recipe generates (probably kernel-module-mcc). If you aren&apos;t sure, build it manually and look for the package it creates in deploy/&lt;packagetype&gt;/&lt;machine&gt;/*mcc*. Then set the variable:

MACHINE_ESSENTIAL_EXTRA_RDEPENDS+=&quot;mcc kernel-module-mcc&quot;

Verify it is correct with:

bitbake &lt;target&gt; -e | grep MACHINE_ESSENTIAL_EXTRA_RDEPENDS=
(please send us the output)

Then, clean mcc and rebuild:
bitbake -c cleansstate mcc
bitbake &lt;target&gt;

And let us know what you find.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43632</commentid>
    <comment_count>15</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-05-29 00:11:00 +0000</bug_when>
    <thetext>shammi, does comment 14 address the issue for you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43667</commentid>
    <comment_count>16</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-05-29 15:28:39 +0000</bug_when>
    <thetext>I might have missed something, but it seems like the problem might be that kernel itself has PACKAGES_DYNAMIC that satisfies kernel-module-.*; thus as far as BitBake is concerned, kernel-module-mcc might be being provided by the kernel rather than the external module recipe. If that&apos;s what&apos;s happening I&apos;m not entirely sure where the problem needs to be solved, but it might explain what&apos;s going on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44067</commentid>
    <comment_count>17</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2014-06-18 17:36:36 +0000</bug_when>
    <thetext>Assigned to the person who we are requesting INFO from per RP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44547</commentid>
    <comment_count>18</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-07-17 15:25:41 +0000</bug_when>
    <thetext>So it does seem like the situation I&apos;ve described above could happen; should we change how our external kernel module support works or how it is documented so that this is no longer an issue? Darren could you please investigate and comment?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47030</commentid>
    <comment_count>19</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-11-14 18:43:51 +0000</bug_when>
    <thetext>Shammi, does Comment 14 address your concern?

Moving to 1.8 for final follow-up by me of Paul&apos;s comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48660</commentid>
    <comment_count>20</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2015-02-09 23:25:05 +0000</bug_when>
    <thetext>Hi Brendan

I&apos;m re-assign this bug to you to follow up...

Thanks,
Jessica</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48661</commentid>
    <comment_count>21</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2015-02-09 23:26:27 +0000</bug_when>
    <thetext>Hi Shammi,

Any more info that you can provide us?

Thanks,
Jessica</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50188</commentid>
    <comment_count>22</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-04-09 15:29:40 +0000</bug_when>
    <thetext>This bug has remained open in NEEDINFO state with no response for quite some time so I am marking it as resolved. At minimum I do think there is an underlying documentation issue to be solved though, so I have entered bug 7591 to cover that.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>