export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin:/tools/sbin apply_patches () { for p in *.patch; do echo "Applying $p" patch -Np1 -i $p done } export JOBS=$(grep "processor" /proc/cpuinfo | wc -l) export HOME=/root export MAKEFLAGS="-j$JOBS" export XORG_PREFIX="/usr" export XORG_CONFIG="--prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-static" ldconfig