#!/bin/sh ############################################################ # Program: uclibc.build # Purpose: Compile uClibc for Slackware on ARM # Author : Stuart Winter # Date...: 01/Feb/2003 ############################################################ cd ${BUILDPATH}/ rm -rf uclibc* mkdir uclibc && cd uclibc tar jxf ${ORIGPATH}/source/uClibc-0.9.17.tar.bz2 cd uClibc* cp -f extra/Configs/Config.arm Config mv Makefile Makefile.previous sed 's/cp -a/cp -fa/g' Makefile.previous > Makefile cp Rules.mak Rules.mak.previous # Update various config files sed -e's/^TARGET_PREFIX.*=.*/TARGET_PREFIX=\/tmp\/slackarmed\/ramdisk/' \ -e's/^CROSS.*=.*/CROSS\ =\ \/usr\/local\/arm\/2.95.3\/bin\/arm\-linux\-/' Rules.mak.previous > Rules.mak cat << EOF >> Config KERNEL_SOURCE=/tmp/linux/linux PREFIX = "" DEVEL_PREFIX = /tmp/arm-linux-uclibc EOF