-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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 |
e891f53
to
10c619d
Compare
Shell utilities should probably also be gated by the new Kconfig. |
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.
lib/posix/Kconfig.profile
Outdated
|
||
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 |
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.
Fixed!
db9804b
to
2ca347b
Compare
aeb78be
to
7ac5797
Compare
I'll give this a rebase shorty |
04b8fa8
to
df478b2
Compare
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 <cfriedt@tenstorrent.com>
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 <cfriedt@tenstorrent.com>
Default POSIX_AEP_CHOICE to POSIX_AEP_CHOICE_ZEPHYR Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
Add zephyr-keep-sorted-start and zephyr-keep-sorted-stop comments. Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
a73425b
to
b1e87fc
Compare
02a72f0
to
b1e87fc
Compare
|
Please retry analysis of this Pull-Request directly on SonarQube Cloud |
POSIX_AEP_CHOICE_ZEPHYR
the defaultFixes #75843
Should only be merged after
Note
The sources used when
CONFIG_POSIX_C_LANG_SUPPORT_R=y
andCONFIG_POSIX_C_LIB_EXT=y
can still beoverridden with
CONFIG_TC_PROVIDES_POSIX_C_LANG_SUPPORT_R=y
anCONFIG_TC_PROVIDES_POSIX_C_LIB_EXT=y
(which must be used withselect <option>
inKconfig
), as they are primarily meant for toolchain maintainers.A comparison when building
samples/hello_world
fornative_sim
.Before:
After: