diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-02-19 00:54:57 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-02-19 00:54:57 +0100 |
commit | 2e10cd9c4378cc3beb3d91d004b8e48e63f0bd57 (patch) | |
tree | 1d54855fbe7b2a4e977c8bf3a144f6b488bf4392 /target/h8300/Makefile | |
parent | c477b96e2be62a23ed2473bb92a3c840c3bf92d3 (diff) |
more h8300 work, add u-boot
Diffstat (limited to 'target/h8300/Makefile')
-rw-r--r-- | target/h8300/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/target/h8300/Makefile b/target/h8300/Makefile index 6c0add73e..48a8b1e52 100644 --- a/target/h8300/Makefile +++ b/target/h8300/Makefile @@ -6,10 +6,14 @@ include $(ADK_TOPDIR)/mk/kernel-build.mk include $(ADK_TOPDIR)/mk/image.mk KERNEL:=$(LINUX_DIR)/vmlinux +OSTRIP:=-R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id +ifeq ($(ADK_TARGET_KERNEL_ZIMAGE),y) +KERNEL:=$(LINUX_DIR)/arch/h8300/boot/zImage +OSTRIP:= +endif ifeq ($(ADK_TARGET_KERNEL_VMLINUX_SREC),y) KERNEL:=$(LINUX_DIR)/arch/h8300/boot/vmlinux.srec endif -OSTRIP:=-R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id # target helper text ifeq ($(ADK_TARGET_FS),initramfs) @@ -43,7 +47,11 @@ targethelp: endif kernel-strip: +ifneq ($(OSTRIP),) $(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) |