cookutils rev 231

cook: set KVERS to be used in receipt
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 27 07:19:02 2011 +0200 (2011-05-27)
parents c93dd94cf8da
children c004eb1b16ad
files cook
line diff
     1.1 --- a/cook	Fri May 27 05:07:55 2011 +0200
     1.2 +++ b/cook	Fri May 27 07:19:02 2011 +0200
     1.3 @@ -438,9 +438,14 @@
     1.4  	fi
     1.5  	unset free
     1.6  
     1.7 -	# Export flags and path to be used by make
     1.8 +	# Export flags and path to be used by make and receipt. Kernel version is
     1.9 +	# set from linux-api-headers since it part of toolchain and modules are
    1.10 +	# build with linux-module-headers wich is of course the same version.
    1.11 +	if [ -f "$INSTALLED/linux-api-headers/receipt" ]; then
    1.12 +		KVERS=$(grep ^VERSION= $INSTALLED/linux-api-headers/receipt | cut -d '"' -f 2)
    1.13 +	fi
    1.14  	DESTDIR=$pkgdir/install
    1.15 -	export DESTDIR MAKEFLAGS CFLAGS CXXFLAGS CONFIG_SITE LC_ALL=C LANG=C
    1.16 +	export DESTDIR KVERS MAKEFLAGS CFLAGS CXXFLAGS CONFIG_SITE LC_ALL=C LANG=C
    1.17  
    1.18  	# Check for build deps and handle implicit depends of *-dev packages
    1.19  	# (ex: libusb-dev :: libusb).