###############################################################################
# #
# IPFire.org - A linux based firewall #
-# Copyright (C) 2007-2011 IPFire Team <info@ipfire.org> #
+# Copyright (C) 2007-2016 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
x86_64|i686|i586)
echo "i586"
;;
- armv7*|armv6*|armv5*)
+ aarch64|armv7*|armv6*|armv5*)
echo "armv5tel"
;;
*)
losetup -d /dev/loop${i} 2>/dev/null
fi;
done
+
+ if [ -n "${LOGFILE}" ]; then
+ echo # empty line
+
+ local line
+ while read -r line; do
+ echo " ${line}"
+ done <<< "$(tail -n30 ${LOGFILE})"
+ fi
+
echo -e "\nERROR: $*"
echo " Check $LOGFILE for errors if applicable"
exit 1
local PKG_TIME_START=`date +%s`
- cd $BASEDIR/lfs && make -f $* BUILDTARGET=$BUILDTARGET \
+ cd $BASEDIR/lfs && \
+ PATH="/tools/ccache/bin:/tools/bin:$PATH" \
+ make -f $* TOOLCHAIN=1 BUILDTARGET=$BUILDTARGET \
CROSSTARGET="${CROSSTARGET}" \
MACHINE=$MACHINE \
MACHINE_TYPE=$MACHINE_TYPE \