From 78b10bf7ff83d15619011e897a077ea00704d160 Mon Sep 17 00:00:00 2001 From: kaloz Date: Sun, 6 Aug 2006 10:42:12 +0000 Subject: add XScale support to -ng git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4475 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/image/xscale/Makefile | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'target/image') diff --git a/target/image/xscale/Makefile b/target/image/xscale/Makefile index 52c15a93d..23a064433 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)) -- cgit v1.2.3