#!/bin/bash # # arm/build # Check package dependencies, set metadata and launch # package build script. # by Stuart Winter # source /usr/share/slackdev/buildkit.sh # Package metadata: # Information about this package: export PACKAGE=kernel-modules #export VERSION=${VERSION:-2.6.14.6} export VERSION=${VERSION:-2.6.19.1} export BUILD=${BUILD:-1} export PKGSERIES=a export SLACKPACKAGE=$PACKAGE-$VERSION-$ARCH-$BUILD.tgz export ARCH=arm # Assume we want to build a RiscPC Kernel if we did not # specify any particular arch type: if [ -z "$1" ]; then # For this package only, we use branded hardware names as the $ARCH: riscpc, iyonix, cats, netwinder, riscstation export SLKARCH=riscpc else export SLKARCH=$1 fi # We need to suffix the package name with 'arch' so that # the installer knows we have two packages: # Kernel modules for Iyonix # Kernel modules for RiscPC # and so on. export PACKAGE=kernel-modules_$SLKARCH # Launch the package build script: ( ./kernel-modules.SlackBuild ) >& /dev/stdout | tee build.${ARCH}_${SLKARCH}.log # Compress the build log: bzip2 -9f build.${ARCH}_${SLKARCH}.log