-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Minimal-printf: Set default configurations to false #11450
Minimal-printf: Set default configurations to false #11450
Conversation
@evedon is this needed to be in 5.14? Based on the changes - adding new configuration/changing current one, this would go to 5.15. |
f6c410c
to
3177671
Compare
This force-push only leaves the commit which set floating point support to false by default. |
We should target 5.14.0 RC2. |
@@ -51,7 +51,7 @@ Minimal printf is configured by the following parameters defined in `platform/mb | |||
} | |||
``` | |||
|
|||
By default, 64 bit integers, floating point and FILE stream printing are enabled. | |||
By default, 64 bit integers and FILE stream printing are enabled. |
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.
We should remove all references to FILE stream printing since the option to disable/enable has been removed in a previous PR.
This also applies to the tables at the end of the file
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 will have to re-build the example project and get new numbers for the first two rows in each table as the numbers do not include the enabled file stream support. But this should not be blocking the release as it can be update later.
{ | ||
"target_overrides": { | ||
"*": { | ||
"platform.minimal-printf-enable-floating-point": true |
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 will need to pass the option when running greentea tests
--app-config ./TESTS/minimal-printf/compliance/test_app.json
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.
@jamesbeyond suggested we re-define the macro in the test main.cpp
.
Though I am not sure if that helps because compilation of the minimal-printf source seems to happen before the macro re-definition in main.cpp
.
In any case, the test passe regardless of the macro redefinition therefore this IMO shouldn't also block the release and can be looked at later.
@hugueskamba, thank you for your changes. |
It seems reasonable for the default of the "minimal" to be more minimal, but this is an API change. If it doesn't land in 5.14, then I think 5.15 is too late to change it, as it will have been published with the default the other way. |
Set to 5.14.0-rc2. Lets make this ready by tomorrow noon cc @adbridge |
3177671
to
e51e56e
Compare
This force-push ensures floating point support is enabled for the Greentea test. It also modifies the minimal-printf README to remove mentions of an optional file stream support. |
e51e56e
to
2195c4b
Compare
This force-push removes the macro re-definition as it does not help compiling minimal-printf with floating point support since the re-definition only happened later on. |
Mbed OS should not require floating point in its base configuration. This provides further code size savings out of the box.
2195c4b
to
03c484a
Compare
This force-push updates the code size values in the minimal-printf README tables. |
Started CI to get test results while we review |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
I agree that the default should be to have float support disabled. I will create a ticket for the testing issue:
|
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'd like one more change to the greentea test before this is merged though.
@hugueskamba please put back test_app.json and add a README file with the command line to use to test for floats
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.
We will make the change to test_app.json in a different PR; it can come in 5.14.1 as well.
Here is the PR #11455 |
Description
Mbed OS should not require floating point in its base configuration.
This provides further code size savings out of the box.
Pull request type
Reviewers
@evedon @kjbracey-arm
Release Notes