#!/bin/bash # # arm/build # Check package dependencies, set metadata and launch # package build script. # by Stuart Winter # source /usr/share/slackdev/buildkit.sh # If it's an -rc release, remove the hyphen and rename # the source archive. It makes packaging and scripting all play happily. export VERSION=${VERSION:-2.6.30.5} export BUILD=${BUILD:-1} export PKGSERIES=${PKGSERIES:-a} export PKGARCH=${PKGARCH:-arm} ## ******************************************************************* ## # For test packages - best to store in another location rather than # overwriting the working copy in the main tree: # export PKGSTORE=/tmp/ # mkdir -vpm755 $PKGSTORE/$PKGSERIES ## ******************************************************************* ## # Assume we want to build a Versatile 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 export SLKARCH=versatile else export SLKARCH=$1 fi # Ensure build dependencies are met: # We require Das U-Boot 'mkimage' tool to build the 'uImage' Kernels # for the ARM Kirkwood and other platforms using the U-Boot Linux loader. { slackcheckpkgdeps u-boot-tools || installpkg $PKGSTORE/a/u-boot-tools-[0-9]*.tgz || exit 99 ; } export PKGNAM=kernel_$SLKARCH export SLACKPACKAGE=$PKGNAM-$VERSION-$PKGARCH-$BUILD.tgz # Launch the package build script: BUILDLOG=$( basename $SLACKPACKAGE .tgz ).build.log ( ./kernel.SlackBuild ) >& /dev/stdout | tee $BUILDLOG # Compress the build log: bzip2 -9f $BUILDLOG