tplg-build.sh: invoke m4 with --fatal-warnings

Also use || exit 255 to stop xargs from burying the error message(s).

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2020-05-20 11:36:04 -07:00 committed by Liam Girdwood
parent cff1bb62b0
commit 11ee3b872b
1 changed files with 3 additions and 1 deletions

View File

@ -267,7 +267,9 @@ then
shell_name=m4 # $0, only used in error messages
echo $M4_STRINGS | tr " " "," | tr '\n' '\0' |
xargs ${VERBOSE:+-t} -P${NO_PROCESSORS} -d ',' -n14 \
bash ${VERBOSE:+-x} -c 'm4 "${@:1:${#}-1}" > ${14}.conf' $shell_name
bash ${VERBOSE:+-x} -c \
'm4 --fatal-warnings "${@:1:${#}-1}" > ${14}.conf || exit 255' \
$shell_name
#execute alsatplg to create topology binary
printf '%s generating %s/*.tplg files with alsatplg...\n' \