[openwrt/openwrt] wireguard-tools: allow compiling with MIPS16 instructions

LEDE Commits lede-commits at lists.infradead.org
Sat Aug 1 09:55:23 EDT 2020


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/f2af32c20c7529650858f6804e2bfd35fe706ced

commit f2af32c20c7529650858f6804e2bfd35fe706ced
Author: Rui Salvaterra <rsalvaterra at gmail.com>
AuthorDate: Fri Jul 24 09:02:55 2020 +0100

    wireguard-tools: allow compiling with MIPS16 instructions
    
    The wg utility compiles and runs without issues in MIPS16 mode, despite setting
    PKG_USE_MIPS16:=0 in the makefile. Let's remove this, allowing for a substantial
    size reduction of the wg executable. Since wg is a just a configuration utility,
    it shouldn't be performance-critical, as the crypto heavy-lifting is done on the
    kernel side.
    
    wg sizes for both modes:
    
    MIPS32: 64309 bytes
    MIPS16: 42501 bytes
    
    Signed-off-by: Rui Salvaterra <rsalvaterra at gmail.com>
---
 package/network/utils/wireguard-tools/Makefile | 1 -
 1 file changed, 1 deletion(-)

diff --git a/package/network/utils/wireguard-tools/Makefile b/package/network/utils/wireguard-tools/Makefile
index 3232060bd1..2137a8b4a1 100644
--- a/package/network/utils/wireguard-tools/Makefile
+++ b/package/network/utils/wireguard-tools/Makefile
@@ -22,7 +22,6 @@ PKG_LICENSE:=GPL-2.0
 PKG_LICENSE_FILES:=COPYING
 
 PKG_BUILD_PARALLEL:=1
-PKG_USE_MIPS16:=0
 
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/package-defaults.mk



More information about the lede-commits mailing list