-
Notifications
You must be signed in to change notification settings - Fork 14
RDK-59955: Bring in Crashupload compiled code #452
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
base: develop
Are you sure you want to change the base?
Changes from 26 commits
ae0e320
740e715
82577fe
4d375b0
c930077
af4b514
512372f
c11c63b
358143d
2dc1758
be7703a
4723744
727b5d3
e1a0e4b
856842b
b956270
575baa5
09ca911
738734b
512ef84
46c2cee
c6b54f2
c3d20cf
39e09bf
dfe61c7
79767f0
bfd23e6
e4ba7e8
d26e0be
bb8701f
7a9c092
08ec59b
96a0361
2010b5f
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,61 +1,93 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SUMMARY = "Crashupload application" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SUMMARY = "Crash Upload Utility for RDK Platforms" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SECTION = "console/utils" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| LICENSE = "Apache-2.0" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| LIC_FILES_CHKSUM = "file://LICENSE;md5=175792518e4ac015ab6696d16c4f607e" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| LIC_FILES_CHKSUM = "file://../LICENSE;md5=175792518e4ac015ab6696d16c4f607e" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PV = "1.0.7" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PR = "r0" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PACKAGE_ARCH = "${MIDDLEWARE_ARCH}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # To have a possibility to override SRC_URI later, we are introducing the following workaround: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CRASHUPLOAD_SRC_URI ?= "${RDK_GENERIC_ROOT_GIT}/crashupload/generic;module=.;protocol=${RDK_GIT_PROTOCOL};branch=${RDK_GIT_BRANCH}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SRCREV = "8e7e22d2cb988ea58b9ba9d85b8b0812c6dc77d2" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SRC_URI = "${CMF_GITHUB_ROOT}/crashupload;${CMF_GITHUB_SRC_URI_SUFFIX};module=." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| S = "${WORKDIR}/git" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SRC_URI = "${CMF_GITHUB_ROOT}/${BPN}.git;nobranch=1;protocol=${CMF_GIT_PROTOCOL}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # SRCREV = "59925c3570c89347a8e05d852401db923337c495" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Topic Work - line with develop | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # SRCREV = "75db8702230bf3100ac790fa50e26cc24d8c5c63" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # topic/RDK-59955 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SRCREV = "4eb66b647e35773da34a61e21c7be98745666dc5" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| S = "${WORKDIR}/git/c_sourcecode" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DEPENDS = "glib-2.0 libsyswrapper" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export LINK = "${LD}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CFLAGS += " \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -I=${libdir}/glib-2.0/include \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -I=${includedir}/glib-2.0 \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| " | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CFLAGS:append = " \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -I=${libdir}/glib-2.0/include \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -I=${includedir}/glib-2.0 \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -DLIBRDKCERTSELECTOR \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+20
to
+23
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -DRFC_API_ENABLED \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -DT2_EVENT_ENABLED \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -DRDK_LOGGER \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -DUSE_EXTENDED_LOGGER_INIT \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| " | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+20
to
+28
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export GLIBS = "-lglib-2.0 -lz" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| export USE_DBUS = "y" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| LDFLAGS += "-Wl,-O1" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| LDFLAGS:append = "-Wl,-O1" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| LDFLAGS:append = "-Wl,-O1" | |
| LDFLAGS:append = " -Wl,-O1" |
Copilot
AI
Jan 16, 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.
LDFLAGS:append should include a leading space before the value to prevent concatenation issues. The value should be ' -Wl,-O1' not '-Wl,-O1'.
| LDFLAGS:append = "-Wl,-O1" | |
| LDFLAGS:append = " -Wl,-O1" |
Copilot
AI
Jan 19, 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.
Missing space before the flags value. The LDFLAGS:append assignment should include a space at the beginning of the string value to ensure proper concatenation. This should be 'LDFLAGS:append = " -Wl,-O1"' with a leading space in the string.
| LDFLAGS:append = "-Wl,-O1" | |
| LDFLAGS:append = " -Wl,-O1" |
Copilot
AI
Jan 20, 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.
Missing space after LDFLAGS:append operator. The line should be "LDFLAGS:append = " with a space before the equals sign for consistency with the line above.
Copilot
AI
Feb 3, 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.
LDFLAGS:append should include a leading space; otherwise the appended value can get glued to the previous token in LDFLAGS, producing an invalid linker argument string. Change to LDFLAGS:append = " -Wl,-O1".
| LDFLAGS:append = "-Wl,-O1" | |
| LDFLAGS:append = " -Wl,-O1" |
Copilot
AI
Jan 19, 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.
Potential build dependency mismatch. The LDFLAGS on line 38 reference libraries (-lrfcapi, -ltelemetry_msgsender, -lRdkCertSelector, -lrdkconfig) that are provided by dependencies only added in DEPENDS:append:client (lines 42-53). If these libraries are only needed for client builds, the LDFLAGS should also be scoped with :client override like 'LDFLAGS:append:client'. Otherwise, builds for non-client configurations may fail due to missing libraries.
| LDFLAGS:append = " -lrfcapi -ltelemetry_msgsender -lRdkCertSelector -lrdkconfig" | |
| LDFLAGS:append:client = " -lrfcapi -ltelemetry_msgsender -lRdkCertSelector -lrdkconfig" |
Copilot
AI
Jan 19, 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.
Missing space before the equals sign. Line 37 has "LDFLAGS:append =" while line 38 has "LDFLAGS:append =". The inconsistency should be fixed - both should follow the same pattern with a space before the equals sign for readability.
| LDFLAGS:append = "-Wl,-O1" | |
| LDFLAGS:append = " -lrfcapi -ltelemetry_msgsender -lRdkCertSelector -lrdkconfig" | |
| LDFLAGS:append = "-Wl,-O1 -lrfcapi -ltelemetry_msgsender -lRdkCertSelector -lrdkconfig" |
Copilot
AI
Feb 3, 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.
CFLAGS:append and LDFLAGS:append enable RFC/Telemetry/RdkCertSelector features and link against -lrfcapi -ltelemetry_msgsender -lRdkCertSelector -lrdkconfig unconditionally, but the corresponding build dependencies are only added under DEPENDS:append:client. Since the recipe now inherits autotools, the compile/link steps will run for all overrides (including broadband) and can fail due to missing headers/libs in the sysroot. Either (a) move these feature defines and link flags under :client, or (b) add the required DEPENDS for all variants, or (c) explicitly disable the autotools build tasks for non-client variants if they only need the scripts/services.
Copilot
AI
Jan 20, 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 'pkgconfig' is added to the inherit line but there's no clear indication in this diff that pkg-config functionality is being utilized. If this is needed for the new dependencies, ensure that it's actually required. Otherwise, this should be removed to avoid unnecessary inheritance.
| inherit autotools systemd coverity pkgconfig | |
| inherit autotools systemd coverity |
Copilot
AI
Jan 23, 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 recipe appends extra libraries to LDFLAGS globally, but the corresponding build dependencies are only added under DEPENDS:append:client. This can make non-client builds (e.g., broadband) fail at link time due to missing -dev sysroot content. Either scope these LDFLAGS additions to :client as well, or move the required deps out of the :client override so all builds have the needed libraries.
Copilot
AI
Jan 23, 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.
LDFLAGS unconditionally adds -lrfcapi -ltelemetry_msgsender -lRdkCertSelector -lrdkconfig, but the providers for these libraries are only present in DEPENDS:append:client. This will likely break builds for non-client overrides (e.g., broadband) during link. Make the deps and flags consistent by either moving the required recipes into the base DEPENDS or gating the LDFLAGS additions (and related CFLAGS feature defines) with the same override.
Copilot
AI
Jan 21, 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 DEPENDS variable lists 'libsyswrapper' twice: once on line 24 as a base dependency and again on line 49 in the client-specific dependencies. This duplication is unnecessary and should be removed from one location.
| libsyswrapper \ |
Copilot
AI
Jan 19, 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.
Inconsistent indentation with mixed tabs and spaces. The DEPENDS:append:client section uses a mix of tabs and spaces for indentation. Please use consistent indentation throughout this block to match the project's style.
| curl \ | |
| openssl \ | |
| zlib \ | |
| libarchive \ | |
| libsyswrapper \ | |
| rdk-logger \ | |
| commonutilities \ | |
| rdkcertconfig \ | |
| rfc \ | |
| telemetry \ | |
| " | |
| curl \ | |
| openssl \ | |
| zlib \ | |
| libarchive \ | |
| libsyswrapper \ | |
| rdk-logger \ | |
| commonutilities \ | |
| rdkcertconfig \ | |
| rfc \ | |
| telemetry \ | |
| " |
Copilot
AI
Jan 19, 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.
Inconsistent whitespace formatting. The DEPENDS block uses tabs instead of spaces, which is inconsistent with standard BitBake style conventions. All indentation should use consistent spacing.
Copilot
AI
Jan 20, 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.
Inconsistent indentation with tabs used here. The formatting should be consistent with the rest of the file using spaces.
Copilot
AI
Jan 21, 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.
Inconsistent whitespace: mixing tabs and spaces for indentation in the DEPENDS:append:client block. Lines should use consistent indentation (either all tabs or all spaces). This affects readability and maintainability.
| curl \ | |
| openssl \ | |
| zlib \ | |
| libarchive \ | |
| libsyswrapper \ | |
| rdk-logger \ | |
| commonutilities \ | |
| rdkcertconfig \ | |
| rfc \ | |
| telemetry \ | |
| " | |
| curl \ | |
| openssl \ | |
| zlib \ | |
| libarchive \ | |
| libsyswrapper \ | |
| rdk-logger \ | |
| commonutilities \ | |
| rdkcertconfig \ | |
| rfc \ | |
| telemetry \ | |
| " |
Copilot
AI
Jan 20, 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 FILES variable should use the append operator consistently. Line 88 uses "FILES:${PN}:append:client" while line 89 uses "FILES:${PN}:append". Consider whether line 88 should also follow the pattern or if these are intentionally different scopes.
Copilot
AI
Jan 19, 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 FILES variable assignment pattern is inconsistent. Lines 97-99 use FILES:${PN}:append multiple times to add different files, which will work but is not the typical pattern. Consider combining all file paths into a single assignment or using a more standard pattern with proper spacing for better readability.
| FILES:${PN}:append = " ${base_libdir}/rdk/uploadDumps.sh" | |
| FILES:${PN}:append = " ${base_libdir}/rdk/runDumpUpload.sh" | |
| FILES:${PN}:append:broadband = " ${base_libdir}/rdk/uploadDumpsUtils.sh" | |
| FILES:${PN}:append = " ${base_libdir}/rdk/uploadDumps.sh ${base_libdir}/rdk/runDumpUpload.sh" | |
| FILES:${PN}:append:broadband = " ${base_libdir}/rdk/uploadDumpsUtils.sh" |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -3,7 +3,8 @@ LICENSE = "Apache-2.0" | |||
| LIC_FILES_CHKSUM = "file://LICENSE;md5=24691c8ce48996ecd1102d29eab1216e" | ||||
|
|
||||
| # To have a possibility to override SRC_URI later, we are introducing the following workaround: | ||||
| SRCREV = "5c7dfc405cd34da3ab1a1121caf8733ebe35d879" | ||||
| SRCREV = "c325e2589e4bd7b78dd5c713b97b23b523746f97" | ||||
|
|
||||
|
||||
Copilot
AI
Jan 29, 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 SRCREV pin is likely being overridden for RDKB builds by conf/distro/include/rdkb.inc, which sets SRCREV:pn-commonutilities (rdkb.inc:199). If this bump is required for the PR’s behavior, please update the distro override as well; otherwise this change may have no effect in the main build configuration.
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.
License file path changed from "file://LICENSE" to "file://../LICENSE". This suggests the LICENSE file is now one directory level up from the working directory. Verify that this path is correct given that S is now set to "${WORKDIR}/git/c_sourcecode" on line 14, which would make the LICENSE file at "${WORKDIR}/git/LICENSE".