Add the BSD-licensed getopt tool to crossgcc, to use
if there's no native getopt around. Use $PATCH instead of the hardcoded "patch" for patching files (after we already looked it up) Ignore various temporary files via svn:ignore Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5063 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@ -132,6 +132,10 @@ EOF
|
||||
|
||||
printf "${blue}Welcome to the ${red}coresystems${blue} cross toolchain builder v$CROSSGCC_VERSION ($CROSSGCC_DATE)${NC}\n\n"
|
||||
|
||||
# Look if we have getopt. If not, build it.
|
||||
export PATH=$PATH:.
|
||||
getopt - > /dev/null 2>/dev/null || gcc -o getopt getopt.c
|
||||
|
||||
# parse parameters.. try to find out whether we're running GNU getopt
|
||||
getoptbrand="`getopt -V`"
|
||||
if [ "${getoptbrand:0:6}" == "getopt" ]; then
|
||||
@ -205,7 +209,7 @@ for PACKAGE in GMP MPFR GCC BINUTILS GDB $MINGW_PACKAGES; do
|
||||
for patch in patches/${!dir}_*.patch; do
|
||||
test -r $patch || continue
|
||||
printf " o `basename $patch`\n"
|
||||
patch -s -N -p0 < `echo $patch`
|
||||
$PATCH -s -N -p0 < `echo $patch`
|
||||
done
|
||||
)
|
||||
done
|
||||
|
Reference in New Issue
Block a user