diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2006-08-06 10:42:12 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2006-08-06 10:42:12 +0000 |
commit | 1fc46cb1c470639a2dd3cc43f2e49e513ed225b7 (patch) | |
tree | 6bf8fc23361835ef1e00f7520f69d7c2ab79b281 /target/image/xscale/Makefile | |
parent | 3d9256d633b216fece88eb83157e0c5fb343469f (diff) | |
download | upstream-1fc46cb1c470639a2dd3cc43f2e49e513ed225b7.tar.gz upstream-1fc46cb1c470639a2dd3cc43f2e49e513ed225b7.tar.bz2 upstream-1fc46cb1c470639a2dd3cc43f2e49e513ed225b7.zip |
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/xscale/Makefile')
-rw-r--r-- | target/image/xscale/Makefile | 23 |
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)) |