wok-current annotate linux/receipt @ rev 214

Up: 2.6.24.2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 14 19:08:39 2008 +0100 (2008-02-14)
parents 24d5f71c9b33
children 122236d5dd65
rev   line source
pankso@3 1 # SliTaz package receipt.
pankso@3 2
pankso@3 3 PACKAGE="linux"
pascal@214 4 VERSION="2.6.24.2"
pankso@3 5 CATEGORY="base-system"
pankso@3 6 SHORT_DESC="The Linux kernel and modules."
pankso@3 7 MAINTAINER="pankso@slitaz.org"
pankso@3 8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@3 9 WEB_SITE="http://www.kernel.org/"
pankso@3 10 WGET_URL="http://www.eu.kernel.org/pub/linux/kernel/v2.6/$TARBALL"
pankso@3 11
pankso@3 12 # Rules to configure and make the package.
pankso@3 13 compile_rules()
pankso@3 14 {
pankso@3 15 cd $src
pankso@3 16 # lzma and boot patch from pascal
pankso@3 17 patch -p1 < ../stuff/boot-kernel.u
pankso@3 18 patch -p1 < ../stuff/$PACKAGE-lzma-$VERSION.u
pankso@3 19 patch -p1 < ../stuff/decompress_unlzma.u
pankso@3 20 make mrproper
pankso@3 21 cp ../stuff/$PACKAGE-$VERSION-slitaz.config .config
pankso@3 22 make oldconfig
pankso@3 23 make bzImage
pankso@3 24 make modules
pankso@3 25 make INSTALL_MOD_PATH=$PWD/_pkg modules_install
pankso@3 26 }
pankso@3 27
pankso@3 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@3 29 genpkg_rules()
pankso@3 30 {
pankso@3 31 mkdir $fs/boot
pascal@214 32 cp -a $src/arch/x86/boot/bzImage $fs/boot/vmlinuz-$VERSION-slitaz
pankso@3 33 cp -a $_pkg/* $fs
pankso@3 34 # Compress all modules.
pankso@3 35 # Package module-init-tools is compiled with zlib support.
pankso@3 36 #
pankso@3 37 ./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
pankso@3 38 }
pankso@3 39
pankso@3 40 # Pre and post install commands for Tazpkg.
pankso@3 41 # GRUB stuf.
pankso@3 42 post_install()
pankso@3 43 {
pankso@3 44 echo "Processing post-install commands..."
pankso@3 45 echo "----"
pankso@3 46 echo "If you have GRUB installed, you can add tree lines to boot SliTaz."
pankso@3 47 echo "Example /boot/grub/menu.lst"
pankso@3 48 echo -e "
pankso@3 49 title SliTaz GNU/Linux (Kernel $VERSION-slitaz)
pankso@3 50 root(hd0,0)
pankso@3 51 kernel /boot/vmlinuz-$VERSION-slitaz root=/dev/hda1 vga=771\n"
pankso@3 52 echo "----"
pankso@3 53 }