<?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>5106</bug_id>
          
          <creation_ts>2013-09-04 01:16:22 +0000</creation_ts>
          <short_desc>yocto-bsp: fails to create bsp with ${TOPDIR} in BBLAYERS</short_desc>
          <delta_ts>2013-10-09 14:13:03 +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>BSPs</product>
          <component>bsps-tools</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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>1.5 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Liu">net147</reporter>
          <assigned_to name="Tom Zanussi">tom.zanussi</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>dvhart</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36220</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2013-09-04 01:16:22 +0000</bug_when>
    <thetext>$ yocto-bsp create test i386
Checking basic git connectivity...
Done.

Would you like to use the default (3.8) kernel? (y/n) [default: y] y
Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n] [default: y] n
Getting branches from remote repo None...
Traceback (most recent call last):
  File &quot;/home/build/git/poky/scripts/yocto-bsp&quot;, line 150, in &lt;module&gt;
    ret = main()
  File &quot;/home/build/git/poky/scripts/yocto-bsp&quot;, line 145, in main
    invoke_subcommand(args, parser, yocto_bsp_help_usage, subcommands)
  File &quot;/home/build/git/poky/scripts/lib/bsp/help.py&quot;, line 73, in invoke_subcommand
    subcommands.get(args[0], subcommand_error)[0](args[1:], usage)
  File &quot;/home/build/git/poky/scripts/yocto-bsp&quot;, line 89, in yocto_bsp_create_subcommand
    yocto_bsp_create(machine, karch, scripts_path, bsp_output_dir, options.codedump, options.properties_file)
  File &quot;/home/build/git/poky/scripts/lib/bsp/engine.py&quot;, line 1450, in yocto_bsp_create
    yocto_common_create(machine, arch, scripts_path, bsp_output_dir, codedump, properties_file, properties)
SyntaxError: function specified for &apos;gen&apos; property returned nothing : input type:&quot;choicelist&quot; name:&quot;existing_kbranch&quot; gen:&quot;bsp.kernel.all_branches&quot; branches_base:&quot;standard:standard/common-pc&quot; prio:&quot;20&quot; msg:&quot;Please choose a machine branch to base this BSP on:&quot; default:&quot;standard/base&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36279</commentid>
    <comment_count>1</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-09-04 17:36:36 +0000</bug_when>
    <thetext>Using poky/master commit f41b7a7d4d0463a0dfafe6621d01680b81798019

[trz@empanada build]$ yocto-bsp create test i386
Checking basic git connectivity...
Done.

Would you like to use the default (3.8) kernel? (y/n) [default: y] 
Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n] [default: y] 
Getting branches from remote repo git://git.yoctoproject.org/linux-yocto-3.8.git...
Please choose a machine branch to base this BSP on: [default: standard/base]
	1) standard/arm-versatile-926ejs
	2) standard/base
	3) standard/beagleboard
	4) standard/ck
	5) standard/common-pc/atom-pc
	6) standard/common-pc/base
	7) standard/crownbay
	8) standard/edf
	9) standard/emenlow
	10) standard/fri2
	11) standard/fsl-mpc8315e-rdb
	12) standard/minnow
	13) standard/mti-malta32
	14) standard/mti-malta64
	15) standard/qemuppc
	16) standard/routerstationpro
	17) standard/sys940x</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36304</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2013-09-05 01:02:10 +0000</bug_when>
    <thetext>It seems yocto-bsp doesn&apos;t like my use of ${TOPDIR} in bblayers.conf:
$ . oe-init-build-env
$ sed -i &quot;s#$(dirname $PWD)#\${TOPDIR}/..#g&quot; conf/bblayers.conf
$ cd ..
$ yocto-bsp create test i386</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36305</commentid>
    <comment_count>3</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-09-05 01:23:02 +0000</bug_when>
    <thetext>Can you please then change the bug title and change the importance - though it&apos;s something that should be fixed, I don&apos;t think it&apos;s Medium+.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36307</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2013-09-05 01:40:19 +0000</bug_when>
    <thetext>I don&apos;t have permission to change the Medium+ importance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36309</commentid>
    <comment_count>5</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-09-05 02:01:42 +0000</bug_when>
    <thetext>Either do I, adding Darren.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36310</commentid>
    <comment_count>6</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-09-05 03:37:10 +0000</bug_when>
    <thetext>Changed to Medium, Tom, please move to Accepted per comment 3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37434</commentid>
    <comment_count>7</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-10-01 15:38:34 +0000</bug_when>
    <thetext>Works fine here with TOPDIR:

# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf                          
# changes incompatibly                                                                        
LCONF_VERSION = &quot;6&quot;

BBPATH = &quot;${TOPDIR}&quot;
BBFILES ?= &quot;&quot;

BBLAYERS ?= &quot; \                                                                               
  /home/trz/yocto/yocto-bsp-test/meta \                                                       
  /home/trz/yocto/yocto-bsp-test/meta-yocto \                                                 
  /home/trz/yocto/yocto-bsp-test/meta-yocto-bsp \                                             
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37447</commentid>
    <comment_count>8</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2013-10-01 22:49:22 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; Works fine here with TOPDIR:
&gt; 
&gt; # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf        
&gt; 
&gt; # changes incompatibly                                                      
&gt; 
&gt; LCONF_VERSION = &quot;6&quot;
&gt; 
&gt; BBPATH = &quot;${TOPDIR}&quot;
&gt; BBFILES ?= &quot;&quot;
&gt; 
&gt; BBLAYERS ?= &quot; \                                                             
&gt; 
&gt;   /home/trz/yocto/yocto-bsp-test/meta \                                     
&gt; 
&gt;   /home/trz/yocto/yocto-bsp-test/meta-yocto \                               
&gt; 
&gt;   /home/trz/yocto/yocto-bsp-test/meta-yocto-bsp \                           
&gt; 
&gt; ...

But you are not using ${TOPDIR} variable in BBLAYERS as indicated in the bug description.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37657</commentid>
    <comment_count>9</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-10-04 22:17:50 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=104166c804e9068d85ccdaa887a33df72c8aeb85</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37782</commentid>
    <comment_count>10</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-10-09 14:13:03 +0000</bug_when>
    <thetext>verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>