Add CMake option for explicitly link library to trusted_storage #186
No reviewers
Labels
No labels
api-spec
bug
CLA requested
CLA valid
compliance
DO NOT MERGE
duplicate
enhancement
feature branch
good first issue
HEADER FORMATTING ISSUE
help wanted
Information
invalid
Jira status: AWAITING REVIEW
Jira status: CLOSED
Jira status: DONE
Jira status: IN PROGRESS
Jira status: IN REVIEW
Jira status: OPEN
Jira status: REOPENED
Jira status: RESOLVED
mirrored
mirror internally
needs: backports
needs: ci
needs: design review
needs: preceding PR
needs: review
needs: work
notabug
open for community contribution
Product Backlog
question
ready for merge
security
stale
type: bug
type: enhancement
type: question
web pages
wontfix
writing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-ARMmbed/mbed-crypto!186
Loading…
Reference in a new issue
No description provided.
Delete branch "psa-storage-and-cmake-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CMake option name: LINK_WITH_TRUSTED_STORAGE
Default value is
ONsince the default of mbedtls forMBEDTLS_PSA_ITS_FILE_Cis using ITS.This PR is based on https://github.com/ARMmbed/mbed-crypto/pull/180 with the addition of one commit. Please merge after it.
The new option assumes
trusted_storagelibrary exist and forcembedcryptolibrary to link with it. Any application/test uses emulated ITS (by definingMBEDTLS_PSA_ITS_FILE_C) should set this option toOFF.@Patater, please review.
@simonqhughes, FYI.
@ -1,6 +1,7 @@option(USE_STATIC_MBEDTLS_LIBRARY "Build mbed TLS static library." ON)This should default to OFF, as most of our Linux systems don't have a trusted_storage library available. On Mbed Linux, this can be changed to ON.
Do we need to link with trusted_storage in Makefile builds as well? Seems odd to only add the possibility to link with trusted_stored for CMake.
I've filed https://github.com/ARMmbed/mbed-crypto/issues/188 for this
@ -1,6 +1,7 @@option(USE_STATIC_MBEDTLS_LIBRARY "Build mbed TLS static library." ON)done
LGTM
lgtm