-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Support NVS image generation from CMake (IDFGH-10702) #11926
Conversation
Thanks! Could you take a look at another PR #11785? |
Well, looks almost identical although you cant pass a version there. I now also wonder if all the encryption options should be considered...? |
sha=1827a968c29b3dbcc30ede3b0a3082b48081f2af |
Glad the PR got accepted. What about documentation though? I've thought about adding some below the NVS Partition Generator Utility entry. esp-idf/docs/en/api-reference/storage/nvs_flash.rst Lines 90 to 94 in 28167ea
|
Apologies for not continuing my PR, have been on vacation. Either PR is fine of course, I would just mention - I believe the In SPIFFS generation we have to create the image every time as there is no way to have a dependency on an entire directory, but that is not the case here. It is very quick either way so not a major problem, but nice to avoid additional build steps whenever possible. |
You're right, I've copied your version which uses I've also added a some docs. |
Thanks @higaski. For docs: if |
Thanks, updated. |
sha=0edf332062a2254e1aaa4f39158fca4c5bb8a110 |
In the spirit of spiffs_create_partition_image I thought it might be a good idea to create a similar function for NVS storage. In my particular case it releases me from the burden to explicitly check in code if certain settings are either
The API is strongly based on the SPIFFS variant. Users simply pass the partition, the CSV file containing the entries and an optional FLASH_IN_PROJECT parameter to add a dependency to
idf.py flash
.I've used the sample_val.csv file to test this in an example here.
I would also write the documentation for it, but ask for guidelines where the relevant part is desired.
/edit
The english documentation that is, obviously. 😄