Skip to contentSkip to conversation

openvpn: Add explicit support for external lz4

PATCH New Jeroen Roovers 2 participants 2 messages Mar 24, 2017 – Mar 25, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 package/openvpn/Config.in  | 7 +++++++
 package/openvpn/openvpn.mk | 6 ++++++
 2 files changed, 13 insertions(+)
package/openvpn/Config.in +7 -0
index 5fa191d97..0a1675573 100644
@@ -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
package/openvpn/openvpn.mk +6 -0
index 5e3df59f3..e152eb39a 100644
@@ -36,6 +36,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
Signature · 1 line
2.12.1
#1 lore raw

PATCH 1/1 openvpn: Add explicit support for external lz4

Hello,

Quoted 8 lines · Jeroen Roovers

2.4.0 added lz4 support. Make that choice explicit or the bundled compat-lz4 "stub" will be used.

---
 package/openvpn/Config.in  | 7 +++++++
 package/openvpn/openvpn.mk | 6 ++++++
 2 files changed, 13 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com