wok rev 1909

linux: buggy modules.dep workaround
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 21 17:32:59 2008 +0000 (2008-12-21)
parents 925e9a3b1b2b
children 3d9f3044e7ff
files linux/receipt linux/stuff/list_modules.sh
line diff
     1.1 --- a/linux/receipt	Sun Dec 21 15:49:01 2008 +0100
     1.2 +++ b/linux/receipt	Sun Dec 21 17:32:59 2008 +0000
     1.3 @@ -9,6 +9,7 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     1.5  WEB_SITE="http://www.kernel.org/"
     1.6  WGET_URL="http://www.eu.kernel.org/pub/linux/kernel/v2.6/$TARBALL"
     1.7 +CONFIG_FILES="/lib/modules/$VERSION-slitaz/modules.dep"
     1.8  
     1.9  # Rules to configure and make the package.
    1.10  compile_rules()
     2.1 --- a/linux/stuff/list_modules.sh	Sun Dec 21 15:49:01 2008 +0100
     2.2 +++ b/linux/stuff/list_modules.sh	Sun Dec 21 17:32:59 2008 +0000
     2.3 @@ -25,7 +25,8 @@
     2.4  for tree in $@; do
     2.5      for module in $(find $_pkg/lib/modules/*-slitaz/kernel/$tree \
     2.6                           -type f -exec basename {} \;) ; do
     2.7 -        grep /$module: $_pkg/lib/modules/*-slitaz/modules.dep
     2.8 +        grep /$module: $_pkg/lib/modules/*-slitaz/modules.dep ||
     2.9 +        find $_pkg/lib/modules/*-slitaz/kernel/$tree -name $module
    2.10      done | awk '{ for (i = 1; i <= NF; i++)  print $i; }'
    2.11  done | sort | uniq | sed -e 's,.*slitaz/kernel/,,' -e 's/:$//' | \
    2.12  while read module; do