aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Titouan Christophe <titouan.christophe@railnova.eu>2020-06-02 12:40:10 +0200
committerGravatar Yann E. MORIN <yann.morin.1998@free.fr>2020-06-06 00:26:31 +0200
commitee3c81341807631b176ba4e05e6e473485bc6d7e (patch)
tree48dc47466d12c963dc501ec34eb397dfa7de9cfe
parentcc267d7ab4ad40abeb2780eebcfc97253ec173a2 (diff)
downloadbuildroot-ee3c81341807631b176ba4e05e6e473485bc6d7e.tar.gz
buildroot-ee3c81341807631b176ba4e05e6e473485bc6d7e.tar.bz2
package/redis: add optional support for TLS connections
TLS support is only enabled when BUILD_TLS is set to 'yes'. Anoy other value, as well as empty or not set, will disable TLS. However, for consistency with the rest of the code (e.g. for autotools packages where we use both the --enable and --disable flags), we explcitly pass BUILD_TLS=no. This also avoids an environment variable to leak into the build. Signed-off-by: Titouan Christophe <titouan.christophe@railnova.eu> [yann.morin.1998@free.fr: add and explain the =no case] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
-rw-r--r--package/redis/redis.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/redis/redis.mk b/package/redis/redis.mk
index 1578f97e0d..ae823429b3 100644
--- a/package/redis/redis.mk
+++ b/package/redis/redis.mk
@@ -30,6 +30,13 @@ endif
REDIS_BUILDOPTS = $(TARGET_CONFIGURE_OPTS) \
PREFIX=$(TARGET_DIR)/usr MALLOC=libc
+ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
+REDIS_DEPENDENCIES += libopenssl
+REDIS_BUILDOPTS += BUILD_TLS=yes
+else
+REDIS_BUILDOPTS += BUILD_TLS=no
+endif
+
define REDIS_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(REDIS_BUILDOPTS) -C $(@D)
endef