Bug 3595

Summary: error when selecting kernel version 3.0 in yocto bsp tool
Product: [Build System, Metadata & Runtime] BSPs Reporter: Alexandru Georgescu <alexandru.c.georgescu>
Component: bsps-toolsAssignee: Tom Zanussi <tom.zanussi>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dvhart, scott.a.garman, sgw
Version: 1.2.1   
Target Milestone: 1.2.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Alexandru Georgescu 2012-12-13 17:17:35 UTC
ENVIRONMENT USED:
Fedora 17 64bit
Commit: git://git.yoctoproject.org/poky-contrib sgarman/denzil-next-pull4
d166ea7bb13eaf25b54e14f0bf9c5747ea950617

STEPS TO REPRODUCE

1. git clone git://git.yoctoproject.org/poky-contrib
2. git checkout sgarman/denzil-next-pull4
3. source oe-init-build-env
4. yocto-bsp list qemu property  \"linux-yocto_3.0\".new_kbranch


EXPECTED RESULT
4. THe kbranch is displayed

ACTUAL RESULT
[alex@yocto-asus poky-contrib]$ yocto-bsp list qemu property  \"linux-yocto_3.0\".new_kbranch
Getting branches from remote repo git://git.yoctoproject.org/linux-yocto-3.0...
Traceback (most recent call last):
  File "/run/media/alex/ssd-vol/poky-contrib/scripts/yocto-bsp", line 137, in <module>
    ret = main()
  File "/run/media/alex/ssd-vol/poky-contrib/scripts/yocto-bsp", line 132, in main
    invoke_subcommand(args, parser, yocto_bsp_help_usage, subcommands)
  File "/run/media/alex/ssd-vol/poky-contrib/scripts/lib/bsp/help.py", line 73, in invoke_subcommand
    subcommands.get(args[0], subcommand_error)[0](args[1:], usage)
  File "/run/media/alex/ssd-vol/poky-contrib/scripts/yocto-bsp", line 91, in yocto_bsp_list_subcommand
    if not yocto_bsp_list(args, scripts_path, options.properties_file):
  File "/run/media/alex/ssd-vol/poky-contrib/scripts/lib/bsp/engine.py", line 1501, in yocto_bsp_list
    yocto_bsp_list_property_values(arch, args[2], scripts_path, properties_file)
SyntaxError: function specified for 'gen' property returned nothing : input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"yocto/standard" prio:"20" msg:"Please choose a machine branch to base your new BSP branch on:" default:"yocto/standard/base"
Comment 1 Tom Zanussi 2012-12-13 21:30:05 UTC
This is the same problem fixed in danny/master for bug 3233.

I've just verified that the same commit fixes the problem in denzil and have submitted that commit to poky/denzil.
Comment 2 Scott Garman 2012-12-22 20:11:51 UTC
I have pulled the fix for this into my sgarman/denzil-next branch. Planning on sending out the pull request for it by end of December.
Comment 4 Alexandru Georgescu 2013-06-27 12:58:42 UTC
verified.