zephyr/lib/os/CMakeLists.txt
Carles Cufi 244f826e3c cmake: remove _if_kconfig() functions
This set of functions seem to be there just because of historical
reasons, stemming from Kbuild. They are non-obvious and prone to errors,
so remove them in favor of the `_ifdef()` ones with an explicit
`CONFIG_` condition.

Script used:

git grep -l _if_kconfig | xargs sed -E -i
"s/_if_kconfig\(\s*(\w*)/_ifdef(CONFIG_\U\1\E \1/g"

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2020-08-01 12:35:20 +02:00

33 lines
510 B
CMake

# SPDX-License-Identifier: Apache-2.0
zephyr_sources_ifdef(CONFIG_BASE64 base64.c)
zephyr_sources(
crc32_sw.c
crc16_sw.c
crc8_sw.c
crc7_sw.c
dec.c
fdtable.c
hex.c
mempool.c
notify.c
printk.c
onoff.c
rb.c
sem.c
thread_entry.c
timeutil.c
work_q.c
heap.c
heap-validate.c
)
zephyr_sources_ifdef(CONFIG_JSON_LIBRARY json.c)
zephyr_sources_ifdef(CONFIG_RING_BUFFER ring_buffer.c)
zephyr_sources_ifdef(CONFIG_ASSERT assert.c)
zephyr_sources_ifdef(CONFIG_USERSPACE mutex.c)