From 8f7bd4ef67013e3f94f91e0c5be4e2dc950d5bae Mon Sep 17 00:00:00 2001 From: Giulio Benetti Date: Tue, 21 Nov 2023 18:33:18 +0100 Subject: [PATCH] package/rtl8189es: en/disable runtime debug according to BR2_ENABLE_RUNTIME_DEBUG Signed-off-by: Giulio Benetti Signed-off-by: Thomas Petazzoni --- package/rtl8189es/rtl8189es.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/rtl8189es/rtl8189es.mk b/package/rtl8189es/rtl8189es.mk index 17d76aceb7..8bac0a125f 100644 --- a/package/rtl8189es/rtl8189es.mk +++ b/package/rtl8189es/rtl8189es.mk @@ -14,6 +14,10 @@ RTL8189ES_MODULE_MAKE_OPTS = \ KSRC=$(LINUX_DIR) \ USER_EXTRA_CFLAGS="-Wno-error" +ifeq ($(BR2_ENABLE_RUNTIME_DEBUG),) +RTL8189ES_MODULE_MAKE_OPTS += CONFIG_RTW_DEBUG=n +endif + define RTL8189ES_LINUX_CONFIG_FIXUPS $(call KCONFIG_ENABLE_OPT,CONFIG_NET) $(call KCONFIG_ENABLE_OPT,CONFIG_WIRELESS)