#!/bin/sh ARCH=`uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/` if test ! -f patch-int-2.4.3.1 ; then if test ! -f patch-int-2.4.3.1.gz ; then if ! (wget http://www.kernel.org/pub/linux/kernel/crypto/v2.4/patch-int-2.4.3.1.gz) ; then echo "=> failed to get patch file." >&2 echo " get it manually and come back" >&2 echo " wget http://www.kernel.org/pub/linux/kernel/crypto/v2.4/patch-int-2.4.3.1.gz" >&2 exit 1 fi fi if test ! -f patch-int-2.4.3.1.gz ; then echo "no patch-int-2.4.3.1.gz found" >&2 fi if ! (gunzip patch-int-2.4.3.1.gz) ; then echo "=> failed to unzip patch-int-2.4.3.1.gz." >&2 echo " get the gz and uncompress it manually..." >&2 echo " wget http://www.kernel.org/pub/linux/kernel/crypto/v2.4/patch-int-2.4.3.1.gz" >&2 exit 1 fi fi if test ! -f patch-int-2.4.3.1 ; then echo "=> patch-int-2.4.3.1 is not present." >&2 echo " get it manually, and uncompress it" >&2 echo " wget http://www.kernel.org/pub/linux/kernel/crypto/v2.4/patch-int-2.4.3.1.gz" >&2 exit 1 fi # this may fail so do not bother with status... patch -f -p1 < patch-int-2.4.3.1 # restore real makefile... cp -f Makefile-real Makefile # now make the asm link (cd include ; ln -fs asm-${ARCH} asm) # and finally compile make