blob: 998fb86461cdb69a84e3f4816c1d95d6af5892a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
PACKAGESTRIPFUNCS += "do_strip_modules"
# may be inherited by kernel.bbclass which sets KERNEL_MAJOR_VERSION
KERNEL_MAJOR_VERSION ?= "${@get_kernelmajorversion('${KERNEL_VERSION}')}"
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
}
|