mount.sh: Fixed some small errors
[openembedded.git] / classes / module_strip.bbclass
1 PACKAGESTRIPFUNCS += "do_strip_modules"
2
3 do_strip_modules () {
4         if test -e ${PKGD}/lib/modules; then
5                 if [ "${KERNEL_MAJOR_VERSION}" == "2.6" ]; then
6                         modules="`find ${PKGD}/lib/modules -name \*.ko`"
7                 else
8                         modules="`find ${PKGD}/lib/modules -name \*.o`"
9                 fi
10                 if [ -n "$modules" ]; then
11                         for module in $modules ; do
12                                 if ! [ -d "$module"  ] ; then
13                                         ${STRIP} -v -g $module
14                                 fi
15                         done    
16                 fi
17         fi
18 }
19
20