wok-stable rev 3140

nvidia: use linux version from wok only
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 20 20:19:44 2009 +0200 (2009-05-20)
parents 11eb7b80f02c
children 6dc653f5ad54
files nvidia/receipt
line diff
     1.1 --- a/nvidia/receipt	Wed May 20 19:02:41 2009 +0200
     1.2 +++ b/nvidia/receipt	Wed May 20 20:19:44 2009 +0200
     1.3 @@ -33,8 +33,14 @@
     1.4      mv "NVIDIA-Linux-x86-$VERSION-pkg0" "$PACKAGE-$VERSION"
     1.5    fi
     1.6    cd $src/usr/src/nv
     1.7 +  if [ ! -d $WOK/linux/taz ]; then
     1.8 +	tazwok cook linux
     1.9 +  fi
    1.10 +  kver=$(ls $WOK/linux/taz); kver=${kver#*-}
    1.11 +  sed -i "s/uname -r/echo $kver/g" ?akefile* conftest.sh
    1.12 +  sed -i "s| /lib/modules| $WOK/linux/linux-$kver/lib/modules|" ?akefile*
    1.13    [ ! -f Makefile ] && ln -s Makefile.kbuild Makefile
    1.14 -  make SYSSRC=$(ls -d $WOK/linux/linux-*/) module
    1.15 +  make SYSSRC=$(ls -d $WOK/linux/linux-$kver/) module
    1.16  }
    1.17  
    1.18  # Rules to gen a SliTaz package suitable for Tazpkg.