From 852d33b281a2fb82435c6517d8c898215d325ba3 Mon Sep 17 00:00:00 2001 From: selvakumar_mr Date: Fri, 19 Apr 2024 12:27:56 +0000 Subject: [PATCH] RDKDEV-1034 Make rdkservices plugin(SystemServices) autostart configurable from recipe Reason for change: Need SystemServices plugin to be made autostart true to reduce the startup delay and aid resident UI for user input handling Test Procedure: Build and verify. Risks: Low Signed-off-by: Selva Kumar MR --- SystemServices/CMakeLists.txt | 1 + SystemServices/SystemServices.conf.in | 2 +- SystemServices/SystemServices.config | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/SystemServices/CMakeLists.txt b/SystemServices/CMakeLists.txt index 1289134161..a4d5b1e756 100644 --- a/SystemServices/CMakeLists.txt +++ b/SystemServices/CMakeLists.txt @@ -18,6 +18,7 @@ set(PLUGIN_NAME SystemServices) set(MODULE_NAME ${NAMESPACE}${PLUGIN_NAME}) +set(PLUGIN_SYSTEM_AUTOSTART false CACHE STRING "To automatically start System plugin.") set(PLUGIN_SYSTEMSERVICE_STARTUPORDER "" CACHE STRING "To configure startup order of SystemServices plugin") find_package(${NAMESPACE}Plugins REQUIRED) diff --git a/SystemServices/SystemServices.conf.in b/SystemServices/SystemServices.conf.in index ead0ed6904..045ad15d60 100644 --- a/SystemServices/SystemServices.conf.in +++ b/SystemServices/SystemServices.conf.in @@ -1,4 +1,4 @@ precondition = ["Platform"] callsign = "org.rdk.System" -autostart = "false" +autostart = "@PLUGIN_SYSTEM_AUTOSTART@" startuporder = "@PLUGIN_SYSTEMSERVICE_STARTUPORDER@" diff --git a/SystemServices/SystemServices.config b/SystemServices/SystemServices.config index 52f450a28a..383ed06049 100644 --- a/SystemServices/SystemServices.config +++ b/SystemServices/SystemServices.config @@ -1,4 +1,4 @@ -set (autostart false) +set (autostart ${PLUGIN_SYSTEM_AUTOSTART}) set (preconditions Platform) set (callsign "org.rdk.System")