1 PACKAGESTRIPFUNCS += "do_strip_modules"
3 # may be inherited by kernel.bbclass which sets KERNEL_MAJOR_VERSION
4 KERNEL_MAJOR_VERSION ?= "${@get_kernelmajorversion('${KERNEL_VERSION}')}"
7 if test -e ${PKGD}/lib/modules; then
8 if [ "${KERNEL_MAJOR_VERSION}" == "2.6" ]; then
9 modules="`find ${PKGD}/lib/modules -name \*.ko`"
11 modules="`find ${PKGD}/lib/modules -name \*.o`"
13 if [ -n "$modules" ]; then
14 for module in $modules ; do
15 if ! [ -d "$module" ] ; then
16 ${STRIP} -v -g $module