Skip to content

Fix ordering in adjust config.sh #13191

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 2 commits into from
Jul 1, 2020

Conversation

dgreen-arm
Copy link
Contributor

Summary of changes

The Mbed TLS config.py script doesn't handle having a configuration being defined in multiples places in it, which a recent change to adjust_config.sh caused. Moving the code additions to be after all the config changes fixes the issues. MBEDTLS_USE_PSA_CRYPTO is also explicitly unset, as it should only be enabled when the appropriate Mbed OS feature flags are enabled.

Impact of changes

Migration actions required

Documentation

None

Pull request type

[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[x] No Tests required for this change (E.g docs only update)
[] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers


The config.py script that adjusts config.h in Mbed TLS doesn't
handle having configurations being defined in it multiple times
very well. As Mbed OS needs to have certain configurations settings
based on what features are set, these code additions to config.h
are moved to being added after the rest of the configuration is
adjusted.
MBEDTLS_USE_PSA_CRYPTO should only be defined in Mbed OS when the
appropriate Mbed OS flags are set.
Copy link
Contributor

@Patater Patater left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@mergify mergify bot added the needs: CI label Jun 25, 2020
@0xc0170 0xc0170 added the release-type: patch Indentifies a PR as containing just a patch label Jun 25, 2020
@0xc0170
Copy link
Contributor

0xc0170 commented Jun 25, 2020

CI started

@mbed-ci
Copy link

mbed-ci commented Jun 25, 2020

Test run: SUCCESS

Summary: 6 of 6 test jobs passed
Build number : 1
Build artifacts

@0xc0170 0xc0170 merged commit 60c94eb into ARMmbed:master Jul 1, 2020
@mergify mergify bot removed the ready for merge label Jul 1, 2020
@adbridge adbridge added release-version: 6.2.0 Release-pending and removed release-type: patch Indentifies a PR as containing just a patch Release-pending labels Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants