-
Notifications
You must be signed in to change notification settings - Fork 135
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
kconfig: Signal newlib support in Kconfig too #626
base: main
Are you sure you want to change the base?
Conversation
This lets Kconfig stanzas detect newlib support in the toolchain Signed-off-by: Keith Packard <[email protected]>
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.
Put generic Kconfig options like this in Zephyr proper, and just select them here.
@@ -7,3 +7,9 @@ config TOOLCHAIN_ZEPHYR_0_16 | |||
config TOOLCHAIN_ZEPHYR_SUPPORTS_THREAD_LOCAL_STORAGE | |||
def_bool y | |||
select TOOLCHAIN_SUPPORTS_THREAD_LOCAL_STORAGE | |||
|
|||
config NEWLIB_SUPPORTED |
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 don't think a generic option should be in here. For example how will the arm-gnu-embedded toolchain enable NEWLIB_SUPPORTED
. This should be in Zephyr proper and have something like:
config TOOLCHAIN_ZEPHYR_SUPPORTS_NEWLIB`
def_bool y
select NEWLIB_SUPPORTED
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.
or add select NEWLIB_SUPPORTED
under config TOOLCHAIN_ZEPHYR_0_16
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 already got a proposed patch which does that (no need for the version check, Zephyr SDK has always supported newlib). I was just following the suggestion about where similar mechanism for Picolibc should live, and that will live in sdk-ng. Happy to have it in Zephyr instead; it's a lot easier to manage there anyways.
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.
This lets Kconfig stanzas detect newlib support in the toolchain
Working on zephyr PR zephyrproject-rtos/zephyr#54637
Signed-off-by: Keith Packard [email protected]