From: Tom Zanussi <tom.zanu...@intel.com> 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.
Signed-off-by: Tom Zanussi <tom.zanu...@intel.com> --- scripts/lib/bsp/engine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py index af90e91..9d16b19 100644 --- a/scripts/lib/bsp/engine.py +++ b/scripts/lib/bsp/engine.py @@ -1245,10 +1245,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) -- 1.7.9.5 _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto