Skip to content

Commit

Permalink
Merge pull request rdkcentral#4706 from adrianM27/main_hibernate_support
Browse files Browse the repository at this point in the history
RDK-43052: RDKShell: Hibernate (Checkpoint) support
  • Loading branch information
anand-ky authored Dec 6, 2023
2 parents 7647a1b + 0126916 commit b6cd04c
Show file tree
Hide file tree
Showing 5 changed files with 371 additions and 12 deletions.
3 changes: 3 additions & 0 deletions RDKShell/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ All notable changes to this RDK Service will be documented in this file.
* Changes in CHANGELOG should be updated when commits are added to the main or release branches. There should be one CHANGELOG entry per JIRA Ticket. This is not enforced on sprint branches since there could be multiple changes for the same JIRA ticket during development.

* For more details, refer to [versioning](https://github.com/rdkcentral/rdkservices#versioning) section under Main README.
## [1.4.11] - 2023-12-04
### Added
- Added Hibernate and Restore api and Auto Hibernation for suspended native apps

## [1.4.10] - 2023-10-23
### Added
Expand Down
10 changes: 10 additions & 0 deletions RDKShell/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ set(PLUGIN_RDKSHELL_STARTUPORDER "" CACHE STRING "Automatically start RDKShell p

option(PLUGIN_RDKSHELL_READ_MAC_ON_STARTUP "PLUGIN_RDKSHELL_READ_MAC_ON_STARTUP" OFF)
option(PLUGIN_RDKSHELL_DUAL_FTA_SUPPORT "PLUGIN_RDKSHELL_DUAL_FTA_SUPPORT" OFF)
option(PLUGIN_HIBERNATESUPPORT "Include hibernate support in the build." OFF)
option(PLUGIN_HIBERNATE_NATIVE_APPS_ON_SUSPENDED "Try to hibernate native apps on suspended." OFF)

find_package(${NAMESPACE}Plugins REQUIRED)
find_package(IARMBus)
Expand Down Expand Up @@ -59,6 +61,14 @@ endif (PLUGIN_RDKSHELL_IGNORE_PS_FLAG_ON_MBFTA)

target_compile_definitions(${MODULE_NAME} PRIVATE MODULE_NAME=Plugin_${PLUGIN_NAME})

if(PLUGIN_HIBERNATESUPPORT)
target_compile_definitions(${MODULE_NAME} PRIVATE HIBERNATE_SUPPORT_ENABLED=1)
endif()

if(PLUGIN_HIBERNATE_NATIVE_APPS_ON_SUSPENDED)
target_compile_definitions(${MODULE_NAME} PRIVATE HIBERNATE_NATIVE_APPS_ON_SUSPENDED=1)
endif()

target_include_directories(${MODULE_NAME} PRIVATE ../helpers ${IARMBUS_INCLUDE_DIRS} )

set_source_files_properties(RDKShell.cpp PROPERTIES COMPILE_FLAGS "-fexceptions")
Expand Down
Loading

0 comments on commit b6cd04c

Please sign in to comment.