From: Felix Fietkau Date: Fri, 8 Oct 2021 10:00:49 +0000 (+0200) Subject: scripts/rstrip.sh: do not strip .o files with STRIP_KMOD X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fdedeckeh.git;a=commitdiff_plain;h=b45ff2d0238ba696eab7c34126b2a1935a1b8cb6 scripts/rstrip.sh: do not strip .o files with STRIP_KMOD Fixes packaging of eBPF modules Signed-off-by: Felix Fietkau --- diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh index 59f8624df2..e47960a941 100755 --- a/scripts/rstrip.sh +++ b/scripts/rstrip.sh @@ -27,6 +27,7 @@ find $TARGETS -type f -a -exec file {} \; | \ while read F S; do echo "$SELF: $F: $S" [ "${S}" = "relocatable" ] && { + [ "${F##*.}" == "o" ] && continue eval "$STRIP_KMOD $F" } || { b=$(stat -c '%a' $F)