diff mbox series

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

Message ID 20200728160027.591246-1-rsalvaterra@gmail.com
State New
Headers show
Series wireguard-tools: drop the dependency on ip{tiny,full} | expand

Commit Message

Rui Salvaterra July 28, 2020, 4 p.m. UTC
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@gmail.com>
---
 package/network/utils/wireguard-tools/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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