Skip to content

Commit

Permalink
xtensa-build-zephyr.py: fail on --deployable-build + older options
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
marc-hb authored and kv2019i committed Jan 15, 2024
1 parent e24ccd2 commit f4ce8b5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions scripts/xtensa-build-zephyr.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,9 @@ def parse_args():
sys.exit(0)

if args.deployable_build:
if args.fw_naming == 'AVS':
args.fw_naming = 'SOF'
print("The option '--fw-naming AVS' is ignored for deployable builds.")
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' or args.use_platform_subdir:
sys.exit("Options '--fw-naming=AVS' and '--use-platform-subdir'"
" are incompatible with --deployable-build.")

if args.fw_naming == 'AVS':
if not args.use_platform_subdir:
Expand Down

0 comments on commit f4ce8b5

Please sign in to comment.