Bug 7391

Summary: yocto-bsp-tool: can not create qemu BSP
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Yi Zhao <yi.zhao>
Component: kernelAssignee: Tom Zanussi <tom.zanussi>
Status: RESOLVED FIXED QA Contact: Yi Zhao <yi.zhao>
Severity: normal    
Priority: Medium+ CC: alexandru.c.georgescu, bruce.ashfield, dvhart, ke.zou, ross.burton, tom.zanussi, zhangle.yang
Version: 1.8   
Target Milestone: 1.8 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Yi Zhao 2015-03-04 07:44:12 UTC
Git rev: master/5c1c8af083ca7b57cc339d16ce0513b27c5dac90

Steps:
Create a qemu bsp by following the wiki: https://wiki.yoctoproject.org/wiki/Transcript:_Using_the_Yocto_BSP_tools_to_create_a_qemu_BSP

I got the following errors:
######################
$ yocto-bsp create myqemuarm qemu
Checking basic git connectivity...
Done.

Which qemu architecture would you like to use? [default: i386]
	1) i386    (32-bit)
	2) x86_64  (64-bit)
	3) ARM     (32-bit)
	4) PowerPC (32-bit)
	5) MIPS    (32-bit)
	6) MIPS64  (64-bit)
3
Would you like to use the default (3.17) 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 None...
Traceback (most recent call last):
  File "/buildarea/poky/scripts/yocto-bsp", line 150, in <module>
    ret = main()
  File "/buildarea/poky/scripts/yocto-bsp", line 145, in main
    invoke_subcommand(args, parser, yocto_bsp_help_usage, subcommands)
  File "/buildarea/poky/scripts/lib/bsp/help.py", line 73, in invoke_subcommand
    subcommands.get(args[0], subcommand_error)[0](args[1:], usage)
  File "/buildarea/poky/scripts/yocto-bsp", line 89, in yocto_bsp_create_subcommand
    yocto_bsp_create(machine, karch, scripts_path, bsp_output_dir, options.codedump, options.properties_file)
  File "/buildarea/poky/scripts/lib/bsp/engine.py", line 1617, in yocto_bsp_create
    yocto_common_create(machine, arch, scripts_path, bsp_output_dir, codedump, properties_file, properties)
SyntaxError: function specified for 'gen' property returned nothing : input type:"choicelist" name:"new_kbranch" gen:"bsp.kernel.all_branches" branches_base:"standard" prio:"20" msg:"Please choose a machine branch to base your new BSP branch on:" default:"standard/base"
#####################

I also listed all kernels and tried each of them. here are the results:
######################
	1) linux-yocto-tiny_3.10  [fail]
	2) linux-yocto-tiny_3.4   [fail]
	3) linux-yocto_3.14       [success] 
	4) linux-yocto-tiny_3.17  [fail]
	5) linux-yocto-rt_3.14    [success]
	6) linux-yocto_3.10       [fail]
	7) linux-yocto-dev        [success]
	8) linux-yocto_3.17       [fail]
	9) linux-yocto-rt_3.10    [fail]
########################
Comment 1 Tom Zanussi 2015-03-04 13:24:07 UTC
This is just due to the per-release kernel upgrade, which yocto-bsp updating by necessity lags.  This happens every release and we don't normally file bugs for recurring per-release work like this.

But, I'll accept it since it's here and I've already been working on it.
Comment 2 Ross Burton 2015-03-24 13:07:35 UTC
Fixed in poky 1490e016e962b6e776042ae86710134cc6db917a