2025-10-10 16:07:00 +08:00

57 lines
942 B
CMake

armino_build_get_property(target ARMINO_SOC)
set(incs)
if(CONFIG_FREERTOS)
set(priv_incs os/freertos)
elseif(CONFIG_LITEOS_M OR CONFIG_LITEOS_M_V3)
set(priv_incs os/liteos_m)
endif()
if (CONFIG_SOC_BK7271)
list(APPEND incs soc/bk7271)
else()
list(APPEND incs soc/bk7231n)
endif()
set(srcs
tick_base.c
printf_base.c
printf.c
mac.c
reboot.c
delay.c
)
if(CONFIG_AT)
set(components ../../components)
list(APPEND incs
${components}/at_server
${components}/at_server/_at_server
${components}/at_server/_at_server_port
)
list(APPEND
srcs
bk_system_at.c
)
endif()
if(CONFIG_FREERTOS)
list(APPEND
srcs
os/freertos/tick.c
)
elseif(CONFIG_LITEOS_M OR CONFIG_LITEOS_M_V3)
list(APPEND
srcs
os/liteos_m/tick.c
)
elseif(CONFIG_NON_OS)
list(APPEND
srcs
os/non_os/tick.c
)
endif()
armino_component_register(SRCS "${srcs}" INCLUDE_DIRS "${incs}" PRIV_INCLUDE_DIRS "${priv_incs}" PRIV_REQUIRES bk_common bk_wifi)