aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-10-08 12:00:49 +0200
committerFelix Fietkau <nbd@nbd.name>2021-10-11 11:49:14 +0200
commitb45ff2d0238ba696eab7c34126b2a1935a1b8cb6 (patch)
tree21418ce7732163b913fbd6533aaa1507bcd1a844 /scripts
parent977bf5e9802bf4543e6356e391851b13ee32a1f9 (diff)
downloadupstream-b45ff2d0238ba696eab7c34126b2a1935a1b8cb6.tar.gz
upstream-b45ff2d0238ba696eab7c34126b2a1935a1b8cb6.tar.bz2
upstream-b45ff2d0238ba696eab7c34126b2a1935a1b8cb6.zip
scripts/rstrip.sh: do not strip .o files with STRIP_KMOD
Fixes packaging of eBPF modules Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/rstrip.sh1
1 files changed, 1 insertions, 0 deletions
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)