summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx/image/Makefile
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2011-05-11 13:34:14 +0000
committerFlorian Fainelli <florian@openwrt.org>2011-05-11 13:34:14 +0000
commit9c8a2d5961589bfb83f27d1afa48f751cf597fc4 (patch)
treef3dcdc4ece73f602278b4f6b3c2e607c77f0af15 /target/linux/brcm63xx/image/Makefile
parentdce13b8c4d79501b6527774da9374592e1e21daf (diff)
downloadmtk-20170518-9c8a2d5961589bfb83f27d1afa48f751cf597fc4.zip
mtk-20170518-9c8a2d5961589bfb83f27d1afa48f751cf597fc4.tar.gz
mtk-20170518-9c8a2d5961589bfb83f27d1afa48f751cf597fc4.tar.bz2
bcm63xx: Add support for the T-Home Speedport W 303V
Add the required board definition, default config and image generation for the T-Home Speedport W 303V Typ B. Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> SVN-Revision: 26878
Diffstat (limited to 'target/linux/brcm63xx/image/Makefile')
-rw-r--r--target/linux/brcm63xx/image/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile
index 144f555..bf292de 100644
--- a/target/linux/brcm63xx/image/Makefile
+++ b/target/linux/brcm63xx/image/Makefile
@@ -87,6 +87,21 @@ define Image/Build/RedBoot
dd if=$(KDIR)/vmlinux.bin.gz of=$(BIN_DIR)/openwrt-$(1)-vmlinux.gz bs=65536 conv=sync
endef
+define Image/Build/SPW303V
+ # Generate the tagged image
+ $(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux.lzma.cfe -f $(KDIR)/root.$(1) \
+ --output $(BIN_DIR)/openwrt-$(4)-$(1)-cfe.bin.tmp \
+ --boardid $(2) --chipid $(3) --entry $(KERNEL_ENTRY) \
+ --load-addr $(LOADADDR) --rsa-signature "$(5)" \
+ $(6) $(7) $(8) $(9)
+ # Fix up header
+ $(STAGING_DIR_HOST)/bin/spw303v -i $(BIN_DIR)/openwrt-$(4)-$(1)-cfe.bin.tmp \
+ -o $(BIN_DIR)/openwrt-$(4)-$(1)-cfe-sysupgrade.bin
+ $(STAGING_DIR_HOST)/bin/xorimage -i $(BIN_DIR)/openwrt-$(4)-$(1)-cfe-sysupgrade.bin \
+ -o $(BIN_DIR)/openwrt-$(4)-$(1)-cfe-factory.bin
+ rm -f $(BIN_DIR)/openwrt-$(4)-$(1)-cfe.bin.tmp
+endef
+
define Image/Build/CFEOLD
$(TOPDIR)/scripts/brcmImage.pl -t -p \
-b $(2) -c $(3) \
@@ -209,6 +224,9 @@ define Image/Build
#HW553
$(call Image/Build/CFEHW553,$(1),HW553,6358,0x20000,HW553)
+
+ # T-Com Speedport W 303V Typ B
+ $(call Image/Build/SPW303V,$(1),96358-502V,6358,SPW303V)
endef
$(eval $(call BuildImage))