<?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>12858</bug_id>
          
          <creation_ts>2018-07-18 22:53:44 +0000</creation_ts>
          <short_desc>devtool build fails on kernel if including any local scc file</short_desc>
          <delta_ts>2018-08-16 18:31:59 +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>Scripts and Tools</component>
          <version>2.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.6 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jaewon Lee">jaewon</reporter>
          <assigned_to name="Jaewon Lee">jaewon</assigned_to>
          <cc>alejandr</cc>
    
    <cc>ross.burton</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>81137</commentid>
    <comment_count>0</comment_count>
    <who name="Jaewon Lee">jaewon</who>
    <bug_when>2018-07-18 22:53:44 +0000</bug_when>
    <thetext>When an scc file is added to SRC_URI without adding the cfg file as well, devtool build fails.

Taking the example of meta-openamp layer with local kmeta files,
https://github.com/OpenAMP/meta-openamp/blob/master/recipes-kernel/linux/linux-%25.bbappend


Using bitbake, the scc file is pulled from  sources/meta-openamp/recipes-kernel/linux/configs. (This folder is in FILESEXTRAPATHS)
These lines in kernel-yocto.bbclass:
         for s in ${sccs} ${patches}; do
                 sdir=$(dirname $s)
                 includes=&quot;$includes -I${sdir}&quot;

add the directory containing the scc file to includes and this works because the openamp scc and cfg files are both in that directory (...recipes-kernel/linux/configs) so it can find the cfg file 

Using devtool however, the scc file is pulled from oe-local-files. (only files in SRC_URI are copied to oe-local-files/ directory in devtool&apos;s workspace) and this is a problem because the cfg file is not copied (because its not in SRC_URI) along with the scc file.

Seeing as documentation says &quot;It is only necessary to specify the .scc files on the SRC_URI.&quot;
https://www.yoctoproject.org/docs/latest/kernel-dev/kernel-dev.html#recipe-space-metadata
This should be supported by devtool as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81396</commentid>
    <comment_count>1</comment_count>
    <who name="Jaewon Lee">jaewon</who>
    <bug_when>2018-08-16 18:31:59 +0000</bug_when>
    <thetext>Patch merged: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=97684b24b32584cd2dede2ce93b3d834b774d68a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>