BusyBox ip already provides the required functionality and is enabled by
default. This allows for a very significant image size reduction.

openwrt-ath79-generic-tplink_archer-c6-v2-squashfs-sysupgrade.bin sizes:

Before: 7340820 bytes
After:  7078676 bytes

Exactly 256 kiB saved in the final image.

Signed-off-by: Rui Salvaterra <rsalvate...@gmail.com>
---
 package/network/utils/wireguard-tools/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/utils/wireguard-tools/Makefile 
b/package/network/utils/wireguard-tools/Makefile
index 2137a8b4a1..e7696bb234 100644
--- a/package/network/utils/wireguard-tools/Makefile
+++ b/package/network/utils/wireguard-tools/Makefile
@@ -32,7 +32,7 @@ MAKE_VARS += PLATFORM=linux
 define Package/wireguard-tools
   $(call Package/wireguard/Default)
   TITLE:=WireGuard userspace control program (wg)
-  DEPENDS:=+ip
+  DEPENDS:=+@BUSYBOX_CONFIG_IP +@BUSYBOX_CONFIG_FEATURE_IP_LINK
 endef
 
 define Package/wireguard-tools/description
-- 
2.27.0


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to