zephyr/docker-build.sh: give PATH precedence to a local sparse

Adjust PATH to give precedence to any local sparse. New precedence:

1. zephyr-workspace
2. /opt/sparse/bin
3. Anything else in default PATH

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2022-11-21 20:46:12 +00:00 committed by Liam Girdwood
parent 14b2f89bd4
commit 082cc8fbd1
1 changed files with 4 additions and 2 deletions

View File

@ -16,8 +16,10 @@ unset ZEPHYR_BASE
test -e ./sof/scripts/xtensa-build-zephyr.py test -e ./sof/scripts/xtensa-build-zephyr.py
# See .github/workflows/zephyr.yml # See .github/workflows/zephyr.yml
PATH="$PATH":/opt/sparse/bin # /opt/sparse is the current location in the zephyr-build image.
command -v sparse || true # Give any sparse in the workspace precedence.
PATH="$(pwd)"/sparse:/opt/sparse/bin:"$PATH"
command -V sparse || true
: REAL_CC="$REAL_CC" : REAL_CC="$REAL_CC"