blob: 3316e20c803fcd04317473f40054dbd7acd576bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#DEPENDS_append = " module-strip"
do_strip_modules () {
for p in ${PACKAGES}; do
if test -e ${WORKDIR}/install/$p/lib/modules; then
if [ "${KERNEL_MAJOR_VERSION}" == "2.6" ]; then
modules="`find ${WORKDIR}/install/$p/lib/modules -name \*.ko`"
else
modules="`find ${WORKDIR}/install/$p/lib/modules -name \*.o`"
fi
if [ -n "$modules" ]; then
for module in $modules ; do
if ! [ -d "$module" ] ; then
${STRIP} -v -g $module
fi
done
# NM="${CROSS_DIR}/bin/${HOST_PREFIX}nm" OBJCOPY="${CROSS_DIR}/bin/${HOST_PREFIX}objcopy" strip_module $modules
fi
fi
done
}
python do_package_append () {
if (bb.data.getVar('INHIBIT_PACKAGE_STRIP', d, 1) != '1'):
bb.build.exec_func('do_strip_modules', d)
}
|