From 4045677e7ce7bdd47407cf02dd94817585137bf2 Mon Sep 17 00:00:00 2001 From: andreili Date: Sun, 7 Sep 2025 14:00:31 +0200 Subject: [PATCH] Disable debug into RTL8189ES build. --- config/target_meta.json | 1 + patch/rtl8189fs/disable_debug.patch | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 patch/rtl8189fs/disable_debug.patch diff --git a/config/target_meta.json b/config/target_meta.json index 283082f..efa9980 100644 --- a/config/target_meta.json +++ b/config/target_meta.json @@ -87,6 +87,7 @@ "version": "rtl8189fs", "version_type": "branch", "target": [ "modules", "install" ], + "patch_dir": [ "rtl8189fs" ], "makeopts": "CROSS_COMPILE=%{CROSS_C}% ARCH=arm64 MODDESTDIR=%{out_sh}%/kmods/usr/lib/modules/*/kernel/drivers/net/wireless KSRC=%{common_dir}%/kernel", "artifacts": [] diff --git a/patch/rtl8189fs/disable_debug.patch b/patch/rtl8189fs/disable_debug.patch new file mode 100644 index 0000000..efac126 --- /dev/null +++ b/patch/rtl8189fs/disable_debug.patch @@ -0,0 +1,16 @@ +diff '--color=auto' -Naur a/Makefile b/Makefile +--- a/Makefile 2025-09-07 13:10:25.299355707 +0200 ++++ bMakefile 2025-09-07 13:11:04.562221863 +0200 +@@ -88,10 +88,10 @@ + CONFIG_ICMP_VOQ = n + CONFIG_IP_R_MONITOR = n #arp VOQ and high rate + ########################## Debug ########################### +-CONFIG_RTW_DEBUG = y ++CONFIG_RTW_DEBUG = n + # default log level is _DRV_INFO_ = 4, + # please refer to "How_to_set_driver_debug_log_level.doc" to set the available level. +-CONFIG_RTW_LOG_LEVEL = 4 ++CONFIG_RTW_LOG_LEVEL = 2 + + # enable /proc/net/rtlxxxx/ debug interfaces + CONFIG_PROC_DEBUG = y