wok rev 7655

Add linux-without-modules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 15 20:56:53 2010 +0100 (2010-12-15)
parents 875321632a17
children ad0d39a286a5
files linux-without-modules/receipt linux/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/linux-without-modules/receipt	Wed Dec 15 20:56:53 2010 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="linux-without-modules"
     1.7 +VERSION="2.6.36"
     1.8 +CATEGORY="base-system"
     1.9 +SHORT_DESC="The Linux kernel without module support."
    1.10 +MAINTAINER="devel@slitaz.org"
    1.11 +WANTED="linux"
    1.12 +WEB_SITE="http://www.kernel.org/"
    1.13 +
    1.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.15 +genpkg_rules()
    1.16 +{
    1.17 +	mkdir -p $fs/boot   
    1.18 +	cp -a $_pkg/bzImage $fs/boot/vmlinuz-$VERSION-slitaz-without-modules
    1.19 +}
    1.20 +
     2.1 --- a/linux/receipt	Wed Dec 15 11:46:40 2010 +0000
     2.2 +++ b/linux/receipt	Wed Dec 15 20:56:53 2010 +0100
     2.3 @@ -81,9 +81,17 @@
     2.4  	make -j 4 modules &&
     2.5  	make INSTALL_MOD_PATH=$PWD/_pkg modules_install &&
     2.6  	make INSTALL_HDR_PATH=$PWD/_pkg/usr headers_install &&
     2.7 -	[ -s arch/x86/boot/bzImage ]
     2.8 +	[ -s arch/x86/boot/bzImage ] || return 1
     2.9  	# Compress all modules.
    2.10  	$WOK/$PACKAGE/stuff/gztazmod.sh $PWD/_pkg/lib/modules/$VERSION-slitaz
    2.11 +	mv System.map System.map-modules
    2.12 +	sed -i 's/CONFIG_MODULES=y/# CONFIG_MODULES is not set/' .config
    2.13 +	# We can't keep every driver in staging 
    2.14 +	sed -i -e 's/^CONFIG_RTL8192/#&/' \
    2.15 +	       -e 's/^CONFIG_R8187SE/#&/' \
    2.16 +	       -e 's/^CONFIG_RT2870/#&/' .config
    2.17 +	yes '' | make oldconfig
    2.18 +	make -j 4 bzImage && mv arch/x86/boot/bzImage $PWD/_pkg
    2.19  }
    2.20  
    2.21  # Rules to gen a SliTaz package suitable for Tazpkg.