scripts/rstrip.sh: do not strip .o files with STRIP_KMOD
authorFelix Fietkau <nbd@nbd.name>
Fri, 8 Oct 2021 10:00:49 +0000 (12:00 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 11 Oct 2021 09:49:14 +0000 (11:49 +0200)
Fixes packaging of eBPF modules

Signed-off-by: Felix Fietkau <nbd@nbd.name>
scripts/rstrip.sh

index 59f8624df209baaa286d54d50fcd0d39848d8b48..e47960a941ae203810fc26f003d44d6df1b075ce 100755 (executable)
@@ -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)