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>
This commit is contained in:
Marc Herbert 2024-01-13 01:25:24 +00:00 committed by Kai Vehmanen
parent 65e4c1f8b5
commit d324af52bd
1 changed files with 6 additions and 2 deletions

View File

@ -270,7 +270,11 @@ Otherwise, all firmware files are installed in the same staging directory by def
This should be used with programmatic script invocations (eg. Continuous Integration). This should be used with programmatic script invocations (eg. Continuous Integration).
""") """)
parser.add_argument("--deployable-build", default=False, action="store_true", deploy_args = parser.add_mutually_exclusive_group()
# argparse.BooleanOptionalAction requires Python 3.9
parser.set_defaults(deployable_build=False)
deploy_args.add_argument("--no-deployable-build", dest='deployable_build', action='store_false')
deploy_args.add_argument("--deployable-build", dest='deployable_build', action='store_true',
help="""Create a directory structure for the firmware files which can be deployed on target as it is. help="""Create a directory structure for the firmware files which can be deployed on target as it is.
This option will cause the --fw-naming and --use-platform-subdir options to be ignored! This option will cause the --fw-naming and --use-platform-subdir options to be ignored!
The generic, default directory and file structure is IPC version dependent: The generic, default directory and file structure is IPC version dependent:
@ -312,7 +316,7 @@ IPC4
if args.deployable_build: if args.deployable_build:
if args.fw_naming == 'AVS' or args.use_platform_subdir: if args.fw_naming == 'AVS' or args.use_platform_subdir:
sys.exit("Options '--fw-naming=AVS' and '--use-platform-subdir'" sys.exit("Options '--fw-naming=AVS' and '--use-platform-subdir'"
" are incompatible with --deployable-build.") " are incompatible with deployable builds, try --no-deployable-build?")
if args.fw_naming == 'AVS': if args.fw_naming == 'AVS':
if not args.use_platform_subdir: if not args.use_platform_subdir: