Fix overwriting of target via command line with static configs

ConfigStatic does not respect the --target overwrite so far. Fix this
by pulling the default definition into ConfigPython (ConfigStatic
already does that via the Config base class) and set the target provided
via the command line in the static config after parsing all files.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka
2017-07-08 19:20:21 +02:00
committed by Daniel Wagner
parent 7f1ccba5ea
commit 49cb9b7a7b
2 changed files with 6 additions and 4 deletions

View File

@@ -55,8 +55,7 @@ class Build:
bld_psr.add_argument('config',
help='Config file')
bld_psr.add_argument('--target',
help='Select target to build',
default='core-image-minimal')
help='Select target to build')
bld_psr.add_argument('--task',
help='Select which task should be executed',
default='build')