libradcli: fix build options

The provided Config.in was never sourced from the Makefile, making it
impossible to toggle TLS support.

This commit adds the necessary Makefile glue to fix this.

Also default to TLS disabled, as was the de-facto case since Config.in
was never sourced (and thus the default 'y' never enabled).

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
This commit is contained in:
Thibaut VARÈNE
2025-06-13 14:44:46 +02:00
committed by Tianling Shen
parent 4e62e45aba
commit 5ffca82f54
2 changed files with 6 additions and 1 deletions

View File

@@ -5,6 +5,5 @@ menu "Configuration"
config RADCLI_TLS config RADCLI_TLS
bool "enable TLS support" bool "enable TLS support"
default y
endmenu endmenu

View File

@@ -19,6 +19,8 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/radcli-$(PKG_VERSION)
PKG_INSTALL:=1 PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
PKG_CONFIG_DEPENDS := CONFIG_RADCLI_TLS
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define Package/libradcli define Package/libradcli
@@ -37,6 +39,10 @@ define Package/libradcli/decription
compatible with it. compatible with it.
endef endef
define Package/libradcli/config
source "$(SOURCE)/Config.in"
endef
CONFIGURE_ARGS+= \ CONFIGURE_ARGS+= \
--enable-legacy-compat --enable-legacy-compat