From 68131a8370225e4687700d611eab26298a515d70 Mon Sep 17 00:00:00 2001 From: Abhinavpv28 <162570454+Abhinavpv28@users.noreply.github.com> Date: Fri, 13 Feb 2026 22:53:30 +0530 Subject: [PATCH 1/7] Update Makefile.am --- src/Makefile.am | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 74b5244a..599ad7b0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -12,13 +12,12 @@ remotedebuggerincludedir = $(includedir)/rrd remotedebuggerinclude_HEADERS = rrdCommon.h rrdInterface.h \ rrd_archive.h rrd_config.h rrd_logproc.h rrd_sysinfo.h rrd_upload.h -remotedebugger_SOURCES = rrdMain.c rrdEventProcess.c rrdJsonParser.c rrdRunCmdThread.c rrdCommandSanity.c rrdDynamic.c rrdExecuteScript.c rrdMsgPackDecoder.c rrdInterface.c uploadRRDLogs.c rrd_config.c rrd_sysinfo.c rrd_logproc.c rrd_archive.c rrd_upload.c - +remotedebugger_SOURCES = rrdMain.c rrdEventProcess.c rrdJsonParser.c rrdRunCmdThread.c rrdCommandSanity.c rrdDynamic.c rrdExecuteScript.c rrdMsgPackDecoder.c rrdInterface.c remotedebugger_CFLAGS = -I$(top_srcdir)/include/rrd -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/trower-base64/ -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/rbus/ -I$(PKG_CONFIG_SYSROOT_DIR)${includedir} $(CJSON_CFLAGS) AM_LDFLAGS="-lpthread -lrdkloggers -lmsgpackc -ltrower-base64 -lwebconfig_framework -lrbus -lsecure_wrapper " remotedebugger_LDADD = -lfwutils -luploadstblogs -lz if IARMBUS_ENABLE -remotedebugger_SOURCES += rrdIarmEvents.c +remotedebugger_SOURCES += rrdIarmEvents.c uploadRRDLogs.c rrd_config.c rrd_sysinfo.c rrd_logproc.c rrd_archive.c rrd_upload.c remotedebugger_CFLAGS += -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/rdk/iarmbus/ -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/rdk/iarmmgrs/rdmmgr -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/rdk/iarmmgrs-hal -DIARMBUS_SUPPORT AM_LDFLAGS += "-lIARMBus -lrfcapi -ltr181api" endif From 20cc3292cd552c1243db017053b66d8e5ffcea0e Mon Sep 17 00:00:00 2001 From: Abhinavpv28 <162570454+Abhinavpv28@users.noreply.github.com> Date: Fri, 13 Feb 2026 23:10:56 +0530 Subject: [PATCH 2/7] Update rrdExecuteScript.c --- src/rrdExecuteScript.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/rrdExecuteScript.c b/src/rrdExecuteScript.c index 102c22ec..0c5c2f11 100644 --- a/src/rrdExecuteScript.c +++ b/src/rrdExecuteScript.c @@ -18,6 +18,7 @@ */ #include "rrdExecuteScript.h" +#define RRD_SCRIPT "/lib/rdk/uploadRRDLogs.sh" #if !defined(GTEST_ENABLE) #include "secure_wrapper.h" #endif @@ -38,6 +39,7 @@ int uploadDebugoutput(char *outdir, char *issuename) if(outdir != NULL && issuename != NULL) { normalizeIssueName(issuename); +#ifdef IARMBUS_SUPPORT RDK_LOG(RDK_LOG_INFO,LOG_REMDEBUG,"[%s:%d]: Starting Upload Debug output via API... \n",__FUNCTION__,__LINE__); ret = rrd_upload_orchestrate(outdir, issuename); @@ -49,6 +51,13 @@ int uploadDebugoutput(char *outdir, char *issuename) { RDK_LOG(RDK_LOG_INFO,LOG_REMDEBUG,"[%s:%d]: Upload orchestration completed successfully\n",__FUNCTION__,__LINE__); } +#else + RDK_LOG(RDK_LOG_INFO,LOG_REMDEBUG,"[%s:%d]: Starting Upload Debug output Script: %s... \n",__FUNCTION__,__LINE__,RRD_SCRIPT); + if(v_secure_system("%s %s %s",RRD_SCRIPT,outdir,issuename) != 0) + { + ret = 1; + } +#endif } return ret; From 75c59663b6df75f50412da3485f066ecff561d99 Mon Sep 17 00:00:00 2001 From: Abhinavpv28 <162570454+Abhinavpv28@users.noreply.github.com> Date: Fri, 13 Feb 2026 23:53:43 +0530 Subject: [PATCH 3/7] Update rrd_upload.h --- src/rrd_upload.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rrd_upload.h b/src/rrd_upload.h index 96a1a3d5..6eebfcbe 100644 --- a/src/rrd_upload.h +++ b/src/rrd_upload.h @@ -25,8 +25,10 @@ #include #include "rrdCommon.h" #ifndef GTEST_ENABLE +#ifdef IARMBUS_SUPPORT #include #endif +#endif #ifdef __cplusplus extern "C" { From 91679abc60653caba3aa1d2976b92fb6bb7ac285 Mon Sep 17 00:00:00 2001 From: Abhinavpv28 <162570454+Abhinavpv28@users.noreply.github.com> Date: Fri, 13 Feb 2026 23:58:56 +0530 Subject: [PATCH 4/7] Update Makefile.am --- src/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 599ad7b0..14452316 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -21,4 +21,7 @@ remotedebugger_SOURCES += rrdIarmEvents.c uploadRRDLogs.c rrd_config.c rrd_sysin remotedebugger_CFLAGS += -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/rdk/iarmbus/ -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/rdk/iarmmgrs/rdmmgr -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/rdk/iarmmgrs-hal -DIARMBUS_SUPPORT AM_LDFLAGS += "-lIARMBus -lrfcapi -ltr181api" endif -remotedebugger_LDFLAGS = $(AM_LDFLAGS) $(CJSON_LDFLAGS) $(CJSON_LIBS) -luploadstblogs -fno-common +remotedebugger_LDFLAGS = $(AM_LDFLAGS) $(CJSON_LDFLAGS) $(CJSON_LIBS) -fno-common +if IARMBUS_ENABLE +remotedebugger_LDFLAGS += -luploadstblogs +endif From 863b04f033f2337571ab709ba2d59938300b7554 Mon Sep 17 00:00:00 2001 From: Abhinavpv28 <162570454+Abhinavpv28@users.noreply.github.com> Date: Sat, 14 Feb 2026 00:36:19 +0530 Subject: [PATCH 5/7] Update Makefile.am --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 14452316..b0cf88dc 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -15,7 +15,7 @@ remotedebuggerinclude_HEADERS = rrdCommon.h rrdInterface.h \ remotedebugger_SOURCES = rrdMain.c rrdEventProcess.c rrdJsonParser.c rrdRunCmdThread.c rrdCommandSanity.c rrdDynamic.c rrdExecuteScript.c rrdMsgPackDecoder.c rrdInterface.c remotedebugger_CFLAGS = -I$(top_srcdir)/include/rrd -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/trower-base64/ -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/rbus/ -I$(PKG_CONFIG_SYSROOT_DIR)${includedir} $(CJSON_CFLAGS) AM_LDFLAGS="-lpthread -lrdkloggers -lmsgpackc -ltrower-base64 -lwebconfig_framework -lrbus -lsecure_wrapper " -remotedebugger_LDADD = -lfwutils -luploadstblogs -lz +remotedebugger_LDADD = -lfwutils -lz if IARMBUS_ENABLE remotedebugger_SOURCES += rrdIarmEvents.c uploadRRDLogs.c rrd_config.c rrd_sysinfo.c rrd_logproc.c rrd_archive.c rrd_upload.c remotedebugger_CFLAGS += -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/rdk/iarmbus/ -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/rdk/iarmmgrs/rdmmgr -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/rdk/iarmmgrs-hal -DIARMBUS_SUPPORT From ebc6d6419d409db6995ef964199c5da014e78c76 Mon Sep 17 00:00:00 2001 From: nhanasi Date: Mon, 16 Feb 2026 14:07:30 -0500 Subject: [PATCH 6/7] Update Makefile.am --- src/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index b0cf88dc..cdc20a9e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -15,7 +15,7 @@ remotedebuggerinclude_HEADERS = rrdCommon.h rrdInterface.h \ remotedebugger_SOURCES = rrdMain.c rrdEventProcess.c rrdJsonParser.c rrdRunCmdThread.c rrdCommandSanity.c rrdDynamic.c rrdExecuteScript.c rrdMsgPackDecoder.c rrdInterface.c remotedebugger_CFLAGS = -I$(top_srcdir)/include/rrd -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/trower-base64/ -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/rbus/ -I$(PKG_CONFIG_SYSROOT_DIR)${includedir} $(CJSON_CFLAGS) AM_LDFLAGS="-lpthread -lrdkloggers -lmsgpackc -ltrower-base64 -lwebconfig_framework -lrbus -lsecure_wrapper " -remotedebugger_LDADD = -lfwutils -lz + if IARMBUS_ENABLE remotedebugger_SOURCES += rrdIarmEvents.c uploadRRDLogs.c rrd_config.c rrd_sysinfo.c rrd_logproc.c rrd_archive.c rrd_upload.c remotedebugger_CFLAGS += -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/rdk/iarmbus/ -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/rdk/iarmmgrs/rdmmgr -I$(PKG_CONFIG_SYSROOT_DIR)${includedir}/rdk/iarmmgrs-hal -DIARMBUS_SUPPORT @@ -24,4 +24,5 @@ endif remotedebugger_LDFLAGS = $(AM_LDFLAGS) $(CJSON_LDFLAGS) $(CJSON_LIBS) -fno-common if IARMBUS_ENABLE remotedebugger_LDFLAGS += -luploadstblogs +remotedebugger_LDADD = -lfwutils -lz endif From ec84bc26ca64fe582ea5c38e4b8a4ed073a20085 Mon Sep 17 00:00:00 2001 From: Abhinavpv28 <162570454+Abhinavpv28@users.noreply.github.com> Date: Tue, 17 Feb 2026 12:42:38 +0530 Subject: [PATCH 7/7] Update Makefile.am --- src/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index cdc20a9e..e6e1e128 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -23,6 +23,6 @@ AM_LDFLAGS += "-lIARMBus -lrfcapi -ltr181api" endif remotedebugger_LDFLAGS = $(AM_LDFLAGS) $(CJSON_LDFLAGS) $(CJSON_LIBS) -fno-common if IARMBUS_ENABLE -remotedebugger_LDFLAGS += -luploadstblogs -remotedebugger_LDADD = -lfwutils -lz +remotedebugger_LDFLAGS += -luploadstblogs +remotedebugger_LDADD = -lfwutils -lz -luploadstblogs endif