Skip to content

sys/Makefile.include: check for newlib_nano instead of USE_NANO_SPECS [backport 2019.07]#11890

Closed
cladmi wants to merge 2 commits intoRIOT-OS:2019.07-branchfrom
cladmi:backport/2019.07/pr/newib/remove_use_nano_specs_variable
Closed

sys/Makefile.include: check for newlib_nano instead of USE_NANO_SPECS [backport 2019.07]#11890
cladmi wants to merge 2 commits intoRIOT-OS:2019.07-branchfrom
cladmi:backport/2019.07/pr/newib/remove_use_nano_specs_variable

Conversation

@cladmi
Copy link
Contributor

@cladmi cladmi commented Jul 23, 2019

Backport of #11883

Contribution description

Check for the usage of newlib_nano module instead of the
USE_NANO_SPECS variable.

This allows also benefiting from the printf_float and scanf_float
behaviour on arm7 and riscv cpus.

Testing procedure

Verify it is actually handled correctly on arm7 and riscv boards.

Run the tests/unittests tests-scanf_float on arm7 and riscv boards.

BOARD=msba2 make --no-print-directory -C tests/unittests/ tests-scanf_float flash-only test

Booting (hardware reset)...

Reset CPU (into user code)
Programming done.
ssh -t vaduz.imp.fu-berlin.de 'source /srv/ilab-builds/workspace/workspace.rc && BOARD=msba2 QUIET=0 make --no-print-directory -C /srv/ilab-builds/boards term'
/srv/ilab-builds/boards/RIOT/dist/tools/pyterm/pyterm -tg -p "/dev/riot/ttyMSBA2"
Twisted not available, please install it if you want to use pyterm's JSON capabilities
2019-07-22 16:37:43,181 - INFO # Connect to serial port /dev/riot/ttyMSBA2
Welcome to pyterm!
Type '/exit' to exit.
2019-07-22 16:37:44,187 - INFO # main(): This is RIOT! (Version: 2019.10-devel-104-g294fb-HEAD)
2019-07-22 16:37:44,187 - INFO # ......
2019-07-22 16:37:44,188 - INFO # OK (6 tests)

Run other relevant tests:

  • msba2
    • tests/unittests tests-scanf_float @cladmi
    • tests/libfixmath_unittests
  • hifive1
    • tests/unittests tests-scanf_float

Issues/PRs references

General fix for #11882

USE_NANO_SPECS was added in #5094
Not sure why it was not set with newlib_nano at the end.

cladmi added 2 commits July 23, 2019 14:23
Check for the usage of `newlib_nano` module instead of the
`USE_NANO_SPECS` variable.

This allows also benefiting from the `printf_float` and `scanf_float`
behaviour on `arm7` and `riscv` cpus.

(cherry picked from commit 225b50c)
It was replaced by using directly the `newlib_nano` module.

(cherry picked from commit 2d5ed4f)
@miri64 miri64 added the Area: build system Area: Build system label Jul 30, 2019
@miri64 miri64 requested a review from MrKevinWeiss July 30, 2019 17:00
@miri64 miri64 added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jul 30, 2019
@miri64
Copy link
Member

miri64 commented Jul 30, 2019

@MrKevinWeiss I think this should have been included into the release. How do we proceed?

@MrKevinWeiss
Copy link
Contributor

I really don't think this warrants a new patch... I would be OK just updating the release notes. If it is really needed to get in the release I would maybe wait for a while just in case some other bugs are found then do a new release.

Any objections?

@MrKevinWeiss
Copy link
Contributor

Oh jeez I guess I just missed it, it was done before the release happened 😲

I really should have kept a closer eye and set the labels better.

@MrKevinWeiss MrKevinWeiss added Process: release backport Integration Process: The PR is a release backport of a change previously provided to master Process: release cycle Integration Process: The PR is connected to the release cycle (e.g. release notes) labels Jul 30, 2019
@cladmi
Copy link
Contributor Author

cladmi commented Aug 2, 2019

It was listed in the known issues in the release notes, so I can close this one.

#11861: msba2: floating point tests fail

@cladmi cladmi closed this Aug 2, 2019
@cladmi cladmi deleted the backport/2019.07/pr/newib/remove_use_nano_specs_variable branch August 2, 2019 12:52
@MrKevinWeiss MrKevinWeiss removed Process: release backport Integration Process: The PR is a release backport of a change previously provided to master Process: release cycle Integration Process: The PR is connected to the release cycle (e.g. release notes) labels Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: build system Area: Build system CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants