tee/optee_client: Consolidate libteec and optee_supplicant under tee/optee_client #3199
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.
Summary
Both optee_supplicant and libteec are found in the same external source repo (optee_client). optee_supplicant depends on libteec. A Kconfig dependency was in place, but not a makefile dependency.
So far, optee_supplicant would not re-download the optee_client archive (zip), and would expect to find it through libteec. In cases where optee_supplicant's context
contexttarget was invoked before libteec'scontexttarget, the supplicant would not have a rule available to download the archive.Symptom: build-time log
A more straightforward approach is to reflect optee_client file structure in NuttX apps repo, i.e. have an optee_client directory that contains both libteec and the supplicant.
Impact
No change for users. Kconfig semantics are the same (
CONFIG_OPTEE_SUPPLICANTdepends onCONFIG_LIBTEEC). Only change isCONFIG_LIBTEEC_VERSIONandCONFIG_OPTEE_SUPPLICANT_VERSIONare now both controlled byCONFIG_OPTEE_CLIENT_VERSION.The result is a much more straightforward file structure without any out-of-dir dependencies or missing makefile rules.
Testing
Tests performed on an NXP i.MX93 with
imx93-evk:kopteeand:Results: