Packages/uClibc/unpack
From Organic Design wiki
- !/bin/sh
. config/options
$SCRIPTS/unpack linux
UCLIBC=`ls -d $BUILD/$1*`
sed -i -e "s|^HOSTCCspace:*=.*$|HOSTCC = $HOST_CC|" \
-e "s|^CROSSspace:*=.*$|CROSS = $TARGET_PREFIX|" \ $UCLIBC/Rules.mak
sed -e "s%^KERNEL_HEADERS=.*%KERNEL_HEADERS=\"$(kernel_path)/include\"%" \
$PACKAGES/$1/config/$1.$TARGET_ARCH.conf > $UCLIBC/.config
[ "$OLSR" = yes ] && sed -i 's/# UCLIBC_HAS_IPV6 is not set/UCLIBC_HAS_IPV6=y/' $UCLIBC/.config [ "$DEVTOOLS" = yes ] && cat $PACKAGES/$1/config/$1.devtools.conf >> $UCLIBC/.config
make -C $UCLIBC oldconfig make -C $UCLIBC pregen