wok diff linux64/receipt @ rev 16657

linux64*: update from list_modules.sh, _pkg => install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 14 05:35:49 2014 +0000 (2014-05-14)
parents 5ca86f3045d4
children 889f25f00105
line diff
     1.1 --- a/linux64/receipt	Thu Jan 30 21:56:31 2014 +0100
     1.2 +++ b/linux64/receipt	Wed May 14 05:35:49 2014 +0000
     1.3 @@ -19,23 +19,23 @@
     1.4  genpkg_rules()
     1.5  {
     1.6      local path
     1.7 -    _pkg=$install/linux64
     1.8 -    cp -a $_pkg/boot $fs
     1.9 +    install=$install/linux64
    1.10 +    cp -a $install/boot $fs
    1.11      path=$fs/lib/modules/$VERSION-slitaz/kernel
    1.12      mkdir -p $path
    1.13 -    cp -a $_pkg/lib/modules/$VERSION-slitaz/mo* \
    1.14 +    cp -a $install/lib/modules/$VERSION-slitaz/mo* \
    1.15  		$fs/lib/modules/$VERSION-slitaz
    1.16  
    1.17      # Get the base modules
    1.18      export src
    1.19 -    export _pkg
    1.20 +    export install
    1.21      mkdir -p $WOK/$PACKAGE/source/tmp
    1.22      $wanted_stuff/list_modules.sh \
    1.23  	$(cat $stuff/modules64.list) > $WOK/$PACKAGE/source/tmp/modules.list
    1.24      while read module; do
    1.25      	dir=$(dirname $module)
    1.26      	[ -d $path/$dir ] || mkdir -p $path/$dir
    1.27 -        cp -a $_pkg/lib/modules/$VERSION-slitaz/kernel/$module $path/$dir
    1.28 +        cp -a $install/lib/modules/$VERSION-slitaz/kernel/$module $path/$dir
    1.29      done < $WOK/$PACKAGE/source/tmp/modules.list
    1.30      # Remove unresolved links
    1.31      rm -f $fs/lib/modules/$VERSION-slitaz/build
    1.32 @@ -47,7 +47,7 @@
    1.33      done
    1.34      # Fixed modules.dep to use right path
    1.35      # saves 100kb of space too
    1.36 -    sed -i "s|$_pkg||g" $fs/lib/modules/$VERSION-slitaz/modules.dep
    1.37 +    sed -i "s|$install||g" $fs/lib/modules/$VERSION-slitaz/modules.dep
    1.38      sed -i "s|99.98.$VERSION-slitaz|$VERSION-slitaz|g" $fs/lib/modules/$VERSION-slitaz/modules.dep
    1.39      # Check and echo any module in kernel .config that's not added to 
    1.40      # one of linux-* pkgs