forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libc: minimal: Fix gmtime() userspace support
The gmtime() function returns a global result variable, and this variable must be placed in the `z_libc_partition` when userspace is enabled. Since gmtime() makes use of a global variable and this results in a footprint increase, this commit makes the time functions optional by introducing `CONFIG_MINIMAL_LIBC_TIME` Kconfig and making them only available when this option is enabled. Signed-off-by: Stephanos Ioannidis <[email protected]>
- Loading branch information
1 parent
2bcb713
commit eb71003
Showing
3 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters