diff options
author | Jonas Gorski <jogo@openwrt.org> | 2014-11-24 14:44:33 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2014-11-24 14:44:33 +0000 |
commit | c6fc6b42e19a3a4dc6006f038dec98f2e75f59f5 (patch) | |
tree | 37c3776f8b94ea68a0ef2033771399a76cb87be9 /target/linux/brcm63xx/image | |
parent | 5540ca300e5eff94f2df37ce48da8b801f947bb7 (diff) | |
download | upstream-c6fc6b42e19a3a4dc6006f038dec98f2e75f59f5.tar.gz upstream-c6fc6b42e19a3a4dc6006f038dec98f2e75f59f5.tar.bz2 upstream-c6fc6b42e19a3a4dc6006f038dec98f2e75f59f5.zip |
brcm63xx: Add DT support for SPW303V
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
SVN-Revision: 43362
Diffstat (limited to 'target/linux/brcm63xx/image')
-rwxr-xr-x | target/linux/brcm63xx/image/Makefile | 52 |
1 files changed, 34 insertions, 18 deletions
diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile index fc290c6606..f82c864587 100755 --- a/target/linux/brcm63xx/image/Makefile +++ b/target/linux/brcm63xx/image/Makefile @@ -64,6 +64,20 @@ define Image/Build/OLDCFEDTB -o $(BIN_DIR)/openwrt-$(5)-$(1)-cfe.bin $(6) endef +define Image/Build/SPW303VCFEDTB + # Generate the tagged image + $(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux-$(2).lzma.cfe -f $(KDIR)/root.$(1) \ + --output $(BIN_DIR)/openwrt-$(5)-$(1).tmp \ + --boardid $(3) --chipid $(4) --entry $(KERNEL_ENTRY) \ + --load-addr $(LOADADDR) --rsa-signature "$(6)" $(7) + # Fix up header + $(STAGING_DIR_HOST)/bin/spw303v -i $(BIN_DIR)/openwrt-$(5)-$(1).tmp \ + -o $(BIN_DIR)/openwrt-$(5)-$(1)-cfe-sysupgrade.bin + $(STAGING_DIR_HOST)/bin/xorimage -i $(BIN_DIR)/openwrt-$(5)-$(1)-cfe-sysupgrade.bin \ + -o $(BIN_DIR)/openwrt-$(5)-$(1)-cfe-factory.bin + rm -f $(BIN_DIR)/openwrt-$(5)-$(1).tmp +endef + define Image/Build/ZYXCFEDTB # Generate the tagged image $(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux-$(2).lzma.cfe -f $(KDIR)/root.$(1) \ @@ -86,21 +100,6 @@ 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)" \ - --pad 4 $(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/HCS $(STAGING_DIR_HOST)/bin/hcsmakeimage --magic_byte=$(3) \ --rev_maj=$(4) --rev_min=$(5) --input_file=$(6) \ @@ -216,6 +215,24 @@ endef # $(5) = imagename # $(6) = rsa signature # $(7) = additional options +define Spw303vCfeImageDTB + define Image/Build/$(5) + $$(call Image/Build/SPW303VCFEDTB,$$(1),$(2),$(3),$(4),$(5),$(6),$(7)) + endef + + TARGET_Default_DTBS += $(2) + TARGET_Default_IMAGES += $(5) + TARGET_$(1)_DTBS += $(2) + TARGET_$(1)_IMAGES += $(5) +endef + +# $(1) = Profile +# $(2) = dtb +# $(3) = boardname +# $(4) = chipid +# $(5) = imagename +# $(6) = rsa signature +# $(7) = additional options define ZyxCfeImageDTB define Image/Build/$(5) $$(call Image/Build/ZYXCFEDTB,$$(1),$(2),$(3),$(4),$(5),$(6),$(7)) @@ -287,9 +304,6 @@ define Image/Build # Telsey CPVA642-type (e.g. CPA-ZNTE60T) $(call Image/Build/CFE,$(1),CPVA642,6358,CPA-ZNTE60T,,--signature "Telsey Tlc",--signature2 "99.99.999",--second-image-flag "0") - # T-Com Speedport W 303V Typ B - $(call Image/Build/SPW303V,$(1),96358-502V,6358,SPW303V) - # Netgear CVG834G $(call Image/Build/HCS,$(1),cvg834g,a020,0001,0022,$(KDIR)/vmlinux) @@ -381,6 +395,8 @@ $(eval $(call CfeImageDTB,A226G,a226g,DWV-S0,6358,A226G,,--signature2 IMAGE --ta # Pirelli A226M/A226M-FWB $(eval $(call CfeImageDTB,A226M,a226m,DWV-S0,6358,A226M,,--signature2 IMAGE --tag-version 8)) $(eval $(call CfeImageDTB,A226M,a226m-fwb,DWV-S0,6358,A226M-FWB,,--block-size 0x20000 --image-offset 0x20000 --signature2 IMAGE --tag-version 8)) +# T-Com Speedport W 303V Typ B +$(eval $(call Spw303vCfeImageDTB,SPW303V,spw303v,96358-502V,6358,SPW303V,,--pad 4)) # T-Com Speedport W 500V $(eval $(call CfeImageDTB,SPW500V,spw500v,96348GW,6348,SPW500V)) # Tecom GW6000 |