-
Notifications
You must be signed in to change notification settings - Fork 41
RDKB-63378 : Set the stackmode for single build #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
03646f5
277bfd6
cbb7650
bbf8774
caf55b3
61d4e3a
8f3b175
7b2887e
4fb9bce
191f811
403ca72
a958768
d0c5765
a524e7a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -21,7 +21,8 @@ AUTOMAKE_OPTIONS = subdir-objects | |||||
| AM_CFLAGS = -I$(top_srcdir)/source/include \ | ||||||
| -I$(top_srcdir)/source/util \ | ||||||
| -I${PKG_CONFIG_SYSROOT_DIR}$(includedir)/dbus-1.0 \ | ||||||
| -I${PKG_CONFIG_SYSROOT_DIR}$(libdir)/dbus-1.0/include | ||||||
| -I${PKG_CONFIG_SYSROOT_DIR}$(libdir)/dbus-1.0/include \ | ||||||
| -I${PKG_CONFIG_SYSROOT_DIR}$(includedir) | ||||||
|
||||||
| -I${PKG_CONFIG_SYSROOT_DIR}$(includedir) | |
| -I${PKG_CONFIG_SYSROOT_DIR}$(includedir) |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,5 +1,5 @@ | ||||||||||||||||||||||||
| /* | ||||||||||||||||||||||||
| * If not stated otherwise in this file or this component's Licenses.txt file the | ||||||||||||||||||||||||
|
Check failure on line 2 in source/scripts/init/src/apply_system_defaults/apply_system_defaults.c
|
||||||||||||||||||||||||
| * following copyright and licenses apply: | ||||||||||||||||||||||||
| * | ||||||||||||||||||||||||
| * Copyright 2015 RDK Management | ||||||||||||||||||||||||
|
|
@@ -59,6 +59,10 @@ | |||||||||||||||||||||||
| #include <cjson/cJSON.h> | ||||||||||||||||||||||||
| #include "safec_lib_common.h" | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| #ifdef _ONESTACK_PRODUCT_REQ_ | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
| #ifdef _ONESTACK_PRODUCT_REQ_ | |
| #ifdef HAVE_ONESTACKUTILS |
Copilot
AI
Feb 5, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The call to onestackutils_override_partnerid_and_set_devicemode does not include any error handling. If this function can fail or return an error code, that return value should be checked and appropriate error handling or logging should be added. If the function has a return value, consider checking it and logging an error if the operation fails.
| onestackutils_override_partnerid_and_set_devicemode(PartnerID); | |
| int os_ret = onestackutils_override_partnerid_and_set_devicemode(PartnerID); | |
| if (os_ret != 0) | |
| { | |
| APPLY_PRINT("%s - ERROR: onestackutils_override_partnerid_and_set_devicemode failed with code %d for PartnerID from HAL: %s\n", | |
| __FUNCTION__, os_ret, PartnerID); | |
| } |
Copilot
AI
Feb 6, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are existing gtests for apply_system_defaults.c, but the new OneStack-specific PartnerID override/devicemode behavior in get_PartnerID isn’t covered. Add a unit test for the OneStack path (e.g., compile tests with the feature macro and provide a stub/mock for onestackutils_override_partnerid_and_set_devicemode) to verify it’s invoked and that the overridden PartnerID is what reaches syscfg.
Copilot
AI
Feb 5, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The call to onestackutils_override_partnerid_and_set_devicemode does not include any error handling. If this function can fail or return an error code, that return value should be checked and appropriate error handling or logging should be added. If the function has a return value, consider checking it and logging an error if the operation fails.
| onestackutils_override_partnerid_and_set_devicemode(PartnerID); | |
| APPLY_PRINT("%s - onestackutils_override_partnerid_and_set_devicemode completed. PartnerID: %s\n", __FUNCTION__, PartnerID); | |
| int rc = onestackutils_override_partnerid_and_set_devicemode(PartnerID); | |
| if (rc != 0) | |
| { | |
| APPLY_PRINT("%s - ERROR: onestackutils_override_partnerid_and_set_devicemode failed with rc=%d for PartnerID: %s\n", __FUNCTION__, rc, PartnerID); | |
| } | |
| else | |
| { | |
| APPLY_PRINT("%s - onestackutils_override_partnerid_and_set_devicemode completed successfully. PartnerID: %s\n", __FUNCTION__, PartnerID); | |
| } |
Copilot
AI
Feb 6, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The OneStack override/devicemode call is duplicated in both the HAL and file-based PartnerID paths. Consider extracting this into a small helper (guarded by the same feature macro) so future changes (logging, error handling, ordering) don’t diverge between the two branches.
Copilot
AI
Feb 5, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line contains trailing whitespace. Remove the trailing whitespace for consistency with coding standards.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AM_CONDITIONAL([ONESTACK_PRODUCT_REQ], ...)only controls automake conditionals; it does not define a C preprocessor symbol. Since the code changes are guarded by#ifdef _ONESTACK_PRODUCT_REQ_, you’ll also need to define that macro whenONESTACK_PRODUCT_REQ=true(e.g.,AS_IF+AC_DEFINE([_ONESTACK_PRODUCT_REQ_], [1], ...), or have the relevant Makefile add-D_ONESTACK_PRODUCT_REQ_).