bin sh SYSROOT tmp FEATURES source etc make conf echo FEATURES MAKEOPT

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
SYSROOT=/tmp
FEATURES=$(source /etc/make.conf; echo $FEATURES)
MAKEOPTS=$(source /etc/make.conf; echo $MAKEOPTS)
if echo "$FEATURES" | grep distcc > /dev/null; then
export PATH=/usr/lib/distcc/bin:$PATH
fi
make $MAKEOPTS \
CONFIG_DEBUG_SECTION_MISMATCH=y \
ARCH="arm" \
CROSS_COMPILE="arm-gentoo-linux-gnueabi-" \
INSTALL_MOD_PATH="${SYSROOT}" \
"$@"
if [ $? = 0 ]; then
make -C /var/tftp
fi