scripts: build-all: warn when ignoring unknown arguments

Example:

 $ ./scripts/xtensa-build-all.sh -j3
 ./scripts/xtensa-build-all.sh: WARN: ignoring arg -j3

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2020-03-24 21:27:36 -07:00 committed by Liam Girdwood
parent 60fc730003
commit e73344a736
1 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,7 @@ else
then
PLATFORMS+=$i" "
BUILD_JOBS_NEXT=0
continue 2
fi
done
@ -81,7 +82,10 @@ else
then
BUILD_JOBS=$args
BUILD_JOBS_NEXT=0
continue
fi
printf '%s: WARN: ignoring arg %s\n' "$0" "$args" >&2
fi
done
fi