wok-next diff linux/receipt @ rev 881

linux: minimize lzma memory footprint
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 06 23:15:25 2008 +0000 (2008-06-06)
parents 8e1dfc3bad57
children 04b68c6ffdfa
line diff
     1.1 --- a/linux/receipt	Fri Jun 06 12:25:13 2008 +0200
     1.2 +++ b/linux/receipt	Fri Jun 06 23:15:25 2008 +0000
     1.3 @@ -16,7 +16,7 @@
     1.4  	# lzma and boot patch from pascal
     1.5  	while read patch_file; do
     1.6  		echo "Apply $patch_file"
     1.7 -		patch -p1 < ../stuff/$patch_file
     1.8 +		patch -p1 < ../stuff/$patch_file || return 1
     1.9  	done <<EOT
    1.10  boot-kernel.u
    1.11  $PACKAGE-lzma-$VERSION.u
    1.12 @@ -26,7 +26,7 @@
    1.13  	cp ../stuff/$PACKAGE-$VERSION-slitaz.config .config
    1.14  	while read patch_file; do
    1.15  		echo "Apply $patch_file"
    1.16 -		patch -p1 < ../stuff/$patch_file
    1.17 +		patch -p1 < ../stuff/$patch_file || return 1
    1.18  	done <<EOT
    1.19  config-acpi-$VERSION.u
    1.20  linux-utf8-$VERSION.u
    1.21 @@ -35,6 +35,7 @@
    1.22  config-tun-$VERSION.u
    1.23  config-reiserfs-$VERSION.u
    1.24  config-wireless-$VERSION.u
    1.25 +$PACKAGE-lzma-loram-$VERSION.u
    1.26  EOT
    1.27  	make oldconfig
    1.28  	make bzImage
    1.29 @@ -48,6 +49,7 @@
    1.30      local path
    1.31      mkdir $fs/boot
    1.32      cp -a $src/arch/x86/boot/bzImage $fs/boot/vmlinuz-$VERSION-slitaz
    1.33 +    rdev $fs/boot/vmlinuz-$VERSION-slitaz /dev/ram0
    1.34      # Compress all modules.
    1.35      # Package module-init-tools is compiled with zlib support.
    1.36      #
    1.37 @@ -75,7 +77,7 @@
    1.38  post_install()
    1.39  {
    1.40      echo "Processing post-install commands..."
    1.41 -    depmod -a -b /$1
    1.42 +    depmod -a -b "$1/"
    1.43      echo "----"
    1.44      echo "If you have GRUB installed, you can add tree lines to boot SliTaz."
    1.45      echo "Example /boot/grub/menu.lst"