Skip to content

Commit d324af5

Browse files
marc-hbkv2019i
authored andcommitted
xtensa-build-zephyr.py: add new --no-deployable-build
Everyone should use deployable builds by default. Don't switch the default behavior yet but add a --no-deployable-build option in case anyone is stuck. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
1 parent 65e4c1f commit d324af5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/xtensa-build-zephyr.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,11 @@ def parse_args():
270270
This should be used with programmatic script invocations (eg. Continuous Integration).
271271
""")
272272

273-
parser.add_argument("--deployable-build", default=False, action="store_true",
273+
deploy_args = parser.add_mutually_exclusive_group()
274+
# argparse.BooleanOptionalAction requires Python 3.9
275+
parser.set_defaults(deployable_build=False)
276+
deploy_args.add_argument("--no-deployable-build", dest='deployable_build', action='store_false')
277+
deploy_args.add_argument("--deployable-build", dest='deployable_build', action='store_true',
274278
help="""Create a directory structure for the firmware files which can be deployed on target as it is.
275279
This option will cause the --fw-naming and --use-platform-subdir options to be ignored!
276280
The generic, default directory and file structure is IPC version dependent:
@@ -312,7 +316,7 @@ def parse_args():
312316
if args.deployable_build:
313317
if args.fw_naming == 'AVS' or args.use_platform_subdir:
314318
sys.exit("Options '--fw-naming=AVS' and '--use-platform-subdir'"
315-
" are incompatible with --deployable-build.")
319+
" are incompatible with deployable builds, try --no-deployable-build?")
316320

317321
if args.fw_naming == 'AVS':
318322
if not args.use_platform_subdir:

0 commit comments

Comments
 (0)