Skip to content

Commit c3e4ed7

Browse files
maass-hamburgdanieldegrasse
authored andcommitted
libc: remove POSIX_TIMERS dep from COMMON_LIBC_TIME
remove POSIX_TIMERS dependency from COMMON_LIBC_TIME, as it is no longer needed. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
1 parent c8c888d commit c3e4ed7

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

cmake/toolchain/armclang/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ choice LIBC_IMPLEMENTATION
1616
config ARMCLANG_STD_LIBC
1717
bool "ARM Compiler C library"
1818
select COMMON_LIBC_STRNLEN
19-
select COMMON_LIBC_TIME if POSIX_TIMERS
19+
select COMMON_LIBC_TIME
2020
help
2121
Use the full Arm Compiler runtime libraries.
2222
A reduced Zephyr minimal libc will be used for library functionality

lib/libc/minimal/Kconfig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ config MINIMAL_LIBC_RAND
3737

3838
config MINIMAL_LIBC_TIME
3939
bool "Time functions"
40-
select COMMON_LIBC_TIME if POSIX_TIMERS
40+
select COMMON_LIBC_TIME
4141
select POSIX_C_LANG_SUPPORT_R
4242
select COMMON_LIBC_GMTIME_R
4343
select COMMON_LIBC_ASCTIME
@@ -47,9 +47,6 @@ config MINIMAL_LIBC_TIME
4747
help
4848
Enable time() and gmtime_r() for the minimal libc.
4949

50-
time() requires CONFIG_POSIX_TIMERS=y because it relies on the POSIX
51-
clock_gettime() function.
52-
5350
In order to make use of the non-reentrant gmtime(), it is necessary
5451
to set CONFIG_MINIMAL_LIBC_NON_REENTRANT_FUNCTIONS=y.
5552

0 commit comments

Comments
 (0)