mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
config/functions: add function to strip kernel modules
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
89147aec05
commit
31511498db
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user