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