golioth / golioth-zephyr-sdk

Golioth SDK For Zephyr
https://www.golioth.io
Apache License 2.0
65 stars 20 forks source link

Implement GOLIOTH_SAMPLE_FW_VERSION #435

Closed szczys closed 8 months ago

szczys commented 9 months ago

This implements the GOLIOTH_SAMPLE_FW_VERSION symbol for setting the firmware version in the prj.conf file. This matches what we are doing in the Firmware SDK.

Considerations

I tested the DFU sample with these changes on the following boards:

Notable

I don't think this will affect the twister testing. I looked at the approach in the pytest files and it seems that the CONFIG_MCUBOOT_IMAGE_VERSION is being patched directly once the .config file is already generated. However, I have not run the Twister test on these changes.

github-actions[bot] commented 9 months ago

Visit the preview URL for this PR (updated for commit 24addec):

https://golioth-zephyr-sdk-doxygen-dev--pr435-szczys-implement-v4811whw.web.app

(expires Fri, 13 Oct 2023 21:23:52 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a389eefadf4b4b68a539327b3459dd66c142cf49

szczys commented 8 months ago

Since there are already 2 ways (see above) how (application) version can be set, I don't see good enough reason to introduce another way.

Okay, sounds good.