浏览代码

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

Fixes packaging of eBPF modules

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 4 年之前
父节点
当前提交
b45ff2d023
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scripts/rstrip.sh

+ 1 - 0
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)