2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2018-12-11 23:33:23 +08:00
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
2020-05-29 08:58:50 +08:00
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
2018-10-25 22:54:09 +08:00
|
|
|
project(kernel_common)
|
2017-10-27 21:43:34 +08:00
|
|
|
|
2018-02-18 00:02:31 +08:00
|
|
|
if(NOT CONFIG_ARM)
|
|
|
|
target_sources(app PRIVATE
|
|
|
|
src/bitfield.c
|
|
|
|
)
|
|
|
|
endif()
|
2018-04-22 11:27:22 +08:00
|
|
|
if(CONFIG_PRINTK)
|
|
|
|
target_sources(app PRIVATE
|
|
|
|
src/printk.c
|
|
|
|
)
|
|
|
|
endif()
|
2018-02-18 00:02:31 +08:00
|
|
|
target_sources(app PRIVATE
|
|
|
|
src/atomic.c
|
|
|
|
src/byteorder.c
|
|
|
|
src/clock.c
|
|
|
|
src/main.c
|
|
|
|
src/timeout_order.c
|
2018-02-18 00:50:39 +08:00
|
|
|
src/multilib.c
|
2019-02-05 22:32:31 +08:00
|
|
|
src/errno.c
|
2019-02-05 22:41:04 +08:00
|
|
|
src/boot_delay.c
|
2019-02-06 05:44:02 +08:00
|
|
|
src/irq_offload.c
|
2018-02-18 00:02:31 +08:00
|
|
|
)
|