-
Notifications
You must be signed in to change notification settings - Fork 8.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
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. |
jukkar
left a comment
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.
db9804b to
2ca347b
Compare
aeb78be to
7ac5797
Compare
|
I'll give this a rebase shorty |
04b8fa8 to
df478b2
Compare
8095730 to
6fb04ad
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 <cfriedt@tenstorrent.com>
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>
The getopt sources were not formatted according to our codying style conventions, so apply formatting rules as a separate commit. 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>
6fb04ad to
0756a62
Compare
|



POSIX_AEP_CHOICE_ZEPHYRthe defaultFixes #75843
Should only be merged after
Note
The sources used when
CONFIG_POSIX_C_LANG_SUPPORT_R=yandCONFIG_POSIX_C_LIB_EXT=ycan still beoverridden with
CONFIG_TC_PROVIDES_POSIX_C_LANG_SUPPORT_R=yanCONFIG_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_worldfornative_sim.Before:
After:
diff -Nua build-{main,branch}/zephyr/.config