Optimized build for the TP-Link C2600 / Netgear R7x00 / Linksys EA8500 / Zyxel Armor Z2

By the way, just as a suggestion, luci-app-advanced-reboot does make sense on the ea8500 (and the nbg6817), this can be added easily just for the affected devices by enabling TARGET_PER_DEVICE_ROOTFS.

As you seem to build for most ipq806x devices anyways, the nbg6817 (almost identical to the r7800, just with 4 GB eMMC instead of 128 MB NAND and no SATA port) could be enabled easily (the only additional package that needs to be built would be losetup (enabled by DEVICE_PACKAGES), but thanks to TARGET_PER_DEVICE_ROOTFS, it doesn't clutter the other images).

From 9b50231750ba7412c474b1ea190a1e7a7c369765 Mon Sep 17 00:00:00 2001
From: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Date: Fri, 25 May 2018 22:15:22 +0200
Subject: [PATCH] ipq806x: enable TARGET_PER_DEVICE_ROOTFS and nbg6817 images

Also include luci-app-advanced-reboot for the ea8500 and nbg6817.

Drop a duplicate config symbol:
* CONFIG_TARGET_DEVICE_ipq806x_DEVICE_linksys_ea8500

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
---
 profiles/ipq806x | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/profiles/ipq806x b/profiles/ipq806x
index 5579b36cbf..cf73953454 100644
--- a/profiles/ipq806x
+++ b/profiles/ipq806x
@@ -1,11 +1,18 @@
 CONFIG_TARGET_ipq806x=y
 CONFIG_TARGET_MULTI_PROFILE=y
+CONFIG_TARGET_PER_DEVICE_ROOTFS=y
 CONFIG_TARGET_DEVICE_ipq806x_DEVICE_linksys_ea8500=y
-CONFIG_TARGET_DEVICE_ipq806x_DEVICE_linksys_ea8500=y
+CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_DEVICE_linksys_ea8500="luci-app-advanced-reboot"
 CONFIG_TARGET_DEVICE_ipq806x_DEVICE_netgear_r7500=y
+CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_DEVICE_netgear_r7500=""
 CONFIG_TARGET_DEVICE_ipq806x_DEVICE_netgear_r7500v2=y
+CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_DEVICE_netgear_r7500v2=""
 CONFIG_TARGET_DEVICE_ipq806x_DEVICE_netgear_r7800=y
+CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_DEVICE_netgear_r7800=""
 CONFIG_TARGET_DEVICE_ipq806x_DEVICE_tplink_c2600=y
+CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_DEVICE_tplink_c2600=""
+CONFIG_TARGET_DEVICE_ipq806x_DEVICE_zyxel_nbg6817=y
+CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_DEVICE_zyxel_nbg6817="luci-app-advanced-reboot"
 CONFIG_DEVEL=y
 CONFIG_TOOLCHAINOPTS=y
 CONFIG_BUSYBOX_CUSTOM=y
@@ -154,6 +161,7 @@ CONFIG_PACKAGE_libuuid=y
 CONFIG_PACKAGE_lsof=y
 CONFIG_PACKAGE_lua=y
 CONFIG_PACKAGE_luci=y
+CONFIG_PACKAGE_luci-app-advanced-reboot=m
 CONFIG_PACKAGE_luci-app-ddns=y
 CONFIG_PACKAGE_luci-app-dnscrypt-proxy=y
 CONFIG_PACKAGE_luci-app-firewall=y
-- 
2.17.0
1 Like