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>
(cherry picked from commit f4ce8b5)
  • Loading branch information
marc-hb committed Feb 12, 2024
1 parent d8d05d0 commit c33329d
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 @@ -309,12 +309,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 c33329d

Please sign in to comment.