X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f9e32614b089b7c666adbb2615b30038353de0cc..4eddfed4b3d2c5afc0dd10662ad7f32808804329:/rules.mk?ds=sidebyside diff --git a/rules.mk b/rules.mk index 474c0e246..79a2a9fa4 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