<?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>12808</bug_id>
          
          <creation_ts>2018-06-21 16:52:33 +0000</creation_ts>
          <short_desc>bitbake-layers create-layer</short_desc>
          <delta_ts>2018-10-25 14:16:00 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</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 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Berger">pokylinux</reporter>
          <assigned_to name="Joshua Watt">JPEWhacker</assigned_to>
          <cc>JPEWhacker</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>trevor.woerner</cc>
    
    <cc>twoerner</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>80892</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2018-06-21 16:52:33 +0000</bug_when>
    <thetext>bitbake-layers create-layer --help
NOTE: Starting bitbake server...
usage: bitbake-layers create-layer [-h] [--priority PRIORITY]
                                   [--example-recipe-name EXAMPLERECIPE]
                                   [--example-recipe-version VERSION]
                                   layerdir

Create a basic layer

positional arguments:
  layerdir              Layer directory to create

optional arguments:
  -h, --help            show this help message and exit
  --priority PRIORITY, -p PRIORITY
                        Layer directory to create
  --example-recipe-name EXAMPLERECIPE, -e EXAMPLERECIPE
                        Filename of the example recipe
  --example-recipe-version VERSION, -v VERSION
                        Version number for the example recipe

----------------------------

+ bitbake-layers create-layer --priority 6 --example-recipe-name example --example-recipe-version 0.1 ../meta-my-yocto-layer
NOTE: Starting bitbake server...
Add your new layer with &apos;bitbake-layers add-layer ../meta-my-yocto-layer&apos;
+ tree ../meta-my-yocto-layer
../meta-my-yocto-layer
├── conf
│   └── layer.conf
├── COPYING.MIT
├── README
└── recipes-example
    └── example
        └── example_0.1.bb

3 directories, 4 files
+ cat ../meta-my-yocto-layer/conf/layer.conf
# We have a conf and classes directory, add to BBPATH
BBPATH .= &quot;:${LAYERDIR}&quot;

# We have recipes-* directories, add to BBFILES
BBFILES += &quot;${LAYERDIR}/recipes-*/*/*.bb \
            ${LAYERDIR}/recipes-*/*/*.bbappend&quot;

BBFILE_COLLECTIONS += &quot;../meta-my-yocto-layer&quot;
BBFILE_PATTERN_../meta-my-yocto-layer = &quot;^${LAYERDIR}/&quot;
BBFILE_PRIORITY_../meta-my-yocto-layer = &quot;6&quot;

LAYERDEPENDS_../meta-my-yocto-layer = &quot;core&quot;
LAYERSERIES_COMPAT_../meta-my-yocto-layer = &quot;sumo&quot;

----------------------

is this valid?

BBFILE_PATTERN_../meta-my-yocto-layer</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80975</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2018-06-28 17:56:34 +0000</bug_when>
    <thetext>Fix: http://lists.openembedded.org/pipermail/openembedded-core/2018-June/152413.html

Test Cases: http://lists.openembedded.org/pipermail/openembedded-core/2018-June/152414.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80984</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2018-06-29 18:26:03 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=44b1fe43b0e97b1d01b95cd6ce40fbad78e65ab3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81953</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2018-10-25 12:16:13 +0000</bug_when>
    <thetext>At the ELCE devday it looks like this fix did not make it into the latest and greatest sumo branch.

This is what we used at ELCE devday:

commit d240b885f26e9b05c8db0364ab2ace9796709aad
Author: Ola x Nilsson &lt;ola.x.nilsson@axis.com&gt;
Date:   Thu Oct 4 12:43:28 2018 +0200</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81954</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2018-10-25 13:28:02 +0000</bug_when>
    <thetext>Robert,

Sorry about that. The target milestone was 2.6, so I don&apos;t think it was realized this needed to be backported. You could probably request a backport since it is on master now (although it&apos;s probably too late for the ELCE devday).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81955</commentid>
    <comment_count>5</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2018-10-25 14:09:11 +0000</bug_when>
    <thetext>@Joshua Watt - wow this was a quick reply.

OK understood.

I am working with your patch over Sumo and it works just fine for me.
 
So, as my time permits, I might just create/push a backport (I guess you could guide me a bit, if necessary).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81956</commentid>
    <comment_count>6</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2018-10-25 14:16:00 +0000</bug_when>
    <thetext>Robert,

Sure. The easiest thing to do is find the patch on the mailing list, then reply to it and ask it to be backported to sumo (CC&apos;ing the stable branch maintainer, Armin Kuster &lt;akuster808@gmail.com&gt;).

Alternatively, I *think* you could also send a new patch to the mailing list (also CC&apos;ing Armin) with a subject like:

 [OE-core][sumo][PATCH] bitbake-bblayers/create: Fix layer name generation</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>