summaryrefslogtreecommitdiff
path: root/classes/module_strip.oeclass
blob: 85c4cf08e6419ca0c4f0f8a68c099113ba26ff6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#DEPENDS_append = " module-strip"

do_strip_modules () {
	for p in ${PACKAGES}; do
		if test -e ${WORKDIR}/install/$p/lib/modules; then
			modules="`find ${WORKDIR}/install/$p/lib/modules -name \*.o`"
			if [ -n "$modules" ]; then
				${STRIP} -v -g $modules
#				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 (oe.data.getVar('INHIBIT_PACKAGE_STRIP', d, 1) != '1'):
		oe.build.exec_func('do_strip_modules', d)
}