wok-current diff linux/stuff/check_modules.sh @ rev 13043
visualboyadvance: fix compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jun 15 16:18:05 2012 +0200 (2012-06-15) |
parents | 973f4b50dcf3 |
children | edd6117a0e47 |
line diff
1.1 --- a/linux/stuff/check_modules.sh Tue Apr 26 19:48:46 2011 +0000 1.2 +++ b/linux/stuff/check_modules.sh Fri Jun 15 16:18:05 2012 +0200 1.3 @@ -9,21 +9,22 @@ 1.4 #WOK=$LOCAL_REPOSITORY/wok 1.5 WOK=$(cd `dirname $0` && pwd | sed 's/wok.*/wok/') 1.6 VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.7 -src="$WOK/linux/linux-$VERSION" 1.8 +BASEVER="${VERSION:0:3}" 1.9 +src="$WOK/linux/source/linux-$VERSION" 1.10 1.11 cd $src 1.12 -mkdir -p $WOK/$PACKAGE/tmp 1.13 +mkdir -p $WOK/$PACKAGE/tmp 2>/dev/null 1.14 rm -f $WOK/$PACKAGE/tmp/* 1.15 1.16 echo -e "\nChecking for modules selected in .config but not in linux-* pkgs" 1.17 echo "======================================================================" 1.18 1.19 # create a packaged modules list 1.20 -cat ../stuff/modules-"$VERSION".list >> $WOK/$PACKAGE/tmp/pkgs-modules-"$VERSION".list 1.21 +cat $WOK/linux/stuff/modules.list >> $WOK/$PACKAGE/tmp/pkgs-modules-"$VERSION".list 1.22 1.23 -for i in $(cd $WOK; ls -d linux-*) 1.24 +for i in $(cd $WOK; grep -l '^WANTED="linux"' */receipt | sed 's|/receipt||g') 1.25 do 1.26 - tazpath="taz/$i-$VERSION" 1.27 + tazpath="taz/$i-*" 1.28 if [ ! $(grep -l 'linux-libre' $WOK/$i/receipt) ]; then 1.29 for j in $(cat $WOK/$i/$tazpath/files.list | grep ".ko.gz") 1.30 do