-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
Use REQUIRES_FULL_LIBC in tests and samples instead of NEWLIB_LIBC #63332
Use REQUIRES_FULL_LIBC in tests and samples instead of NEWLIB_LIBC #63332
Conversation
This series is now stand-alone. |
8664fd8
to
9a51795
Compare
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.
Networking related changes look ok, couple of minor nits about the commit messages.
9a51795
to
59d04c9
Compare
1573ad9
to
290d363
Compare
@keith-packard do you think this should go into the 3.5 release? |
It's certainly nice to have the additional test coverage on the default library, and it doesn't change any application-visible code, so I'd say it's low-risk and good for validation of the picolibc transition. But, it also doesn't fix any bugs anywhere, so it might not be important enough to merge in during the RC phase. |
c97c70d
to
9cea4e4
Compare
I'm in favor of the NATIVE_LIBC & NATIVE_LIBCPP you are introducing in this PR. Later we can correct all uses in tree of EXTERNAL_LIBC to be NATIVE_LIBC where appropriate. |
@keith-packard thanks for the fixes. Note the 2 comments I left unresolved, I think those should still be fixed. |
@keith-packard how is this PR looking? |
9cea4e4
to
47f8212
Compare
I've rebased it this morning; there were conflicts with the removal of |
70faf04
to
e0c321c
Compare
@keith-packard could you rebase please? |
Instead of making applications use C library specific settings to enable floating point support in printf, provide this indirect symbol which then detects which C library is in use and selects the correct configuration for each. Signed-off-by: Keith Packard <keithp@keithp.com>
These are set when building against the host C or C++ libraries. This allows filtering tests that require use of a C library that sits atop Zephyr OS APIs. Signed-off-by: Keith Packard <keithp@keithp.com>
Instead of forcing use of NEWLIB_LIBC, select any available complete C library implementation. Add CONFIG_REQUIRES_FLOAT_PRINTF where needed. Signed-off-by: Keith Packard <keithp@keithp.com>
Instead of forcing use of NEWLIB_LIBC, select any available complete C library implementation. Add CONFIG_REQUIRES_FLOAT_PRINTF and adjust CONFIG_LIBC_MALLOC_ARENA_SIZE as needed. Signed-off-by: Keith Packard <keithp@keithp.com>
9e01681
e0c321c
to
9e01681
Compare
PR zephyrproject-rtos#63332 introduced a change to the LZ4 sample that set the malloc arena to an unnecessarily large size. After testing on native_posix, qemu_m3, and esp32s3_devkitm_appcpu, it would appear 24K is a much more reasonable (and sufficient) size. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
PR #63332 introduced a change to the LZ4 sample that set the malloc arena to an unnecessarily large size. After testing on native_posix, qemu_m3, and esp32s3_devkitm_appcpu, it would appear 24K is a much more reasonable (and sufficient) size. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
PR zephyrproject-rtos#63332 introduced a change to the LZ4 sample that set the malloc arena to an unnecessarily large size. After testing on native_posix, qemu_m3, and esp32s3_devkitm_appcpu, it would appear 24K is a much more reasonable (and sufficient) size. (cherry picked from commit fc4967e) Original-Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org> GitOrigin-RevId: fc4967e Change-Id: I7b7072e6537ae69169ddaa724d0bac68cfc4a630 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5030150 Reviewed-by: Keith Short <keithshort@chromium.org> Tested-by: Keith Short <keithshort@chromium.org> Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com> Commit-Queue: Keith Short <keithshort@chromium.org>
PR zephyrproject-rtos#63332 introduced a change to the LZ4 sample that set the malloc arena to an unnecessarily large size. After testing on native_posix, qemu_m3, and esp32s3_devkitm_appcpu, it would appear 24K is a much more reasonable (and sufficient) size. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
To gain broader test coverage for the default C library, convert all samples and tests from specifying newlib to specifying REQUIRES_FULL_LIBC. Environments that require newlib will still use it, but otherwise these tests will build with picolibc.