-
Notifications
You must be signed in to change notification settings - Fork 8
Combine CMake Build System #237
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
84e659d
esp_idf: add cmake check for zcbor submodule
szczys 98e39e7
esp_idf: drop erroneous CONFIG_MBEDTLS_PSA_CRYPTO_C from ble_gatt sample
szczys f82498a
zephyr: add --sysbuild to http_client build example for frdm_rw612
szczys 28480f3
zephyr: remove unused wifi callback for frdm_rw612 in examples
szczys 0dfad0f
kconfig: add POUCH_TRANSPORT_SAR
szczys eaef3d8
esp_idf: remove unnecessary pouch.h include from http client header
szczys 492dbbe
treewide: consolidate build system using standard cmake
szczys ce78eae
esp_idf: treat the unit tests as a component
szczys 326c779
zephyr: drop duplicated server certificate Kconfig symbols
szczys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # Copyright (c) 2026 Golioth, Inc. | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| function(pouch_config_enabled out_var config_name) | ||
| if(DEFINED ${config_name}) | ||
| if(${config_name} OR "${${config_name}}" STREQUAL "y") | ||
| set(${out_var} TRUE PARENT_SCOPE) | ||
| return() | ||
| endif() | ||
| endif() | ||
|
|
||
| set(${out_var} FALSE PARENT_SCOPE) | ||
| endfunction() | ||
|
|
||
| function(pouch_validate_config) | ||
| pouch_config_enabled(_pouch_encryption_saead CONFIG_POUCH_ENCRYPTION_SAEAD) | ||
| if(NOT _pouch_encryption_saead) | ||
| return() | ||
| endif() | ||
|
|
||
| pouch_config_enabled(_pouch_validate_cert CONFIG_POUCH_VALIDATE_SERVER_CERT) | ||
| if(NOT _pouch_validate_cert) | ||
| message(WARNING " \n" | ||
| " ************************************************\n" | ||
| " Pouch server certificate validation is disabled.\n" | ||
| " Do not use this in production.\n" | ||
| " ************************************************") | ||
| endif() | ||
|
|
||
| pouch_config_enabled(_pouch_psa_p256m CONFIG_MBEDTLS_PSA_P256M_DRIVER_ENABLED) | ||
| if(_pouch_psa_p256m) | ||
| message(FATAL_ERROR " \n" | ||
| " **************************************************\n" | ||
| " CONFIG_MBEDTLS_PSA_P256M_DRIVER_ENABLED breaks\n" | ||
| " support for the secp384r1 curve, which is required\n" | ||
| " for Pouch. Disable this option in sdkconfig\n" | ||
| " **************************************************") | ||
| endif() | ||
| endfunction() | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
In Zephyr we could probably do:
Isn't that the case for ESP-IDF? I just wonder what value does
pouch_config_enabled()bring.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 problem I found is that ESP-IDF sets unselected symbols to
""(empty string):But in Zephyr the symbol is just not present. I added a helper function that differentiates and sets the true/false to deal with the issue.