-
Notifications
You must be signed in to change notification settings - Fork 3k
Update the Mbed TLS README #8259
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
Conversation
Add content missing from the README.md taken from the Yotta/Mbed OS 3 Readme.
This should be reviewed by @RonEld, @Patater and @mpg /or/ @gilles-peskine-arm . |
features/mbedtls/README.md
Outdated
|
||
To import into an instance of Mbed OS a different version of Mbed TLS, a `Makefile` script is provided to update the local git repository, extract a specific version, and to modify the configuration files to those used for the Mbed OS defaults. | ||
|
||
To use the `Makefile`, you can either set `MBED_TLS_RELEASE` environment variable to the git tag or commit id of the Mbed TLS Release or version you want to use, or alternatively you can modify the `Makefile` itself. |
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.
Tag or commit? Not a branch name to get the tip of the branch? Can't I leave it blank to get the default, and would I get the latest release [master], the latest beta [development], or some untested experimental thing [we don't have this]?
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.
I reviewed this and don't have anything to add to existing reviews. I'm happy with the changes in general, but a few details should be fixed/improved.
Numerous changes to language, grammar, and corrections, following review.
d960bad
to
fee476e
Compare
I have responded to all review feedback. Please re-review and approve. |
@AnotherButler Please review |
@MelindaWeed Could you please take this? |
Sure, looking at it now. |
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.
I can apply most of these changes myself.
features/mbedtls/README.md
Outdated
|
||
The [mbed TLS website](https://tls.mbed.org/) contains full documentation for the library, including function by function descriptions, knowledgebase articles, blogs and a support forum for questions to the community. | ||
Several example programs are available that demonstrate the use of Mbed TLS with |
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.
Check these line endings so they render properly.
features/mbedtls/README.md
Outdated
|
||
For example, if you wanted to enable the options, `MBEDTLS_PEM_WRITE_C` and `MBEDTLS_CMAC_C`, and provide your own additional configuration file for Mbed TLS named `my_config.h`, you could define these in a top level `mbed_app.json` configuration file in the root directory of your project. | ||
|
||
The Mbed TLS configuration file would be specified in the `.json` file as follows. |
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.
:
features/mbedtls/README.md
Outdated
|
||
## Getting Mbed TLS from GitHub | ||
|
||
Mbed TLS is maintained and developed in the open, independently of Mbed OS, and its source can be found on GitHub here: [ARMmbed/mbedtls](https://github.com/ARMmbed/mbedtls). To import into an instance of Mbed OS a different version of Mbed TLS, a `Makefile` script is provided to update the local git repository, extract a specific version, and to modify the configuration files to those used for the Mbed OS defaults. |
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.
Git
features/mbedtls/README.md
Outdated
Once these steps are complete, you can make your Mbed OS build normally with the new version of Mbed TLS. | ||
|
||
|
||
## Differences between the standalone and Mbed OS editions |
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.
Just a general comment for myself when I get into the file: take out unnecessary articles.
features/mbedtls/README.md
Outdated
|
||
## Differences between the standalone and Mbed OS editions | ||
|
||
While the two editions share the same code base, there are still a number of differences, mainly in configuration and integration. You should keep in mind those differences when reading some articles in our [knowledge base](https://tls.mbed.org/kb), as currently all the articles are about the standalone edition. |
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.
You should keep those differences in mind if you consult our knowlege base, as these refer to the standalone edition.
features/mbedtls/README.md
Outdated
Help and Support | ||
---------------- | ||
|
||
The [Mbed TLS website](https://tls.mbed.org/) contains full documentation for the library, including function by function descriptions, knowledge base articles and blogs. In addition there is a [support forum](https://forums.mbed.com/c/mbed-tls) for questions to the community. |
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.
function-by-function
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.
Additionally,
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.
Rephrase this as 'you can' statements to grab the reader more.
features/mbedtls/README.md
Outdated
@@ -21,5 +104,4 @@ We gratefully accept bug reports and contributions from the community. There are | |||
- Simple bug fixes to existing code do not contain copyright themselves and we can integrate without issue. The same is true of trivial contributions. | |||
- For larger contributions, such as a new feature, the code can possibly fall under copyright law. We then need your consent to share in the ownership of the copyright. We have a form for this, which we will send to you in case you submit a contribution or pull request that we deem this necessary for. | |||
|
|||
Contributions should be submitted to the [standalone mbed TLS project](https://github.com/ARMmbed/mbedtls), not to the mbed OS imported edition of mbed TLS. | |||
|
|||
Contributions should be submitted to the [standalone Mbed TLS project](https://github.com/ARMmbed/mbedtls), not to the version of Mbed TLS embedded within Mbed OS. |
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.
Submit contributions to...
@melwee01 Any updates? Were you going to copy edit the suggestions, or should @sbutcher-arm ? |
Hmm. Since the OS repo functions differently, it's harder for me to apply changes myself. Probably easier if @sbutcher-arm does it, and asks me if he has any questions. |
Hmmm. @AnotherButler, you're able to copy edit @melwee01 suggestions, correct? |
Should I not make the edits myself @cmonr? |
Please do |
@sbutcher-arm We're just use to seeing the docs team do copy edits on their own. |
Improves the language, formatting and clarity of the Mbed TLS README.md.
I've addressed some of the feedback, and responded to all remaining points. |
@melwee01 @mpg @AnotherButler @RonEld When y'all get a chance. |
I'm making a few additional editorial changes myself (finally know how to do that, yay). |
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.
I've made a number of small changes myself.
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.
One small comment on the default Mbed TLS version being extracted
features/mbedtls/README.md
Outdated
|
||
Mbed TLS is maintained and developed in the open, independently of Mbed OS, and its source can be found on GitHub here: [ARMmbed/mbedtls](https://github.com/ARMmbed/mbedtls). To import a different version of Mbed TLS into an instance of Mbed OS, there is a `Makefile` script to update the local Git repository, extract a specific version, and modify the configuration files to Mbed OS defaults. | ||
|
||
To use the `Makefile`, you can either set `MBED_TLS_RELEASE` environment variable to the Git tag or commit ID of the Mbed TLS release or version you want to use, or modify the `Makefile` itself. If `MBED_TLS_RELEASE` is unset, the HEAD of the main development branch will be extracted. |
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.
If
MBED_TLS_RELEASE
is unset, the HEAD of the main development branch will be extracted.
This is not accurate. If it is not given as an argument to the Makefile, then the Mbed-OS release will be extracted, as you can see here
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.
That's not what the sentence was meant to convey. I meant something like:
If
MBED_TLS_RELEASE
is not set in the Makefile, the HEAD of the main development branch will be extracted.
It obviously isn't clear enough.
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.
If MBED_TLS_RELEASE is not set in the Makefile, the HEAD of the main development branch will be extracted.
Is that what you want in place of the original sentence?
Edit file, mostly for active voice and removal of marketing language.
Comment has been addressed. Feel free to re-review!
Note: This PR is now a part of a rollup PR (#8552). No further work is needed here, as once that PR is merged, this PR will also be closed and marked as merged. |
There's an open issue of clarity on one line. @RonEld raised an issue, but it hasn't been addressed by @AnotherButler's edits. @cmonr - To fix it, do we have to create another PR now? |
If the rollup hasn't been merged yet, can't we just make a commit to that? |
Let's do that. There's one problem we need to fix there anyway. @sbutcher-arm commit that can be applied or just drop a line here, @melwee01 can add it this time |
Description
Update the Mbed TLS README.md file to include information contained in Mbed OS 3, which was omitted from Mbed OS 5.
Pull request type