aboutsummaryrefslogtreecommitdiff
path: root/package/openvpn
diff options
context:
space:
mode:
authorGravatar Jeroen Roovers <jer@airfi.aero>2017-03-24 08:12:03 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-25 14:57:17 +0100
commit65e6f6ff2adc21f2fea4c0c8bc4dcd9e3b865264 (patch)
treed632fdeb92587b36f3e24625e1fa7e7dd0f117d8 /package/openvpn
parent9ecbe727aa2e5a47bf23687c82afad806d882bb2 (diff)
downloadbuildroot-65e6f6ff2adc21f2fea4c0c8bc4dcd9e3b865264.tar.gz
buildroot-65e6f6ff2adc21f2fea4c0c8bc4dcd9e3b865264.tar.bz2
openvpn: Add explicit support for external lz4
2.4.0 added lz4 support. Make that choice explicit or the bundled compat-lz4 "stub" will be used. Signed-off-by: Jeroen Roovers <jer@airfi.aero> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/openvpn')
-rw-r--r--package/openvpn/Config.in7
-rw-r--r--package/openvpn/openvpn.mk6
2 files changed, 13 insertions, 0 deletions
diff --git a/package/openvpn/Config.in b/package/openvpn/Config.in
index 5fa191d97b..0a1675573a 100644
--- a/package/openvpn/Config.in
+++ b/package/openvpn/Config.in
@@ -14,6 +14,13 @@ config BR2_PACKAGE_OPENVPN
if BR2_PACKAGE_OPENVPN
+config BR2_PACKAGE_OPENVPN_LZ4
+ bool "LZ4 compression"
+ default y
+ select BR2_PACKAGE_LZ4
+ help
+ Enable LZ4 compression.
+
config BR2_PACKAGE_OPENVPN_LZO
bool "LZO compression"
default y
diff --git a/package/openvpn/openvpn.mk b/package/openvpn/openvpn.mk
index a2e21f9dd4..6581a4edd4 100644
--- a/package/openvpn/openvpn.mk
+++ b/package/openvpn/openvpn.mk
@@ -35,6 +35,12 @@ else
OPENVPN_CONF_ENV += IPROUTE=/sbin/ip
endif
+ifeq ($(BR2_PACKAGE_OPENVPN_LZ4),y)
+OPENVPN_DEPENDENCIES += lz4
+else
+OPENVPN_CONF_OPTS += --disable-lz4
+endif
+
ifeq ($(BR2_PACKAGE_OPENVPN_LZO),y)
OPENVPN_DEPENDENCIES += lzo
else