summaryrefslogtreecommitdiff
path: root/target/sh/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-12-07 07:45:07 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-12-07 18:31:58 +0100
commit9a79ea17c1a43534d14ccba203b6d6531ba6fbf8 (patch)
treea8bdbeca7af51de01bfec949f4b164042c32dacf /target/sh/Makefile
parentc27d0b577b90648001bfa047656cc7b722d7736a (diff)
more Numato Mimas v2 J2 bits and bytes
Diffstat (limited to 'target/sh/Makefile')
-rw-r--r--target/sh/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/sh/Makefile b/target/sh/Makefile
index c42d6570a..70df270be 100644
--- a/target/sh/Makefile
+++ b/target/sh/Makefile
@@ -10,6 +10,7 @@ KERNEL:=$(LINUX_DIR)/vmlinux
else
KERNEL:=$(LINUX_DIR)/arch/sh/boot/zImage
endif
+OSTRIP:=-R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id
QEMU_ARGS:=-M r2d
QEMU_ARGS+=${ADK_QEMU_ARGS}
@@ -57,7 +58,11 @@ endif
# image creation and kernel install
kernel-strip:
+ifeq ($(ADK_TARGET_SYSTEM_NUMATO_MIMASV2),y)
+ $(TARGET_CROSS)objcopy $(OSTRIP) -S $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
+else
@cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
+endif
kernel-install: kernel-strip
@cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/${TARGET_KERNEL}