diff mbox series

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

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

Commit Message

Rui Salvaterra Nov. 5, 2020, 11:37 a.m. UTC
BusyBox ip already provides the required functionality and is enabled by default
in OpenWrt. This patch drops the ip dependency and makes the BusyBox ip required
dependencies explicit, allowing for a significant image size reduction.

openwrt-ath79-generic-ubnt_nanostation-loco-m-squashfs-sysupgrade.bin size:
4588354 bytes (with ip-tiny)
4457282 bytes (with BusyBox ip)

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
v2: take more accurate size measurements, with the same GCC version. (I hadn't
noticed I had also bumped GCC from 9 to 10, which inlines more aggressively.)

 package/network/utils/wireguard-tools/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/package/network/utils/wireguard-tools/Makefile b/package/network/utils/wireguard-tools/Makefile
index a5264a50b4..07258fde98 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
 define Package/wireguard-tools/description