wok-next rev 7667

linux: avoid linux-without-modules side effects
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 16 21:59:47 2010 +0100 (2010-12-16)
parents 645cf2faf482
children 913d99141bbf
files linux/receipt
line diff
     1.1 --- a/linux/receipt	Thu Dec 16 12:59:54 2010 +0000
     1.2 +++ b/linux/receipt	Thu Dec 16 21:59:47 2010 +0100
     1.3 @@ -74,6 +74,20 @@
     1.4  	cd Documentation/lguest
     1.5  	make lguest || return 1
     1.6  	cd ../..
     1.7 +
     1.8 +	# Build bzImage without modules first
     1.9 +	cp ../stuff/$PACKAGE-$VERSION-slitaz.config .config
    1.10 +	sed -i 's/CONFIG_MODULES=y/# CONFIG_MODULES is not set/' .config
    1.11 +	# We can't keep every driver in staging 
    1.12 +	sed -i -e 's/^CONFIG_RTL8192/#&/' \
    1.13 +	       -e 's/^CONFIG_R8187SE/#&/' \
    1.14 +	       -e 's/^CONFIG_RT2870/#&/' .config
    1.15 +	yes '' | make oldconfig
    1.16 +	make -j 4 bzImage || return 1
    1.17 +	mv arch/x86/boot/bzImage $PWD/_pkg
    1.18 +	mv System.map System.map-without-modules
    1.19 +
    1.20 +	# Build bzImage with modules
    1.21  	cp ../stuff/$PACKAGE-$VERSION-slitaz.config .config
    1.22  	make oldconfig
    1.23  	ln .config slitaz/config
    1.24 @@ -86,15 +100,8 @@
    1.25  	mv arch/x86/boot/bzImage $PWD/_pkg/boot/vmlinuz-$VERSION-slitaz
    1.26  	# Compress all modules.
    1.27  	$WOK/$PACKAGE/stuff/gztazmod.sh $PWD/_pkg/lib/modules/$VERSION-slitaz
    1.28 -	mv System.map System.map-modules
    1.29 -	mv Module.symvers Module.symvers-modules
    1.30 -	sed -i 's/CONFIG_MODULES=y/# CONFIG_MODULES is not set/' .config
    1.31 -	# We can't keep every driver in staging 
    1.32 -	sed -i -e 's/^CONFIG_RTL8192/#&/' \
    1.33 -	       -e 's/^CONFIG_R8187SE/#&/' \
    1.34 -	       -e 's/^CONFIG_RT2870/#&/' .config
    1.35 -	yes '' | make oldconfig
    1.36 -	make -j 4 bzImage && mv arch/x86/boot/bzImage $PWD/_pkg
    1.37 +	ln System.map System.map-modules
    1.38 +	ln Module.symvers Module.symvers-modules
    1.39  }
    1.40  
    1.41  # Rules to gen a SliTaz package suitable for Tazpkg.