aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/image/Makefile
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2014-11-24 14:44:28 +0000
committerJonas Gorski <jogo@openwrt.org>2014-11-24 14:44:28 +0000
commit5540ca300e5eff94f2df37ce48da8b801f947bb7 (patch)
tree44a8f3db1630b5f1b3aa5b4976108980a51032ef /target/linux/brcm63xx/image/Makefile
parent89000dea4cb73def05c1973909bb339b8f889db0 (diff)
downloadupstream-5540ca300e5eff94f2df37ce48da8b801f947bb7.tar.gz
upstream-5540ca300e5eff94f2df37ce48da8b801f947bb7.tar.bz2
upstream-5540ca300e5eff94f2df37ce48da8b801f947bb7.zip
brcm63xx: Add DT support for DV-201AMR
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 43361
Diffstat (limited to 'target/linux/brcm63xx/image/Makefile')
-rwxr-xr-xtarget/linux/brcm63xx/image/Makefile36
1 files changed, 26 insertions, 10 deletions
diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile
index 89eefa3ca7..fc290c6606 100755
--- a/target/linux/brcm63xx/image/Makefile
+++ b/target/linux/brcm63xx/image/Makefile
@@ -57,6 +57,13 @@ define Image/Build/CFEDTB
$(7) $(8) $(9) $(10)
endef
+define Image/Build/OLDCFEDTB
+ $(TOPDIR)/scripts/brcmImage.pl -t -p \
+ -b $(3) -c $(4) -e $(KERNEL_ENTRY) -a $(LOADADDR) \
+ -k $(KDIR)/vmlinux-$(2).lzma.cfe -r $(KDIR)/root.$(1) \
+ -o $(BIN_DIR)/openwrt-$(5)-$(1)-cfe.bin $(6)
+endef
+
define Image/Build/ZYXCFEDTB
# Generate the tagged image
$(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux-$(2).lzma.cfe -f $(KDIR)/root.$(1) \
@@ -94,14 +101,6 @@ define Image/Build/SPW303V
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) \
- -k $(KDIR)/vmlinux.lzma.cfe \
- -r $(KDIR)/root.$(1) \
- -o $(BIN_DIR)/openwrt-$(2)-$(1)-cfe.bin
-endef
-
define Image/Build/HCS
$(STAGING_DIR_HOST)/bin/hcsmakeimage --magic_byte=$(3) \
--rev_maj=$(4) --rev_min=$(5) --input_file=$(6) \
@@ -198,6 +197,23 @@ endef
# $(3) = boardname
# $(4) = chipid
# $(5) = imagename
+# $(6) = additional options
+define OldCfeImageDTB
+ define Image/Build/$(5)
+ $$(call Image/Build/OLDCFEDTB,$$(1),$(2),$(3),$(4),$(5),$(6))
+ 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
@@ -237,8 +253,6 @@ define Image/Build
# Sagem F@ST2504n
$(call Image/Build/CFE,$(1),F@ST2504n,6362,F@ST2504n,OpenWRT-$(REVISION))
- # Davolink DV201AMR
- $(call Image/Build/CFEOLD,$(1),DV201AMR,6348)
# USR 9108
$(call Image/Build/CFE,$(1),96348GW-A,6348,USR9108)
# NetGear DG834GT, DG834PN
@@ -350,6 +364,8 @@ $(eval $(call CfeImageDTB,DSL274XB_C,dsl-274xb-c,96358GW,6358,DSL274XB-C2))
$(eval $(call CfeImageDTB,DSL274XB_C,dsl-274xb-c,AW4139,6358,DSL274XB-C3))
# D-Link DVA-G3810BN/TL
$(eval $(call CfeImageDTB,DVAG3810BN,dva-g3810bn_tl,96358VW,6358,DVAG3810BN))
+# Davolink DV-201AMR
+$(eval $(call OldCfeImageDTB,DV201AMR,dv-201amr,DV201AMR,6348,DV-201AMR))
# Huawei HG520v
$(eval $(call CfeImageDTB,HG520v,hg520v,HW6358GW_B,6358,HG520v,EchoLife_HG520v))
# Huawei HG553