-
Notifications
You must be signed in to change notification settings - Fork 7.2k
posix: options: add custom Zephyr POSIX subprofile #88547
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
base: main
Are you sure you want to change the base?
posix: options: add custom Zephyr POSIX subprofile #88547
Conversation
0d193e5
to
f68b0fb
Compare
Probably one or two follow-up PRs can be made to ensure that the Currently, all of the implementation of |
c0f93e0
to
e891f53
Compare
The eventfd configuration does not need to be so deeply nested within POSIX since it does not depend on POSIX completely. Signed-off-by: Chris Friedt <[email protected]>
Separate the POSIX implementation into two categories: - Extensions to ISO C - System Interfaces The first category include standalone functions that generally do not require OS support or depend on any other features within the POSIX specification. The Option Groups that comprise this category include - POSIX_C_LIB_EXT: e.g. strnlen(), fnmatch() - POSIX_C_LANG_SUPPORT_R: e.g. gmtime_r(), strtok_r() The second category includes the majority of other POSIX Option Groups that do require OS support. The latter group may also be categorized generally as being NATIVE_LIBC_INCOMPATIBLE, although that might eventually become more granular. Signed-off-by: Chris Friedt <[email protected]>
Add a custom Zephyr POSIX subprofile specifically for enabling the default features that Zephyr requires as per the coding guidelines. Signed-off-by: Chris Friedt <[email protected]>
Default POSIX_AEP_CHOICE to POSIX_AEP_CHOICE_ZEPHYR Signed-off-by: Chris Friedt <[email protected]>
Add zephyr-keep-sorted-start and zephyr-keep-sorted-stop comments. Signed-off-by: Chris Friedt <[email protected]>
e891f53
to
10c619d
Compare
Shell utilities should probably also be gated by the new Kconfig. |
# POSIX System Interfaces | ||
menuconfig POSIX_SYSTEM_INTERFACES | ||
bool "POSIX System Interfaces" | ||
depends on !NATIVE_APPLICATION |
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.
Something wrong with the indentation 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.
Thanks Chris, this helps to understand what is going on with the POSIX options.
|
||
These functions are divided into two standalone Option Groups that may be enabled | ||
independently of the remainder of the POSIX API implementation; namely POSIX_C_LIB_EXT and | ||
POSIX_C_LANG_SUPPORT_R. If not referenced by the Zephyr kernel or application, There are no |
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.
POSIX_C_LANG_SUPPORT_R. If not referenced by the Zephyr kernel or application, There are no | |
POSIX_C_LANG_SUPPORT_R. If not referenced by the Zephyr kernel or application, there are no |
POSIX_AEP_CHOICE_ZEPHYR
the defaultFixes #75843
Before:
After: