[PATCH] wireguard-tools: drop the dependency on ip{tiny,full}

Rui Salvaterra rsalvaterra at gmail.com
Tue Jul 28 12:00:27 EDT 2020


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 <rsalvaterra at 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:=+ at BUSYBOX_CONFIG_IP + at BUSYBOX_CONFIG_FEATURE_IP_LINK
 endef
 
 define Package/wireguard-tools/description
-- 
2.27.0




More information about the openwrt-devel mailing list