Fix preprocessor logic for standalone TF-PSA-Crypto #277
Open
bensze01 wants to merge 1 commit from
bensze01/undef into main
pull from: bensze01/undef
merge into: gh-Mbed-TLS:main
gh-Mbed-TLS:main
gh-Mbed-TLS:archive/20261015T005621Z-force/pull/322
gh-Mbed-TLS:archive/20260929T231924Z-rescue/rohankl-arm/mldsa-899-framework
gh-Mbed-TLS:archive/20260929T231924Z-rescue/Thomasdjb/pr/spake2p-9342-public-key-import-export
gh-Mbed-TLS:archive/20260929T231924Z-rescue/gilles-peskine-arm/fork-helper-unit-tests-create-framework
gh-Mbed-TLS:archive/20260929T231924Z-rescue/gilles-peskine-arm/iar-1.1.0-check-names
gh-Mbed-TLS:archive/20260929T231924Z-rescue/gilles-peskine-arm/mbedtls_test_stack_usage-create
gh-Mbed-TLS:archive/20260929T231924Z-rescue/sridhar-design/cert_chain
gh-Mbed-TLS:archive/20260929T231924Z-rescue/JulioLoayzaM/add-fuzzing-seeds
gh-Mbed-TLS:dev/gilles-peskine-arm/generate_test_code-unicode-framework
gh-Mbed-TLS:archive/20260929T231924Z-rescue/tpambor/key-wrap
gh-Mbed-TLS:archive/20260929T231924Z-rescue/gilles-peskine-arm/not-not-grep-framework
gh-Mbed-TLS:archive/20260929T231924Z-rescue/davidhorstmann-arm/add-python-package-update-script
gh-Mbed-TLS:archive/20260929T231924Z-rescue/minosgalanakis/tools/fix-auto-generated-files
gh-Mbed-TLS:framework_mergeback
gh-Mbed-TLS:archive/20260929T231924Z-rescue/bjwtaylor/empty-digest-failure
gh-Mbed-TLS:archive/20260929T231924Z-rescue/asmellby/feature/dispatch-library
gh-Mbed-TLS:archive/20260929T231924Z-rescue/sigvartmh/spake2p-test-framework
gh-Mbed-TLS:archive/20260929T231924Z-rescue/bensze01/component-groups
gh-Mbed-TLS:archive/20260929T231924Z-rescue/bensze01/undef
gh-Mbed-TLS:archive/20260929T231924Z-rescue/gilles-peskine-arm/server9-2048
gh-Mbed-TLS:archive/20260929T231924Z-rescue/gilles-peskine-arm/all.sh-call_stack_trace
gh-Mbed-TLS:archive/20260929T231924Z-rescue/Marandil/fix/mbedtls-4314-test-data
gh-Mbed-TLS:archive/20260929T231924Z-rescue/bensze01/ci-testing-development
gh-Mbed-TLS:archive/20260929T231924Z-rescue/schneider-electric/dev/plaj-se/parse-rsassa-pss
gh-Mbed-TLS:archive/20260929T231924Z-rescue/gilles-peskine-arm/pk_helpers-coverity-20260224
gh-Mbed-TLS:archive/20260929T231924Z-rescue/gilles-peskine-arm/python-scripts-vintage-split-proposal
gh-Mbed-TLS:archive/20260929T231924Z-rescue/davidhorstmann-arm/code-size-measurement-script
gh-Mbed-TLS:archive/20260929T231924Z-rescue/gilles-peskine-arm/sha3-shake-builtin-framework
gh-Mbed-TLS:archive/20260929T231924Z-rescue/mpg/fix-quiet
gh-Mbed-TLS:archive/20260929T231924Z-rescue/TakutoYamane/fix-typo
gh-Mbed-TLS:archive/20260929T231924Z-rescue/rgqsch/feature/csr_challenge_password
gh-Mbed-TLS:archive/20260929T231924Z-rescue/gilles-peskine-arm/make_generated_files-improve-for-3.6
gh-Mbed-TLS:archive/20260929T231924Z-rescue/irwir/lean_and_mean
gh-Mbed-TLS:archive/20260929T231924Z-rescue/gilles-peskine-arm/all.sh-generate-only-before-checks-framework
gh-Mbed-TLS:archive/20260929T231924Z-rescue/gilles-peskine-arm/test-data_t-empty_is_empty-framework
gh-Mbed-TLS:archive/20260929T231924Z-rescue/jean-baptisteboric-eaton/pkcs7_test_artifacts
gh-Mbed-TLS:archive/20260929T231924Z-rescue/gilles-peskine-arm/assemble_changelog-utffromtimestamp
gh-Mbed-TLS:dev/bensze01/public-only-commit
gh-Mbed-TLS:archive/20260929T231924Z-rescue/gilles-peskine-arm/config-py-help-directory-percent-framework
gh-Mbed-TLS:archive/20260929T231924Z-rescue/valeriosetti/issue9255-framework
gh-Mbed-TLS:features/tls-defragmentation
gh-Mbed-TLS:archive/20260929T231924Z-rescue/gilles-peskine-arm/outcome-log-make-3.6-framework
gh-Mbed-TLS:md-psa-dispatch-3.6-framework
gh-Mbed-TLS:archive/20260929T231924Z-rescue/benmcollins/add-rsassa-pss-keys
gh-Mbed-TLS:archive/20260929T231924Z-rescue/BrianSipos/119-add-name-constraints
gh-Mbed-TLS:issue-39-follow-up
gh-Mbed-TLS:revert-84-issue-72
gh-Mbed-TLS:dev/paul-elliott-arm/add_iop_key_agreement_exercise_key
gh-Mbed-TLS:dev/gilles-peskine-arm/psa-storage-test-cases-never-supported-positive-framework
gh-Mbed-TLS:issue-72
gh-Mbed-TLS:issue-39
gh-Mbed-TLS:dev/davidhorstmann-arm/port-psa-exercise-key-changes
gh-Mbed-TLS:dev/davidhorstmann-arm/add-some-test-helpers
gh-Mbed-TLS:archive/20260929T231924Z-rescue/paul-elliott-arm/remove_re_sub_count_positional_arg
gh-Mbed-TLS:dev/mpg/move-all-core-dev
gh-Mbed-TLS:issue-51
gh-Mbed-TLS:dev/gilles-peskine-arm/outcome-check-repeated-configurations-framework
gh-Mbed-TLS:dev/gilles-peskine-arm/generate_config_tests-require_psa
gh-Mbed-TLS:dev/gilles-peskine-arm/analyze_outcome-split-framework
gh-Mbed-TLS:dev/gilles-peskine-arm/config-full-booleans-only-framework
gh-Mbed-TLS:archive/20260929T231924Z-rescue/juhaylinen/disable_allow_abbrev
gh-Mbed-TLS:dev/gilles-peskine-arm/ssl-opt-psk-detection-framework
gh-Mbed-TLS:fix-everst-build
gh-Mbed-TLS:dev/minos/minor/code_wrappers_fix_identation
gh-Mbed-TLS:dev/minos/feature/code_wrappers
gh-Mbed-TLS:dev/davidhorstmann-arm/add-test-helpers
gh-Mbed-TLS:dev/davidhorstmann-arm/add-test-data-files
gh-Mbed-TLS:dev/gilles-peskine-arm/test_suite_config-booleans-framework
gh-Mbed-TLS:dev/ronald-cron-arm/fix-generation-of-psa-test-wrappers
gh-Mbed-TLS:dev/ronald-cron-arm/move-psa-headers
gh-Mbed-TLS:dev/external-contrib-copy/mbedtls-pr-9189
gh-Mbed-TLS:dev/davidhorstmann-arm/add-test-generation-files
gh-Mbed-TLS:dev/davidhorstmann-arm/add-mbedtls-framework-module
gh-Mbed-TLS:dev/davidhorstmann-arm/move-test-code
gh-Mbed-TLS:dev/davidhorstmann-arm/move-scripts
gh-Mbed-TLS:dev/gilles-peskine-arm/create-makefiles
No reviewers
Labels
Clear labels
approved
Design and code approved - may be waiting for CI or backports
bug
Something isn't working
dependencies
Pull requests that update a dependency file
DO-NOT-MERGE
enhancement
New feature or request
good-first-issue
Good for newcomers
help-wanted
This issue is not being actively worked on, but PRs welcome.
historical-reviewed
Reviewed & agreed to keep legacy PR/issue
historical-reviewing
Currently reviewing (for legacy PR/issues)
needs-adoption
stalled PR that someone should pick up and complete
needs-ci
Needs to pass CI tests
needs-design-approval
needs-info
An issue or PR which needs further info from the reporter / author
needs-preceding-pr
Requires another PR to be merged first
needs-review
Every commit must be reviewed by at least two team members.
needs-reviewer
This PR needs someone to pick it up for review
needs-work
priority-high
High priority - will be reviewed soon
priority-low
Low priority - this may not receive review soon
priority-medium
Medium priority - this can be reviewed as time permits
priority-scheduled
This PR is big - it will require time to be scheduled for review
priority-very-high
Highest priority - prioritise this over other review work
single-reviewer
This PR qualifies for having only one reviewer
size-l
Estimated task size: large (2w+)
size-m
Estimated task size: medium (~1w)
size-s
Estimated task size: small (~2d)
size-xs
Estimated task size: extra small (a few hours at most)
No labels
approved
bug
dependencies
DO-NOT-MERGE
enhancement
good-first-issue
help-wanted
historical-reviewed
historical-reviewing
needs-adoption
needs-ci
needs-design-approval
needs-info
needs-preceding-pr
needs-review
needs-reviewer
needs-work
priority-high
priority-low
priority-medium
priority-scheduled
priority-very-high
single-reviewer
size-l
size-m
size-s
size-xs
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
gh-Mbed-TLS/mbedtls-framework!277
Loading…
Reference in a new issue
No description provided.
Delete branch "bensze01/undef"
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?
Description
Fix preprocessor logic for standalone TF-PSA-Crypto
PR checklist
Please add the numbers (or links) of the associated pull requests for consuming branches. You can omit branches where this pull request is not needed.
I can't think of a good reason to write
!defined(MBEDTLS_VERSION_MAJOR). Why would we need to do something special when not building Mbed TLS? If you mean a condition to apply to TF-PSA-Crypto, usedefined(TF_PSA_CRYPTO_VERSION_MAJOR).There are a few places where we are currently using
!defined(MBEDTLS_VERSION_MAJOR). They're left behind from a time when we had alreday made TF-PSA-Crypto a separately testable entity but not yet given it version macros. That was just a planning mistake, and we should be removing those!defined(MBEDTLS_VERSION_MAJOR)and using theTF_PSA_CRYPTO_xxxmacro now.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.