summaryrefslogtreecommitdiff
path: root/target/image
diff options
context:
space:
mode:
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-08-06 10:42:12 +0000
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-08-06 10:42:12 +0000
commit78b10bf7ff83d15619011e897a077ea00704d160 (patch)
tree6bf8fc23361835ef1e00f7520f69d7c2ab79b281 /target/image
parent45f139760d2b84ff1a44946fdcbd8fdf3473f8a2 (diff)
add XScale support to -ng
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4475 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/image')
-rw-r--r--target/image/xscale/Makefile23
1 files changed, 19 insertions, 4 deletions
diff --git a/target/image/xscale/Makefile b/target/image/xscale/Makefile
index 52c15a93d0..23a0644338 100644
--- a/target/image/xscale/Makefile
+++ b/target/image/xscale/Makefile
@@ -7,11 +7,26 @@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/image.mk
+define Build/Clean
+endef
+
+define Image/Prepare
+endef
+
+define Image/BuildKernel
+ cp $(LINUX_DIR)/arch/arm/boot/zImage $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-zImage
+endef
+
define Image/Build
-ifneq ($(FS),jffs2-64k)
- cp $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).img
- cp $(KDIR)/vmlinux $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinuz
-endif
+ $(call Image/Build/$(1),$(1))
+endef
+
+define Image/Build/jffs2-64k
+ dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).img bs=65536 conv=sync
+endef
+
+define Image/Build/jffs2-128k
+ dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).img bs=131072 conv=sync
endef
$(eval $(call BuildImage))