Added support for apollolake builds

This commit is contained in:
Andreas Runfalk 2019-03-22 16:11:03 +01:00
parent e163859b38
commit b2c1d37b73
3 changed files with 28 additions and 14 deletions

View File

@ -1,5 +1,6 @@
WIREGUARD_VERSION ?= 0.0.20190227
LIBMNL_VERSION ?= 1.0.4
HAS_MEMNEQ ?= 0
LIBMNL_TAR := libmnl-$(LIBMNL_VERSION).tar.bz2
LIBMNL_DIR := libmnl-$(LIBMNL_VERSION)
@ -39,7 +40,9 @@ $(WIREGUARD_TAR):
# use memneq implementation as it doesn't appear to be included on the D218j.
$(WIREGUARD_DIR)/src/Makefile: $(WIREGUARD_TAR)
tar -xf $(WIREGUARD_TAR)
ifeq ($(HAS_MEMNEQ), 0)
patch $(WIREGUARD_DIR)/src/compat/Kbuild.include $(ROOT_DIR)/memneq.patch
endif
# Build the wg command line tool
$(WG_TARGET): $(LIBMNL_DIR)/src/.libs/libmnl.a $(WIREGUARD_DIR)/src/Makefile

View File

@ -18,20 +18,21 @@ Compatibility list
------------------
The following drives have been tested:
========= ========= =========== ===========================
Model Platform DSM Version Is working?
--------- --------- ----------- ---------------------------
DS114 armada370 *N/A* No (Kernel version too old)
DS115j armada370 *N/A* No (Kernel version too old)
DS213j armada370 *N/A* No (Kernel version too old)
DS213j armada370 *N/A* No (Kernel version too old)
DS214play armada370 *N/A* No (Kernel version too old)
DS214se armada370 *N/A* No (Kernel version too old)
DS216se armada370 *N/A* No (Kernel version too old)
DS218j armada38x 6.2 Yes
DS414slim armada370 *N/A* No (Kernel version too old)
RS214 armada370 *N/A* No (Kernel version too old)
========= ========= =========== ===========================
========= ========== =========== ===========================
Model Platform DSM Version Is working?
--------- ---------- ----------- ---------------------------
DS114 armada370 *N/A* No (Kernel version too old)
DS115j armada370 *N/A* No (Kernel version too old)
DS213j armada370 *N/A* No (Kernel version too old)
DS213j armada370 *N/A* No (Kernel version too old)
DS214play armada370 *N/A* No (Kernel version too old)
DS214se armada370 *N/A* No (Kernel version too old)
DS216se armada370 *N/A* No (Kernel version too old)
DS218j armada38x 6.2 Yes
DS218+ apollolake 6.2 Yes
DS414slim armada370 *N/A* No (Kernel version too old)
RS214 armada370 *N/A* No (Kernel version too old)
========= ========== =========== ===========================
The minimum required kernel version is 3.10. If you have a kernel version lower
than that, WireGuard will not work. You can check your kernel version by

View File

@ -40,6 +40,16 @@ fi
# Disable quit if errors to allow printing of logfiles
set +e
# By default we patch WireGuard to always use include its own memneq
# implemenation. This is required on most NASes, but some of them come with
# built in memneq support. Unless HAS_MEMNEQ is defined we set it for models
# that support it here.
if [ -z ${HAS_MEMNEQ+x} ]; then
if [ "$PACKAGE_ARCH" == "apollolake" ]; then
export HAS_MEMNEQ=1
fi
fi
# Build packages
# -p package arch
# -v DSM version