aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar7
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-11-11 16:11:39 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-11-11 16:11:39 +0000
commit697dd7d82fad961e12fbadd877a01fe14486c367 (patch)
tree13c2fdf0505465530a3a5616ac5d9bd8a0869d3d /target/linux/ar7
parent2e8c9209e9e42f5393d5362ae16a174ae1d76cef (diff)
downloadmaster-187ad058-697dd7d82fad961e12fbadd877a01fe14486c367.tar.gz
master-187ad058-697dd7d82fad961e12fbadd877a01fe14486c367.tar.bz2
master-187ad058-697dd7d82fad961e12fbadd877a01fe14486c367.zip
[ar7] generate image for AC49x
Signed-off-by: Daniel Golle <dgolle@allnet.de> Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34149 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar7')
-rw-r--r--target/linux/ar7/image/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/ar7/image/Makefile b/target/linux/ar7/image/Makefile
index 6278b31275..fb42e426e5 100644
--- a/target/linux/ar7/image/Makefile
+++ b/target/linux/ar7/image/Makefile
@@ -67,6 +67,9 @@ define Image/Build/Titan
$(STAGING_DIR_HOST)/bin/mktitanimg -o $(BIN_DIR)/openwrt-$(2)-na-$(4)-code.bin -i $(KDIR)/loader.bin $(KDIR)/root.$(1) -a 0x10000 0x10000 -h 2 -p 0x4D575943 -s 0x0b010000
endef
+define Image/Build/AudioCodes
+ ( dd if=$(KDIR)/vmlinux.elf bs=64k conv=sync ; dd if=$(KDIR)/root.$(1) ) > $(BIN_DIR)/openwrt-$(2)-$(1).bin
+endef
#define Image/Build/sErCoMm
# cat sercomm/adam2.bin "$(BIN_DIR)/$(IMG_PREFIX)-$(1).bin" > "$(KDIR)/dgfw.tmp"
@@ -86,6 +89,7 @@ define Image/Build/Initramfs
$(CP) $(KDIR)/vmlinux.bin $(BIN_DIR)/$(IMG_PREFIX)-initramfs.bin
endef
+ifeq ($(CONFIG_AR7_TI),y)
define Image/Build
dd if=$(KDIR)/loader.bin $(call align/$(1)) > $(BIN_DIR)/$(IMG_PREFIX)-$(1).bin
cat $(KDIR)/root.$(1) >> $(BIN_DIR)/$(IMG_PREFIX)-$(1).bin
@@ -113,5 +117,16 @@ ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
$(call Image/Build/Initramfs)
endif
endef
+endif
+
+ifeq ($(CONFIG_AR7_AC49X),y)
+define Image/Build
+# $(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(1).bin)
+ $(call Image/Build/AudioCodes,$(1),mp202,$(1))
+ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
+ $(call Image/Build/Initramfs)
+endif
+endef
+endif
$(eval $(call BuildImage))