Skip to content
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

fw_update: add package name Kconfig symbol #711

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

szczys
Copy link
Contributor

@szczys szczys commented Dec 18, 2024

Add Kconfig symbol: CONFIG_GOLIOTH_FW_UPDATE_PACKAGE_NAME

Previously the package name used by the fw_update module was hardcoded in the header file. Make this value configurable so it may be used programmatically at build time.

Copy link

github-actions bot commented Dec 18, 2024

Visit the preview URL for this PR (updated for commit 448a9dd):

https://golioth-firmware-sdk-doxygen-dev--pr711-szczys-kconfig-qb8cij7g.web.app

(expires Tue, 14 Jan 2025 19:32:56 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a9993e61697a3983f3479e468bcb0b616f9a0578

@szczys szczys force-pushed the szczys/kconfig-option-fw-updage-package-name branch from f9046b4 to 6ab9a76 Compare December 18, 2024 19:41
Copy link

github-actions bot commented Dec 18, 2024

Code Coverage

Code Coverage

Package Line Rate Branch Rate Health
include.golioth 75% 50%
port.linux 62% 34%
port.utils 58% 46%
port.zephyr 58% 25%
src 70% 31%
Summary 69% (2712 / 3941) 31% (1121 / 3621)

Copy link

codecov bot commented Dec 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/fw_update.c 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/fw_update.c 0.00% <0.00%> (ø)

... and 4 files with indirect coverage changes

@szczys szczys self-assigned this Dec 19, 2024
default "main"
help
The Package Name used by the Golioth Cloud to indicate the binary to use for device firmware
update. This name must be no more than GOLIOTH_OTA_MAX_PACKAGE_NAME_LEN characters in length.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a static assert to enforce this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great suggestion, thanks!

image

@szczys szczys force-pushed the szczys/kconfig-option-fw-updage-package-name branch 2 times, most recently from 61b8b3d to 1fcd5ac Compare December 31, 2024 16:08
@szczys szczys requested a review from sam-golioth December 31, 2024 18:09
szczys added 2 commits January 7, 2025 13:31
Add GOLIOTH_FW_UPDATE_PACKAGE_NAME kconfig symbol.

Previously the package name used by the fw_update module was hardcoded in
the header file. Make this value configurable so it may be used
programmatically at build time.

Signed-off-by: Mike Szczys <[email protected]>
Initialize status variable during declaration to avoid it being used
uninitialized.

Signed-off-by: Mike Szczys <[email protected]>
@szczys szczys force-pushed the szczys/kconfig-option-fw-updage-package-name branch from 1fcd5ac to 448a9dd Compare January 7, 2025 19:31
@szczys szczys merged commit 4a9caac into main Jan 8, 2025
133 of 137 checks passed
@szczys szczys deleted the szczys/kconfig-option-fw-updage-package-name branch January 8, 2025 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants