Bug 9723

Summary: yocto-bsp create fails with 'raw_input' is not defined error
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Humberto Ibarra <humberto.ibarra.lopez>
Component: Scripts and ToolsAssignee: Humberto Ibarra <humberto.ibarra.lopez>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: jose.perez.carranza, leonardo.sandoval.gonzalez, ross.burton
Version: 2.2   
Target Milestone: 2.2 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Humberto Ibarra 2016-06-07 14:59:38 UTC
Get this error when trying to create a new BSP. I was able to reproduce the problem in all the arch I tested.

[humberto@jhibarra-MOBL1 build]$ yocto-bsp create myqemui386 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)
1
Traceback (most recent call last):
  File "/home/humberto/poky_test/scripts/yocto-bsp", line 150, in <module>
    ret = main()
  File "/home/humberto/poky_test/scripts/yocto-bsp", line 145, in main
    invoke_subcommand(args, parser, yocto_bsp_help_usage, subcommands)
  File "/home/humberto/poky_test/scripts/lib/bsp/help.py", line 73, in invoke_subcommand
    subcommands.get(args[0], subcommand_error)[0](args[1:], usage)
  File "/home/humberto/poky_test/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 "/home/humberto/poky_test/scripts/lib/bsp/engine.py", line 1615, in yocto_bsp_create
    yocto_common_create(machine, arch, scripts_path, bsp_output_dir, codedump, properties_file, properties)
  File "/home/humberto/poky_test/scripts/lib/bsp/engine.py", line 1582, in yocto_common_create
    run_program_lines(program_lines, codedump)
  File "/home/humberto/poky_test/scripts/lib/bsp/engine.py", line 1365, in run_program_lines
    exec(buf)
  File "<string>", line 90, in <module>
NameError: name 'raw_input' is not defined
Comment 3 Jose Perez C 2016-06-17 19:44:18 UTC
This is working as expected now 

Validated on:  commit 7b9e1f5ad8a427356f2ec516b1718138a7d3c64e


********************************
New qemu BSP created in meta-myqemui386