xtensa-build-zephyr.py: fail on --deployable-build + older options

From experience, no one scrolls up and looks at warnings that are not in
the current screen.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2024-01-13 00:56:26 +00:00 committed by Kai Vehmanen
parent e24ccd2c19
commit f4ce8b537b
1 changed files with 3 additions and 6 deletions

View File

@ -310,12 +310,9 @@ IPC4
sys.exit(0) sys.exit(0)
if args.deployable_build: if args.deployable_build:
if args.fw_naming == 'AVS': if args.fw_naming == 'AVS' or args.use_platform_subdir:
args.fw_naming = 'SOF' sys.exit("Options '--fw-naming=AVS' and '--use-platform-subdir'"
print("The option '--fw-naming AVS' is ignored for deployable builds.") " are incompatible with --deployable-build.")
if args.use_platform_subdir:
args.use_platform_subdir = False
print("The option '--use-platform-subdir' is ignored for deployable builds.")
if args.fw_naming == 'AVS': if args.fw_naming == 'AVS':
if not args.use_platform_subdir: if not args.use_platform_subdir: