Skip to content

Commit

Permalink
installer: TOOLCHAIN default value depends on XTENSA_TOOLS_ROOT
Browse files Browse the repository at this point in the history
XTENSA_TOOLS_ROOT is required by xtensa-build-all.sh anyway, so don't
force the user to say twice that they want xcc.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information
marc-hb authored and lgirdwood committed Mar 5, 2021
1 parent 6468490 commit 907f869
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion installer/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ target_of_cml := cnl
# Same code, different Intel key
target_of_ehl := tgl

TOOLCHAIN ?= gcc
ifeq (,${TOOLCHAIN})
ifeq (,${XTENSA_TOOLS_ROOT})
TOOLCHAIN := gcc
else
TOOLCHAIN := xcc
endif
endif

TREE_OPTS ?= --sort=size --dirsfirst
INSTALL_OPTS ?= -D -p -m 0664
Expand Down

0 comments on commit 907f869

Please sign in to comment.