summaryrefslogtreecommitdiff
path: root/target/rb532/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'target/rb532/Makefile')
-rw-r--r--target/rb532/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/target/rb532/Makefile b/target/rb532/Makefile
index 9fd876291..f9b05d2d9 100644
--- a/target/rb532/Makefile
+++ b/target/rb532/Makefile
@@ -7,8 +7,11 @@ include $(TOPDIR)/mk/modules.mk
include $(TOPDIR)/mk/kernel-build.mk
include $(TOPDIR)/mk/image.mk
+OSTRIP:=-R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id
+
kernel-install:
- cp $(LINUX_DIR)/vmlinux $(BIN_DIR)/${DEVICE}-${ARCH}-kernel
+ $(KERNEL_CROSS)objcopy $(OSTRIP) -S $(LINUX_DIR)/vmlinux \
+ $(BIN_DIR)/${DEVICE}-${ARCH}-kernel
ifeq ($(FS),ext2-cf)
imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)