ramips: Add profiles for JCG routers
authorJohn Crispin <john@openwrt.org>
Fri, 4 Mar 2016 08:33:12 +0000 (08:33 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 4 Mar 2016 08:33:12 +0000 (08:33 +0000)
This patch adds profiles and support for building factory and
sysupgrade images for JHR-N805R, JHR-N825R and JHR-N926R.

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>
SVN-Revision: 48906

target/linux/ramips/image/Makefile
target/linux/ramips/rt305x/profiles/jcg.mk [new file with mode: 0644]

index 5d90ced2b5e10bfe6bc6770dfac1307cca8192da..eb50cddeaf75b772729f1e76ddc1e1001432766a 100644 (file)
@@ -519,6 +519,20 @@ Image/Build/Profile/CARAMBOLA=$(call BuildFirmware/Default8M/$(1),$(1),carambola
 
 Image/Build/Profile/D105=$(call BuildFirmware/Default4M/$(1),$(1),d105,D105)
 
+define BuildFirmware/JCG/squashfs
+       $(call BuildFirmware/Default4M/$(1),$(1),$(2),$(3))
+       -jcgimage -o $(call imgname,$(1),$(2))-factory.bin \
+               -u $(call sysupname,$(1),$(2)) -v $(4)
+endef
+Image/Build/Profile/JHR-N805R=$(call BuildFirmware/JCG/$(1),$(1),jhr-n805r,JHR-N805R,29.24)
+Image/Build/Profile/JHR-N825R=$(call BuildFirmware/JCG/$(1),$(1),jhr-n825r,JHR-N825R,23.24)
+Image/Build/Profile/JHR-N926R=$(call BuildFirmware/JCG/$(1),$(1),jhr-n926r,JHR-N926R,25.24)
+define Image/Build/Profile/JCG
+       $(call Image/Build/Profile/JHR-N805R,$(1))
+       $(call Image/Build/Profile/JHR-N825R,$(1))
+       $(call Image/Build/Profile/JHR-N926R,$(1))
+endef
+
 define BuildFirmware/DIR300B1/squashfs
        $(call BuildFirmware/Default4M/$(1),$(1),$(2),$(3))
        -mkwrgimg -s $(4) -d /dev/mtdblock/2 \
@@ -792,6 +806,9 @@ define Image/Build/Profile/Default
        $(call Image/Build/Profile/HT-TM02,$(1))
        $(call Image/Build/Profile/HW550-3G,$(1))
        $(call Image/Build/Profile/IP2202,$(1))
+       $(call Image/Build/Profile/JHR-N805R,$(1))
+       $(call Image/Build/Profile/JHR-N825R,$(1))
+       $(call Image/Build/Profile/JHR-N926R,$(1))
        $(call Image/Build/Profile/M2M,$(1))
        $(call Image/Build/Profile/M3,$(1))
        $(call Image/Build/Profile/M4,$(1))
diff --git a/target/linux/ramips/rt305x/profiles/jcg.mk b/target/linux/ramips/rt305x/profiles/jcg.mk
new file mode 100644 (file)
index 0000000..5029ca9
--- /dev/null
@@ -0,0 +1,43 @@
+#
+# Copyright (C) 2011 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/JCG
+       NAME=JCG Routers
+endef
+
+define Profile/JCG/Description
+       Builds images for JHR-N805R, JHR-N825R, and JHR-N926R.
+endef
+$(eval $(call Profile,JCG))
+
+define Profile/JHR-N805R
+       NAME:=JCG JHR-N805R
+endef
+
+define Profile/JHR-N805R/Description
+       Package set for JCG JHR-N805R
+endef
+$(eval $(call Profile,JHR-N805R))
+
+define Profile/JHR-N825R
+       NAME:=JCG JHR-N825R
+endef
+
+define Profile/JHR-N825R/Description
+       Package set for JCG JHR-N825R
+endef
+$(eval $(call Profile,JHR-N825R))
+
+define Profile/JHR-N926R
+       NAME:=JCG JHR-N926R
+endef
+
+define Profile/JHR-N926R/Description
+       Package set for JCG JHR-N926R
+endef
+$(eval $(call Profile,JHR-N926R))
+