summaryrefslogtreecommitdiff
path: root/target/arm/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-09-16 03:52:40 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-09-16 03:52:40 +0200
commited7c0c316f29cade934c3d90e1e257675cb0fa4a (patch)
treeba8cdce0e4499d29d93f2fdf4f190f8d44a7bd20 /target/arm/Makefile
parentf83548e0f3b68a10f5396e952d0e35afb799ddf3 (diff)
add support for sharp zaurus (tested on terrier cl-3200)
Diffstat (limited to 'target/arm/Makefile')
-rw-r--r--target/arm/Makefile22
1 files changed, 7 insertions, 15 deletions
diff --git a/target/arm/Makefile b/target/arm/Makefile
index e290fd8e3..9a0fb2459 100644
--- a/target/arm/Makefile
+++ b/target/arm/Makefile
@@ -7,8 +7,14 @@ include $(TOPDIR)/mk/modules.mk
include $(TOPDIR)/mk/kernel-build.mk
include $(TOPDIR)/mk/image.mk
-ZKERNEL:=$(LINUX_DIR)/arch/arm/boot/zImage
+ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM),y)
+KERNEL:=$(LINUX_DIR)/arch/arm/boot/zImage
+else ifeq ($(ADK_TARGET_SYSTEM_SHARP_ZAURUS),y)
+KERNEL:=$(LINUX_DIR)/arch/arm/boot/zImage
+else
KERNEL:=$(LINUX_DIR)/vmlinux
+endif
+
LOADADDR:=0x20008000
ifeq ($(ADK_TARGET_QEMU_ARM_MODEL_SPITZ),y)
@@ -47,11 +53,7 @@ imageinstall: kernel-install $(BIN_DIR)/$(ROOTFSTARBALL)
endif
ifeq ($(ADK_TARGET_FS),archive)
imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
-ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM),y)
- @cp $(ZKERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
-else
@cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
-endif
@echo 'The kernel file is: $(BIN_DIR)/${TARGET_KERNEL}'
@echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM),y)
@@ -61,14 +63,9 @@ ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM),y)
@echo 'qemu-system-arm -M $(MACH) -nographic $(NET) -kernel $(BIN_DIR)/$(TARGET_KERNEL) -hda qemu-${CPU_ARCH}.img'
endif
endif
-endif
ifeq ($(ADK_TARGET_FS),initramfs)
imageinstall: $(BIN_DIR)/$(INITRAMFS)
-ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM),y)
- @cp $(ZKERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
-else
@cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
-endif
@echo 'The kernel file is: $(BIN_DIR)/${TARGET_KERNEL}'
@echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM),y)
@@ -78,15 +75,10 @@ endif
endif
ifeq ($(ADK_TARGET_FS),initramfs-piggyback)
imageinstall: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinitramfs
-ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM),y)
- @cp $(ZKERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
-else
@cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
-endif
@echo 'The kernel+initramfs file is: $(BIN_DIR)/${TARGET_KERNEL}'
ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM),y)
@echo "Start qemu with following command line:"
@echo 'qemu-system-arm -M $(MACH) -nographic $(NET) -kernel $(BIN_DIR)/$(TARGET_KERNEL)'
endif
endif
-endif