zephyr/tests/kernel/common/CMakeLists.txt
Nicolas Pitre f00573555b Z_POW2_CEIL: simplify implementation
Avoid potentially calling __builtin_clz() twice with non-constant
values. Also add a test for it.

Clang produces false positive vla warnings so disable them. GCC will
spot real vla's already.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2022-06-16 10:28:15 +02:00

30 lines
503 B
CMake

# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(kernel_common)
if(NOT CONFIG_ARM)
target_sources(app PRIVATE
src/bitfield.c
)
endif()
if(CONFIG_PRINTK)
target_sources(app PRIVATE
src/printk.c
)
endif()
target_sources(app PRIVATE
src/atomic.c
src/bitarray.c
src/byteorder.c
src/clock.c
src/main.c
src/timeout_order.c
src/multilib.c
src/errno.c
src/boot_delay.c
src/irq_offload.c
src/pow2.c
)