-
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 12 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,99 @@ | ||||||||||||||||||
| 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 = "c95fc157325595e1f8ff6a9221a25cf427db52ad" | ||||||||||||||||||
|
|
||||||||||||||||||
| S = "${WORKDIR}/git/c_sourcecode" | ||||||||||||||||||
|
|
||||||||||||||||||
| DEPENDS = "glib-2.0 libsyswrapper" | ||||||||||||||||||
|
|
||||||||||||||||||
| export LINK = "${LD}" | ||||||||||||||||||
|
|
||||||||||||||||||
| CFLAGS += " \ | ||||||||||||||||||
| CFLAGS:append = " \ | ||||||||||||||||||
| -I=${libdir}/glib-2.0/include \ | ||||||||||||||||||
| -I=${includedir}/glib-2.0 \ | ||||||||||||||||||
| -DLIBRDKCERTSELECTOR \ | ||||||||||||||||||
| -DRFC_API_ENABLED \ | ||||||||||||||||||
| " | ||||||||||||||||||
| #-DT2_EVENT_ENABLED \ | ||||||||||||||||||
| #" | ||||||||||||||||||
|
||||||||||||||||||
| #-DT2_EVENT_ENABLED \ | |
| #" |
Outdated
Copilot
AI
Jan 13, 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.
Commented out code should be removed. Lines 26-27 contain commented out preprocessor definitions that should either be uncommented if needed, or removed to improve code maintainability.
| #-DT2_EVENT_ENABLED \ | |
| #" |
Copilot
AI
Jan 13, 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 operator. The LDFLAGS append operation is missing the colon separator between append and the equals sign. This should be LDFLAGS:append = "-Wl,-O1" to match the pattern used elsewhere in the file (like line 20 with CFLAGS:append).
| 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" |
Outdated
Copilot
AI
Jan 13, 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 uses += operator instead of :append. Line 32 uses LDFLAGS:append while line 34 uses LDFLAGS +=. This inconsistency could lead to different behavior. The :append operator is preferred in modern Yocto/BitBake as it defers evaluation and avoids whitespace issues. Consider using LDFLAGS:append consistently.
| LDFLAGS += "-lrfcapi -ltelemetry_msgsender" | |
| LDFLAGS:append = " -lrfcapi -ltelemetry_msgsender" |
Outdated
Copilot
AI
Jan 13, 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.
Commented out code should be removed. Lines 45-50 contain commented out configuration blocks (HDD_ENABLE and HDD_DISABLE) that should either be implemented using proper conditional logic if needed, or removed to improve code maintainability.
| #HDD_ENABLE | |
| LOGROTATE_SIZE_crashupload="128000" | |
| LOGROTATE_ROTATION_crashupload="3" | |
| #HDD_DISABLE | |
| LOGROTATE_SIZE_crashupload="128000" | |
| LOGROTATE_ROTATION_crashupload="3" |
Outdated
Copilot
AI
Jan 13, 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 for dependencies. The DEPENDS:append:client section uses tabs for indentation while the rest of the file appears to use spaces. This should be consistent with the indentation style used elsewhere in the file.
Outdated
Copilot
AI
Jan 14, 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 and spaces. Lines 53, 55-58 use tabs while lines 54, 56 use spaces. This should be consistent with the rest of the file for maintainability.
Outdated
Copilot
AI
Jan 13, 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.
RDEPENDS placement creates duplication. Line 63 adds RDEPENDS:${PN} with "busybox commonutilities telemetry", but this duplicates the "busybox" dependency that was previously at the end of the file. The consolidated RDEPENDS should be placed in one location to avoid confusion and potential conflicts.
| RDEPENDS:${PN} += "busybox commonutilities telemetry" | |
| RDEPENDS:${PN} += "commonutilities telemetry" |
Outdated
Copilot
AI
Jan 13, 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. Line 68 uses tabs while most other lines in the do_install section use spaces. This should be consistent with the surrounding indentation style.
| install -m 0755 ${WORKDIR}/git/runDumpUpload.sh ${D}${base_libdir}/rdk | |
| install -m 0755 ${WORKDIR}/git/runDumpUpload.sh ${D}${base_libdir}/rdk |
Outdated
Copilot
AI
Jan 13, 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. Line 92 uses tabs while the rest of the SYSTEMD_SERVICE assignment uses spaces. This should be consistent with the surrounding indentation style.
| " | |
| " |
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" |
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".