Skip to content

Commit 90b0b9d

Browse files
egalla204rdkcmf-jenkinsdwolaverjthomp007cklu339
authored
rebase (#123)
* Deploy cla action * RDKEMW-7174 : update AMC APP key mapping (#98) * RDKEMW-3409 : move certselector logic into ctrlm-main repo (#102) * RDKEMW-6767: getNetStatus call time out due to SAT download retries (#97) Reason for change: During initial setup, the device is attempting to download the SAT token and timing out, which is holding up the ctrlm message queue processing, which allows BLE pairing to fail Test Procedure: boot and attempt to pair BLE remote, keeping an eye on ctrlm loggging. Look for "CTRLM : ERROR: call_plugin: Thunder call failed <getServiceAccessToken> <11>, attempt 1 of 1" We expect BLE pairing to succeed rather than timeout. If the call_plugin log error occurs and BLE pairing succeed then the code change has been exercised and the issue is resolved. Risks: Low Priority: P1 Signed-off-by: Jason Thomson <jason_thomson@comcast.com> * RDKEMW-7333: remove device from bluez during factory reset (#100) When an RDK device is factory reset, controlMgr will send a message to the remote to also factory reset itself. Once controlMgr gets notified from the remote of a successful RCU factory reset, it needs to be requested to bluez to remove the device. This prevents a connection attempt from happening to the just factory-reset RCU before the RDK device reboots. This connection attempt will prevent the RCU from autopairing during the activation flow after the RDK factory reset. * RDKEMW-7573 : remove ctrlm compile flags (#104) * RDKEMW-7694 : remove ctrlm build flags - CPC, DUNFELL (#105) * RDKEMW-7834 : remove ctrlm build flags - RF4CE_PACKET_ANALYSIS (#107) * RDKEMW-7772 : remove ctrlm build flags - DISABLE_BLE_VOICE (#106) * RDKEMW-7122 : Missing Thunder cflags in ctrlm implemenation (#103) * RDKEMW-7979 : use version/branch from recipe (#109) * RDKEMW-8349 : ctrlm release v1.1.4 (#113) * RDKEMW-8133: Optional param name for voiceSessionRequest (#108) * RDKEMW-8133: Optional param name for voiceSessionRequest Reason for change: Adding optional name param for voiceSessionRequest which is needed to track metadata about voice sessions from various ipcontrol clients Test Procedure: Use VoiceControl voiceSessionRequest method with name param Risks: Low Signed-off-by: Kelvin Lu <Kelvin_Lu@comcast.com> * RDKEMW-8133: Optional param name for voiceSessionRequest Reason for change: remove the required conditional of name Test Procedure: Risks: Signed-off-by: Kelvin Lu <Kelvin_Lu@comcast.com> * RDKEMW-8133: Optional param name for voiceSessionRequest Reason for change: Clean up log messaging Test Procedure: Risks: Signed-off-by: Kelvin Lu <Kelvin_Lu@comcast.com> * RDKEMW-8133: Optional param name for voiceSessionRequest Reason for change: Move obj != NULL block to prevent null dereference Test Procedure: Risks: Signed-off-by: Kelvin Lu <Kelvin_Lu@comcast.com> --------- Signed-off-by: Kelvin Lu <Kelvin_Lu@comcast.com> * RDKEMW-8354: ctrlm-main crash while holding standby during OTA (#115) * RDKEMW-8354: ctrlm-main crash while holding standby during OTA Reason for change: crash due to null reference on repeating timer event Test Procedure: see ticket Risks: low Signed-off-by: Kelvin Lu <Kelvin_Lu@comcast.com> * RDKEMW-8354: ctrlm-main crash on timer Reason for change: add comment for clarity Test Procedure: Risks: Signed-off-by: Kelvin Lu <Kelvin_Lu@comcast.com> --------- Signed-off-by: Kelvin Lu <Kelvin_Lu@comcast.com> * Deploy cla action * Deploy fossid_integration_stateless_diffscan_target_repo action --------- Signed-off-by: Jason Thomson <jason_thomson@comcast.com> Signed-off-by: Kelvin Lu <Kelvin_Lu@comcast.com> Co-authored-by: rdkcmf <github@code.rdkcentral.com> Co-authored-by: dwolaver <44593664+dwolaver@users.noreply.github.com> Co-authored-by: jthomp007c <jason_thomson@cable.comcast.com> Co-authored-by: Kelvin Lu <119349872+klu339@users.noreply.github.com> Co-authored-by: Alan Ryan <20208488+Alan-Ryan@users.noreply.github.com>
1 parent ea3794b commit 90b0b9d

29 files changed

Lines changed: 384 additions & 386 deletions

.github/workflows/cla.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "CLA"
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
actions: write
7+
statuses: write
8+
9+
on:
10+
issue_comment:
11+
types: [created]
12+
pull_request_target:
13+
types: [opened, closed, synchronize]
14+
15+
jobs:
16+
CLA-Lite:
17+
name: "Signature"
18+
uses: rdkcentral/cmf-actions/.github/workflows/cla.yml@v1
19+
secrets:
20+
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ASSISTANT }}

.github/workflows/fossid_integration_stateless_diffscan_target_repo.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
name: Fossid Stateless Diff Scan
22

3-
on: pull_request
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: read
410

511
jobs:
612
call-fossid-workflow:
7-
uses: rdkcentral/build_tools_workflows/.github/workflows/fossid_integration_stateless_diffscan.yml@develop
8-
secrets:
13+
if: ${{ ! github.event.pull_request.head.repo.fork }}
14+
uses: rdkcentral/build_tools_workflows/.github/workflows/fossid_integration_stateless_diffscan.yml@1.0.0
15+
secrets:
916
FOSSID_CONTAINER_USERNAME: ${{ secrets.FOSSID_CONTAINER_USERNAME }}
1017
FOSSID_CONTAINER_PASSWORD: ${{ secrets.FOSSID_CONTAINER_PASSWORD }}
1118
FOSSID_HOST_USERNAME: ${{ secrets.FOSSID_HOST_USERNAME }}

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,26 @@ All notable changes to this project will be documented in this file.
1616

1717
* In the future, generate this file by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1818

19+
## [1.1.4] - 2025-09-17
20+
21+
### Changed
22+
- move certselector logic into ctrlm-main repo (#102)
23+
- use version/branch from recipe (#109)
24+
25+
### Added
26+
- update AMC APP key mapping (#98)
27+
28+
### Fixed
29+
- getNetStatus call time out due to SAT download retries (#97)
30+
- remove device from bluez during factory reset (#100)
31+
- Missing Thunder cflags in ctrlm implemenation (#103)
32+
33+
### Removed
34+
- remove ctrlm compile flags (#104)
35+
- remove ctrlm build flags - CPC, DUNFELL (#105)
36+
- remove ctrlm build flags - RF4CE_PACKET_ANALYSIS (#107)
37+
- remove ctrlm build flags - DISABLE_BLE_VOICE (#106)
38+
1939
## [1.1.3] - 2025-08-19
2040

2141
### Changed

CMakeLists.txt

Lines changed: 26 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ set(CMAKE_BUILD_TYPE Release)
3131
set(CMAKE_NO_SYSTEM_FROM_IMPORTED ON)
3232

3333
# PROJECT
34-
project(ctrlm-main)
34+
project(ctrlm-main VERSION ${CMAKE_PROJECT_VERSION})
3535

3636
# OPTIONS
3737
option(A5000_ENABLE "ES1 A5000 use libse051" OFF)
@@ -42,25 +42,20 @@ option(BLE_ENABLED "Enable BLE" ON)
4242
option(BLE_SERVICES "Enable BLE Services" OFF)
4343
option(BREAKPAD "Enable BREAKPAD" OFF)
4444
option(BUILD_CTRLM_FACTORY "Build Control Factory Test" OFF)
45-
option(CPC "Enable CPC" OFF)
46-
option(DISABLE_BLE_VOICE "Disable BLE voice" OFF)
4745
option(DEEPSLEEP_CLOSE_DB "Deep Sleep Close DB" OFF)
48-
option(DUNFELL_BUILD_SUPPORT "Enable DUNFELL_BUILD_SUPPORT" OFF)
4946
option(ENABLE_NETWORKED_STANDBY_MODE "Enable Networked Standby Mode)" OFF)
5047
option(FACTORY_AUDIO_PLAYBACK "Factory test audio playback" OFF)
5148
option(FACTORY_CUSTOM_AUDIO_ANALYSIS "Factory custom audio analysis" OFF)
5249
option(FDC_ENABLED "Enable FDC" OFF)
53-
option(GIT_BRANCH, "Repository Branch" OFF)
5450
option(IP_ENABLED "Enable IP" OFF)
5551
option(LOCAL_MIC "Local Microphone" OFF)
5652
option(LOCAL_MIC_DISABLE_VIA_PRIVACY "Use Privacy to disable microphone" OFF)
5753
option(MEM_DEBUG "Enable memory debugging" OFF)
5854
option(MEMORY_LOCK "Memory Lock" OFF)
5955
option(MIC_TAP "Enable MIC_TAP" OFF)
6056
option(RF4CE_ENABLED "Enable RF4CE" ON)
61-
option(RF4CE_PACKET_ANALYSIS "Enable RF4CE_PACKET_ANALYSIS" OFF)
6257
option(TELEMETRY_SUPPORT "Enable TELEMETRY_SUPPORT" OFF)
63-
option(THUNDER "Enable THUNDER" OFF)
58+
option(THUNDER "Enable THUNDER" ON)
6459
option(THUNDER_SECURITY "Enable THUNDER_SECURITY" OFF)
6560
option(USE_SAFEC "Use safec" OFF)
6661
option(USE_IARM_POWER_MANAGER "Use IARM Power Manager" OFF)
@@ -84,7 +79,7 @@ set(BEEP_ON_KWD_FILE "NONE" CACHE STRING "Keyword Beep file name")
8479
set(CMAKE_ENABLE_EXPORTS ON)
8580

8681
# EXECUTABLE(S)
87-
add_executable(controlMgr src/ctrlm_config_default.json ctrlm_version_build.h ctrlm_config_default.h ${CMAKE_CURRENT_SOURCE_DIR}/src/ctrlm_config_default.c ${CMAKE_CURRENT_SOURCE_DIR}/src/voice/ipc/ctrlm_voice_ipc_request_type.c)
82+
add_executable(controlMgr src/ctrlm_config_default.json ctrlm_version_build.h ctrlm_config_default.h ${CMAKE_CURRENT_SOURCE_DIR}/src/ctrlm_config_default.c)
8883

8984
if(BUILD_CTRLM_FACTORY)
9085
add_library(ctrlm-fta)
@@ -146,7 +141,7 @@ add_subdirectory(src)
146141

147142
# COMPILER OPTIONS
148143
target_compile_options(controlMgr PUBLIC -fPIC -rdynamic -Wall -Werror)
149-
add_compile_definitions(_REENTRANT _POSIX_C_SOURCE=200809L _GNU_SOURCE SYSTEMD_NOTIFY XR15_704 _REENTRANT)
144+
add_compile_definitions(_REENTRANT _POSIX_C_SOURCE=200809L _GNU_SOURCE _REENTRANT)
150145

151146
target_link_libraries(
152147
controlMgr
@@ -199,25 +194,6 @@ if(ASSERT_ON_WRONG_THREAD)
199194
add_compile_definitions(ASSERT_ON_WRONG_THREAD)
200195
endif()
201196

202-
if(AUTH_ENABLED)
203-
if(EXISTS ${CMAKE_SYSROOT}/usr/lib/libctrlm-hal-certificate.so)
204-
add_compile_definitions(AUTH_ENABLED)
205-
add_compile_definitions(AUTH_ACCOUNT_ID)
206-
add_compile_definitions(AUTH_DEVICE_ID)
207-
add_compile_definitions(AUTH_PARTNER_ID)
208-
add_compile_definitions(AUTH_SAT_TOKEN)
209-
if(AUTH_ACTIVATION_STATUS)
210-
add_compile_definitions(AUTH_ACTIVATION_STATUS)
211-
endif()
212-
#By default disabled but can be enabled
213-
#add_compile_definitions(AUTH_EXPERIENCE)
214-
target_link_libraries(controlMgr ctrlm-hal-certificate)
215-
else()
216-
message(WARNING "ctrlm-hal-certificate library is not provided, disabling authentication")
217-
unset(AUTH_ENABLED)
218-
endif()
219-
endif()
220-
221197
if(BLE_ENABLED)
222198
target_link_libraries(controlMgr BTMgr)
223199
if(BLE_SERVICES)
@@ -231,18 +207,10 @@ if(BREAKPAD)
231207
add_compile_definitions(BREAKPAD_SUPPORT)
232208
endif()
233209

234-
if(CPC_ENABLED)
235-
target_link_libraries(controlMgr ${CTRLM_CPC_LIBRARY})
236-
endif()
237-
238210
if(DEEPSLEEP_CLOSE_DB)
239211
add_compile_definitions(DEEPSLEEP_CLOSE_DB)
240212
endif()
241213

242-
if(DISABLE_BLE_VOICE)
243-
add_compile_definitions(DISABLE_BLE_VOICE)
244-
endif()
245-
246214
if(ENABLE_ASYNC_SRVR_MSG)
247215
add_compile_definitions(SUPPORT_ASYNC_SRVR_MSG)
248216
endif()
@@ -263,10 +231,6 @@ if(IP_ENABLED)
263231
add_compile_definitions(CTRLM_NETWORK_IP CTRLM_IP_HAL_LOG_ENABLED)
264232
endif()
265233

266-
if(THUNDER)
267-
add_compile_definitions(CTRLM_THUNDER)
268-
endif()
269-
270234
if(LOCAL_MIC)
271235
add_compile_definitions(CTRLM_LOCAL_MIC)
272236
if(MIC_TAP)
@@ -306,11 +270,23 @@ if(THUNDER)
306270
if(WPE_FRAMEWORK_PROTO_TRACING)
307271
target_link_libraries(controlMgr WPEFrameworkProtocols WPEFrameworkTracing)
308272
endif()
309-
endif()
310-
311-
if(THUNDER_SECURITY)
312-
add_compile_definitions(THUNDER_SECURITY)
313-
target_link_libraries(controlMgr WPEFrameworkSecurityUtil)
273+
if(THUNDER_SECURITY)
274+
add_compile_definitions(THUNDER_SECURITY)
275+
target_link_libraries(controlMgr WPEFrameworkSecurityUtil)
276+
endif()
277+
if(AUTH_ENABLED)
278+
add_compile_definitions(AUTH_ENABLED)
279+
add_compile_definitions(AUTH_ACCOUNT_ID)
280+
add_compile_definitions(AUTH_DEVICE_ID)
281+
add_compile_definitions(AUTH_PARTNER_ID)
282+
add_compile_definitions(AUTH_SAT_TOKEN)
283+
if(AUTH_ACTIVATION_STATUS)
284+
add_compile_definitions(AUTH_ACTIVATION_STATUS)
285+
endif()
286+
#By default disabled but can be enabled
287+
#add_compile_definitions(AUTH_EXPERIENCE)
288+
target_link_libraries(controlMgr RdkCertSelector)
289+
endif()
314290
endif()
315291

316292
if(USE_IARM_POWER_MANAGER)
@@ -343,15 +319,14 @@ install(FILES ${CMAKE_BINARY_DIR}/ctrlm_config.json.template DESTINATION ${CMAKE
343319
344320
# GENERATED FILES
345321
add_custom_command( OUTPUT ctrlm_version_build.h
346-
COMMAND echo "#define CTRLM_MAIN_VER_MAJOR \"1\"" > ctrlm_version_build.h
347-
COMMAND echo -n "#define CTRLM_MAIN_VER_MINOR \"" >> ctrlm_version_build.h
348-
COMMAND bash -c "echo -n $(git -C ${CMAKE_CURRENT_SOURCE_DIR} rev-list --count 4b825dc642cb6eb9a060e54bf8d69288fbee4904..HEAD) >> ctrlm_version_build.h"
349-
COMMAND git -C ${CMAKE_CURRENT_SOURCE_DIR} diff --quiet || echo -n "++" >> ctrlm_version_build.h
322+
COMMAND echo -n "#define CTRLM_MAIN_BRANCH \"" >> ctrlm_version_build.h
323+
COMMAND git -C ${CMAKE_CURRENT_SOURCE_DIR} branch --all --contains | sed -n -e "s/^\\s*remotes\\/origin\\///" -e "2p" | tr -d "\\n" >> ctrlm_version_build.h
350324
COMMAND echo "\"" >> ctrlm_version_build.h
351-
COMMAND echo "#define CTRLM_MAIN_BRANCH \"${GIT_BRANCH}\"" >> ctrlm_version_build.h
352325
COMMAND echo -n "#define CTRLM_MAIN_COMMIT_ID " >> ctrlm_version_build.h
353326
COMMAND git -C ${CMAKE_CURRENT_SOURCE_DIR} log --format=\"%H\" -n 1 >> ctrlm_version_build.h
354-
COMMAND echo "#define CTRLM_MAIN_VERSION (CTRLM_MAIN_VER_MAJOR \".\" CTRLM_MAIN_VER_MINOR)" >> ctrlm_version_build.h
327+
COMMAND echo -n "#define CTRLM_MAIN_VERSION \"${CMAKE_PROJECT_VERSION}" >> ctrlm_version_build.h
328+
COMMAND git -C ${CMAKE_CURRENT_SOURCE_DIR} diff --quiet || echo -n "++" >> ctrlm_version_build.h
329+
COMMAND echo "\"" >> ctrlm_version_build.h
355330
VERBATIM
356331
)
357332

src/CMakeLists.txt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ target_sources(controlMgr PRIVATE
8181
voice/endpoints/ctrlm_voice_endpoint_ws_nsp.cpp
8282
voice/ipc/ctrlm_voice_ipc_iarm_all.cpp
8383
voice/ipc/ctrlm_voice_ipc_iarm_legacy.cpp
84-
voice/ipc/ctrlm_voice_ipc_request_type.c
8584
)
8685

8786
if(BLE_ENABLED)
@@ -174,16 +173,6 @@ if(RF4CE_ENABLED)
174173
rf4ce/rib/ctrlm_rf4ce_rib.cpp
175174
rf4ce/rib/ctrlm_rf4ce_rib_attr.cpp
176175
)
177-
178-
if(RF4CE_PACKET_ANALYSIS)
179-
target_sources(controlMgr PRIVATE
180-
ctrlm_rf4ce_voice_packet_analysis.cpp
181-
)
182-
else()
183-
target_sources(controlMgr PRIVATE
184-
stubs/stubs_voice_packet_analysis.cpp
185-
)
186-
endif()
187176
endif()
188177

189178
if(TELEMETRY_SUPPORT)
@@ -209,12 +198,14 @@ if(THUNDER)
209198
thunder/plugins/ctrlm_thunder_plugin_system.cpp
210199
ipc/ctrlm_rcp_ipc_iarm_thunder.cpp
211200
voice/ipc/ctrlm_voice_ipc_iarm_thunder.cpp
201+
voice/ipc/ctrlm_voice_ipc_request_type.c
212202
)
213203

214204
if(AUTH_ENABLED)
215205
target_sources(controlMgr PRIVATE
216206
auth/ctrlm_auth.cpp
217207
auth/ctrlm_auth_thunder.cpp
208+
auth/ctrlm_auth_certificate.cpp
218209
auth/ctrlm_thunder_plugin_authservice.cpp
219210
)
220211
endif()

0 commit comments

Comments
 (0)