Skip to content

Commit

Permalink
wireguard-tools: allow compiling with MIPS16 instructions
Browse files Browse the repository at this point in the history
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@gmail.com>
  • Loading branch information
rsalvaterra authored and dangowrt committed Aug 1, 2020
1 parent cd41234 commit f2af32c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion package/network/utils/wireguard-tools/Makefile
Expand Up @@ -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
Expand Down

0 comments on commit f2af32c

Please sign in to comment.