1# SPDX-License-Identifier: Apache-2.0 2 3cmake_minimum_required(VERSION 3.20.0) 4find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) 5project(kernel_common) 6 7if(CONFIG_PRINTK) 8target_sources(app PRIVATE 9 src/printk.c 10 ) 11endif() 12target_sources(app PRIVATE 13 src/atomic.c 14 src/bitarray.c 15 src/byteorder.c 16 src/clock.c 17 src/main.c 18 src/timeout_order.c 19 src/multilib.c 20 src/errno.c 21 src/boot_delay.c 22 src/pow2.c 23 ) 24 25target_sources_ifdef( 26 CONFIG_STATIC_INIT_GNU 27 app PRIVATE 28 src/constructor.c 29) 30 31target_sources_ifdef( 32 CONFIG_IRQ_OFFLOAD 33 app PRIVATE 34 src/irq_offload.c 35) 36