crossgcc: Allow the non-gnu tar and patch work on XxxBSD
For BSD, patch and tar are not default GNU. Add a work around to let the non-gun patch and tar work. Change-Id: I0a9d0bb0e535aa5e0dde146db330c3c8d7b4d8cb Signed-off-by: Zheng Bao <zheng.bao@amd.com> Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/1502 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
d357e62836
commit
36156ffa1e
|
@ -99,6 +99,15 @@ searchgnu()
|
|||
fi
|
||||
fi
|
||||
done
|
||||
# A workaround for XxxBSD, whose nongnu patch and tar also work.
|
||||
if [ `uname` = "FreeBSD" -o `uname` = "NetBSD" ]; then
|
||||
if [ $1 != "make" ]; then
|
||||
if test -x "`which $1 2>/dev/null`"; then
|
||||
echo $1
|
||||
return
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
printf "${RED}ERROR:${red} Missing toolchain: $1${NC}\n" >&2
|
||||
exit 1
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue