summaryrefslogtreecommitdiff
path: root/target/mips/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'target/mips/Makefile')
-rw-r--r--target/mips/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/target/mips/Makefile b/target/mips/Makefile
index 076e9aef7..72d814554 100644
--- a/target/mips/Makefile
+++ b/target/mips/Makefile
@@ -6,6 +6,10 @@ include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
KERNEL:=$(LINUX_DIR)/$(ADK_TARGET_KERNEL)
+ifeq ($(ADK_TARGET_KERNEL_UIMAGE),y)
+KERNEL:=$(LINUX_DIR)/arch/mips/boot/uImage
+endif
+
OSTRIP:=-R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id
QEMU_ARGS:=-M malta
@@ -72,7 +76,11 @@ endif
# image creation and kernel install
kernel-strip:
+ifeq ($(ADK_TARGET_KERNEL_UIMAGE),)
$(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}