yocto-bsp: generate default properties even if json specified

Users seem to want to specify incomplete property sets when using json
input.  Allow this by generating default properties before the
user-specified properties are applied; the user will then get the
defaults for any unspecified values, and avoid cryptic backtraces.

(From meta-yocto rev: 3f0361f77cf64844da93ba4a76c42cd5befff5ad)

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Tom Zanussi 2012-08-07 16:11:14 -05:00 committed by Richard Purdie
parent e352d263f3
commit 738f77bd06
1 changed files with 2 additions and 2 deletions

View File

@ -1235,10 +1235,10 @@ def yocto_bsp_create(machine, arch, scripts_path, bsp_output_dir, codedump, prop
gen_program_header_lines(program_lines)
gen_initial_property_vals(input_lines, program_lines)
if properties:
gen_supplied_property_vals(properties, program_lines)
else:
gen_initial_property_vals(input_lines, program_lines)
gen_program_machine_lines(machine, program_lines)