<?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>9867</bug_id>
          
          <creation_ts>2016-07-01 20:21:40 +0000</creation_ts>
          <short_desc>yocto-bsp: listing values for some properties throws exception</short_desc>
          <delta_ts>2017-06-05 16:04:05 +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.2</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.4 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Humberto Ibarra">humberto.ibarra.lopez</reporter>
          <assigned_to name="Daniela Plascencia">daniela.plascencia</assigned_to>
          <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</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>63594</commentid>
    <comment_count>0</comment_count>
    <who name="Humberto Ibarra">humberto.ibarra.lopez</who>
    <bug_when>2016-07-01 20:21:40 +0000</bug_when>
    <thetext>The command &apos;yocto-bsp list &lt;karch&gt; property &lt;property_name&gt;&apos; is supposed to return the available values for the given property and kernel arch, but it is failing with some property names.

The command works for some cases but on other it shows as this:

[humberto@jhibarra-MOBL1 build]$ yocto-bsp list arm property existing_kbranch
Getting branches from remote repo None...
Traceback (most recent call last):
  File &quot;/home/humberto/poky-test/scripts/yocto-bsp&quot;, line 150, in &lt;module&gt;
    ret = main()
  File &quot;/home/humberto/poky-test/scripts/yocto-bsp&quot;, line 145, in main
    invoke_subcommand(args, parser, yocto_bsp_help_usage, subcommands)
  File &quot;/home/humberto/poky-test/scripts/lib/bsp/help.py&quot;, line 73, in invoke_subcommand
    subcommands.get(args[0], subcommand_error)[0](args[1:], usage)
  File &quot;/home/humberto/poky-test/scripts/yocto-bsp&quot;, line 104, in yocto_bsp_list_subcommand
    if not yocto_bsp_list(args, scripts_path, options.properties_file):
  File &quot;/home/humberto/poky-test/scripts/lib/bsp/engine.py&quot;, line 1860, in yocto_bsp_list
    yocto_layer_list_property_values(arch, args[2], scripts_path, properties_file)
  File &quot;/home/humberto/poky-test/scripts/lib/bsp/engine.py&quot;, line 1807, in yocto_layer_list_property_values
    values_list = input_line.gen_choices_list(context, False)
  File &quot;/home/humberto/poky-test/scripts/lib/bsp/engine.py&quot;, line 428, in gen_choices_list
    choices = self.exec_listgen_fn(context)
  File &quot;/home/humberto/poky-test/scripts/lib/bsp/engine.py&quot;, line 380, in exec_listgen_fn
    self.lineno, self.line)
  File &quot;/home/humberto/poky-test/scripts/lib/bsp/engine.py&quot;, line 71, in parse_error
    raise SyntaxError(&quot;%s: %s&quot; % (msg, line))
  File &quot;&lt;string&gt;&quot;, line None
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/tiny&quot; prio:&quot;20&quot; msg:&quot;Please choose a machine branch to base this BSP on:&quot; default:&quot;standard/tiny/base&quot;
[humberto@jhibarra-MOBL1 build]$ 


Not sure which properties are causing this failure, only have experienced this with new_kbranch and existing_kbranch. Probably this is just as check that needs to return an error message instead of an exception.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63934</commentid>
    <comment_count>1</comment_count>
    <who name="Humberto Ibarra">humberto.ibarra.lopez</who>
    <bug_when>2016-07-13 17:02:45 +0000</bug_when>
    <thetext>The conflict here is that &apos;existing_kbranch&apos; property fails because it is encountered more than once and last value returned didn&apos;t have a branches base. It is odd to query it in the first place since it depends on knowing the specific kernel_choice being used and we don&apos;t have one here.

Will continue to check this one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65558</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-08-26 14:47:08 +0000</bug_when>
    <thetext>Plan to tackle this on M4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73647</commentid>
    <comment_count>3</comment_count>
    <who name="Daniela Plascencia">daniela.plascencia</who>
    <bug_when>2017-06-02 15:17:06 +0000</bug_when>
    <thetext>Some bbappend files inside scripts/lib/bsp pointed to kernel 4.8, a version that&apos;s no longer supported (see commits 6751dce4cf and 1632f6623c), affecting the execution of some scripts.
Regarding this bug, &apos;yocto-bsp list &lt;karch&gt; property &lt;property_name&gt;&apos; expected the SRC_URI of the 4.8 kernel recipe, but failed as the file doesn&apos;t exist within poky anymore.
A patch removing such files has been sent to the mailing list for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73678</commentid>
    <comment_count>4</comment_count>
    <who name="Daniela Plascencia">daniela.plascencia</who>
    <bug_when>2017-06-05 16:04:05 +0000</bug_when>
    <thetext>Merged at: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=0e9de873f80927e1dc556f283dbfe51435de159d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>