2023-03-25 03:10:50 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2023-07-25 08:51:00 +08:00
|
|
|
zephyr_system_include_directories(include)
|
|
|
|
|
2023-03-25 03:10:50 +08:00
|
|
|
zephyr_library()
|
2023-03-29 12:22:28 +08:00
|
|
|
zephyr_library_property(ALLOW_EMPTY TRUE)
|
2023-05-05 23:26:45 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_COMMON_LIBC_ABORT source/stdlib/abort.c)
|
2024-02-01 20:36:17 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_COMMON_LIBC_GMTIME_R source/time/gmtime_r.c)
|
2023-03-25 03:10:50 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_COMMON_LIBC_TIME source/time/time.c)
|
2023-03-29 12:24:23 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_COMMON_LIBC_MALLOC source/stdlib/malloc.c)
|
2023-05-05 22:56:35 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_COMMON_LIBC_STRNLEN source/string/strnlen.c)
|
2023-08-02 22:38:45 +08:00
|
|
|
zephyr_library_sources_ifdef(CONFIG_COMMON_LIBC_THRD
|
2023-08-04 09:45:50 +08:00
|
|
|
source/thrd/cnd.c
|
2023-08-02 22:38:45 +08:00
|
|
|
source/thrd/mtx.c
|
2023-08-25 20:02:46 +08:00
|
|
|
source/thrd/once.c
|
2023-08-02 22:38:45 +08:00
|
|
|
source/thrd/thrd.c
|
2023-08-25 19:30:54 +08:00
|
|
|
source/thrd/tss.c
|
2023-08-02 22:38:45 +08:00
|
|
|
)
|
2023-11-11 04:35:49 +08:00
|
|
|
|
|
|
|
# Prevent compiler from optimizing calloc into an infinite recursive call
|
2023-11-13 04:34:50 +08:00
|
|
|
zephyr_library_compile_options($<TARGET_PROPERTY:compiler,no_builtin_malloc>)
|