X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=rules.mk;h=79a2a9fa48cf8d44a50830491c12a7ae01082975;hb=32a69747812d72bb93bd3a71090d5db58b9a5602;hp=474c0e2461b01ef29ed97364edfbca594cfd2cf6;hpb=31df1c58cb4a9c1da3bb67e7d5cd3bc9b2839799;p=15.05%2Fopenwrt.git diff --git a/rules.mk b/rules.mk index 474c0e2461..79a2a9fa48 100644 --- a/rules.mk +++ b/rules.mk @@ -219,9 +219,10 @@ else endif endif RSTRIP:= \ + export CROSS="$(TARGET_CROSS)"; \ NM="$(TARGET_CROSS)nm" \ STRIP="$(STRIP)" \ - STRIP_KMOD="$(TARGET_CROSS)strip --strip-unneeded -R .comment -R .pdr -R .mdebug.abi32 -R .note.gnu.build-id -R .gnu.attributes -R .reginfo -x" \ + STRIP_KMOD="$(SCRIPT_DIR)/strip-kmod.sh" \ $(SCRIPT_DIR)/rstrip.sh endif