config/functions: add function to strip kernel modules

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-11-29 09:11:18 +01:00
parent 89147aec05
commit 31511498db

View File

@ -151,3 +151,8 @@ strip_linker_plugin() {
# strip out usage from linker plugin
LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-linker-plugin||"`
}
strip_kmod() {
[ -z $1 ] && echo "usage strip_kmod <dir>" && exit 1
find $1 -type f -name '*.ko' | xargs -r $STRIP -R .comment -R .note -g --strip-unneeded
}