wok annotate linux/stuff/check_modules.sh @ rev 3615

get-google-chrome: update DEPENDS
author Liu Peng <rocky@slitaz.org>
date Tue Jun 30 05:22:50 2009 +0000 (2009-06-30)
parents
children e8d2c0b1111b
rev   line source
jozee@3509 1 #!/bin/sh
jozee@3509 2 # Echo any module in kernel .config that's not added to one of linux-* pkgs
jozee@3509 3 # 2009/06/18 <jozee@slitaz.org> - GNU General Public License.
jozee@3509 4 #
jozee@3509 5
jozee@3509 6 VERSION=$1
jozee@3509 7 WOK=$2
jozee@3509 8 src=$WOK/linux/linux-$VERSION
jozee@3509 9 cd $src
jozee@3509 10 mkdir -p ../stuff/tmp
jozee@3509 11 rm -f ../stuff/tmp/* # clean up
jozee@3509 12 # create a packaged modules list
jozee@3509 13 cat ../stuff/modules-"$VERSION".list >> ../stuff/tmp/pkgs-modules-"$VERSION".list
jozee@3509 14
jozee@3509 15 for i in $(cd $WOK; ls -d linux-*)
jozee@3509 16 do
jozee@3509 17 tazpath="taz/$i-$VERSION"
jozee@3509 18 for j in $(cat $WOK/$i/$tazpath/files.list | grep ".ko.gz")
jozee@3509 19 do
jozee@3509 20 basename $j >> ../stuff/tmp/pkgs-modules-"$VERSION".list
jozee@3509 21 done
jozee@3509 22 done
jozee@3509 23 # get the original list in .config
jozee@3509 24 for i in $(find $_pkg -iname "*.ko.gz")
jozee@3509 25 do
jozee@3509 26 basename $i >> ../stuff/tmp/originial-"$VERSION".list
jozee@3509 27 done
jozee@3509 28 # compare original .config and pkged modules
jozee@3509 29 for i in $(cat ../stuff/tmp/originial-$VERSION.list)
jozee@3509 30 do
jozee@3509 31 if ! grep -qs "$i" ../stuff/tmp/pkgs-modules-"$VERSION".list ; then
jozee@3509 32 modpath=`find $_pkg -iname "$i"`
jozee@3509 33 echo "$i : $modpath" >> ../stuff/tmp/unpackaged-modules-"$VERSION".list;
jozee@3509 34 fi
jozee@3509 35 done
jozee@3509 36 if [ -f ../stuff/tmp/unpackaged-modules-"$VERSION".list ]; then
jozee@3509 37 echo "======================================================================"
jozee@3509 38 echo " Some modules selected in .config were not categorized in linux-* pkgs"
jozee@3509 39 echo "Check linux/stuff/tmp/unpackaged-modules-$VERSION.list to see"
jozee@3509 40 cat ../stuff/tmp/unpackaged-modules-$VERSION.list
jozee@3509 41 else
jozee@3509 42 rm -r ../stuff/tmp
jozee@3509 43 fi