scripts/rstrip.sh: do not strip .o files with STRIP_KMOD

Fixes packaging of eBPF modules

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2021-10-08 12:00:49 +02:00
parent 977bf5e980
commit b45ff2d023

View File

@ -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)