#!/bin/sh # Set initial variables: CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi VERSION=2.6.17.13 ARCH=${ARCH:-s390x} BUILD=${BUILD:-1} if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi cd $TMP rm -rf kernel-source-${VERSION} mkdir -p kernel-source-${VERSION}/usr/src cd kernel-source-${VERSION}/usr/src tar -jxvf $CWD/../linux-${VERSION}.tar.bz2 chown -R root:root . find . -type f -perm 666 | xargs chmod 644 find . -type f -perm 777 | xargs chmod 755 ln -sf linux-${VERSION} linux cd linux-${VERSION} cp $CWD/s390.default.config .config ARCH=s390 make oldconfig ARCH=s390 make -j3 image ARCH=s390 make -j3 modules ARCH=s390 make clean rm -vf .config.old .version cd $TMP/kernel-source-${VERSION} mkdir install cat $CWD/slack-desc > install/slack-desc makepkg -l y -c y ../kernel-source-${VERSION}-${ARCH}-${BUILD}.tgz