wok-6.x view linux/receipt @ rev 787

syslinux-extra: add sdi.c32
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 13 15:04:56 2008 +0000 (2008-05-13)
parents 998d2b306f24
children d930832824c9
line source
1 # SliTaz package receipt.
3 PACKAGE="linux"
4 VERSION="2.6.24.2"
5 CATEGORY="base-system"
6 SHORT_DESC="The Linux kernel and modules."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.kernel.org/"
10 WGET_URL="http://www.eu.kernel.org/pub/linux/kernel/v2.6/$TARBALL"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 cd $src
16 # lzma and boot patch from pascal
17 while read patch_file; do
18 echo "Apply $patch_file"
19 patch -p1 < ../stuff/$patch_file
20 done <<EOT
21 boot-kernel.u
22 $PACKAGE-lzma-$VERSION.u
23 decompress_unlzma.u
24 EOT
25 make mrproper
26 cp ../stuff/$PACKAGE-$VERSION-slitaz.config .config
27 while read patch_file; do
28 echo "Apply $patch_file"
29 patch -p1 < ../stuff/$patch_file
30 done <<EOT
31 config-acpi-$VERSION.u
32 linux-utf8-$VERSION.u
33 config-ieee1394-$VERSION.u
34 linux-lzma-export.u
35 config-tun-$VERSION.u
36 config-reiserfs-$VERSION.u
37 config-wireless-$VERSION.u
38 EOT
39 make oldconfig
40 make bzImage
41 make modules
42 make INSTALL_MOD_PATH=$PWD/_pkg modules_install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 local path
49 mkdir $fs/boot
50 cp -a $src/arch/x86/boot/bzImage $fs/boot/vmlinuz-$VERSION-slitaz
51 # Compress all modules.
52 # Package module-init-tools is compiled with zlib support.
53 #
54 ./stuff/gztazmod.sh $_pkg/lib/modules/$VERSION-slitaz
55 path=$fs/lib/modules/$VERSION-slitaz/kernel
56 mkdir -p $path
57 cp -a $_pkg/lib/modules/$VERSION-slitaz/mo* $fs/lib/modules/$VERSION-slitaz
58 while read module; do
59 dir=$(dirname $module)
60 [ -d $path/$dir ] || mkdir -p $path/$dir
61 cp -a $_pkg/lib/modules/$VERSION-slitaz/kernel/$module $path/$dir
62 done < stuff/modules-$VERSION.list
63 # Remove unresolved links
64 rm -f $fs/lib/modules/$VERSION-slitaz/build
65 rm -f $fs/lib/modules/$VERSION-slitaz/source
66 }
68 # Pre and post install commands for Tazpkg.
69 # GRUB stuf.
70 post_install()
71 {
72 echo "Processing post-install commands..."
73 depmod -a -b /$1
74 echo "----"
75 echo "If you have GRUB installed, you can add tree lines to boot SliTaz."
76 echo "Example /boot/grub/menu.lst"
77 echo -e "
78 title SliTaz GNU/Linux (Kernel $VERSION-slitaz)
79 root(hd0,0)
80 kernel /boot/vmlinuz-$VERSION-slitaz root=/dev/hda1 vga=771\n"
81 echo "----"
82 }