#PAX=1
+###############################################################################
+# Addons + Debugging tools #
+###############################################################################
+# These switches let the user say if the build should do the addons or not. #
+# One can also set if the system should build the debugging tools. #
+# Purpose is to save build time. #
+# BUILD_EXTRAS is enabled by default. To disable set it to zero. #
+# BUILD_DEBUG is disabled by default. To enable set it to one. #
+###############################################################################
+
+#BUILD_EXTRAS=1
+#BUILD_DEBUG=0
+
###############################################################################
# Niceness #
###############################################################################
# Embedded build
EMB=0
+# Building options
+BUILD_EXTRAS=1
+BUILD_DEBUG=0
+
# Parallelism flag
PARALLELISMFLAGS=-j$(( $(grep processor < /proc/cpuinfo | wc -l) * 2 + 1 ))
DISTCC_HOSTS=localhost
fi
done
+ # Don't create addons?
+ local EXTRA=`grep ^EXTRA $BASEDIR/lfs/$1 | awk '{print $3}'`
+ if [ "$EXTRA" == "yes" -a "$BUILD_EXTRAS" == "0" ]; then
+ beautify result SKIP
+ return 1
+ fi
+
+ # Don't create debugging tools?
+ local DEBUG=`grep ^DEBUG $BASEDIR/lfs/$1 | awk '{print $3}'`
+ if [ "$DEBUG" == "yes" -a "$BUILD_DEBUG" == "1" ]; then
+ beautify result SKIP
+ return 1
+ fi
+
echo -e "`date -u '+%b %e %T'`: Building $* " >> $LOGFILE
cd $BASEDIR/lfs && make -s -f $* MACHINE=$MACHINE LFS_BASEDIR=$BASEDIR MESSAGE="$1\t " download >> $LOGFILE 2>&1