mirror of
https://git.yoctoproject.org/meta-zephyr
synced 2026-01-29 21:58:41 +01:00
Mostly stolen from meta-arm Signed-off-by: Jon Mason <jon.mason@arm.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
426 B
Executable File
426 B
Executable File
#! /bin/bash
Expects the path to a log file as $1, and if this file has any content
then display the contents and exit with an error code.
set -e -u
LOGFILE=$1
LINES=$(grep --invert-match "relocations in .text" $LOGFILE | wc -l) if test "$LINES" -ne 0; then echo ============================== echo The build had warnings/errors: echo ============================== cat $LOGFILE exit 1 fi
exit 0