mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
cmake/sched: fix build break based on mainline
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -65,6 +65,13 @@ if(NOT DEFINED BOARD_CONFIG)
|
|||||||
message(FATAL_ERROR "Please define configuration with BOARD_CONFIG")
|
message(FATAL_ERROR "Please define configuration with BOARD_CONFIG")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
find_program(KCONFIGLIB olddefconfig)
|
||||||
|
if(NOT KCONFIGLIB)
|
||||||
|
message(
|
||||||
|
FATAL_ERROR "Kconfig environment depends on kconfiglib, Please install:
|
||||||
|
$ pip install kconfiglib")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(EXISTS ${BOARD_CONFIG} AND EXISTS ${BOARD_CONFIG}/defconfig)
|
if(EXISTS ${BOARD_CONFIG} AND EXISTS ${BOARD_CONFIG}/defconfig)
|
||||||
get_filename_component(NUTTX_BOARD_ABS_DIR ${BOARD_CONFIG} ABSOLUTE BASE_DIR
|
get_filename_component(NUTTX_BOARD_ABS_DIR ${BOARD_CONFIG} ABSOLUTE BASE_DIR
|
||||||
${NUTTX_DIR})
|
${NUTTX_DIR})
|
||||||
|
|||||||
@@ -20,21 +20,26 @@
|
|||||||
|
|
||||||
if(CONFIG_LIBC_MODLIB)
|
if(CONFIG_LIBC_MODLIB)
|
||||||
|
|
||||||
target_sources(
|
list(
|
||||||
c
|
APPEND
|
||||||
PRIVATE modlib_bind.c
|
SRCS
|
||||||
modlib_depend.c
|
modlib_bind.c
|
||||||
modlib_init.c
|
modlib_depend.c
|
||||||
modlib_iobuffer.c
|
modlib_init.c
|
||||||
modlib_load.c
|
modlib_iobuffer.c
|
||||||
modlib_loadshdrs.c
|
modlib_load.c
|
||||||
modlib_read.c
|
modlib_loadhdrs.c
|
||||||
modlib_registry.c
|
modlib_read.c
|
||||||
modlib_sections.c
|
modlib_registry.c
|
||||||
modlib_symbols.c
|
modlib_sections.c
|
||||||
modlib_symtab.c
|
modlib_symbols.c
|
||||||
modlib_uninit.c
|
modlib_symtab.c
|
||||||
modlib_unload.c
|
modlib_uninit.c
|
||||||
modlib_verify.c)
|
modlib_unload.c
|
||||||
|
modlib_verify.c)
|
||||||
|
|
||||||
|
list(APPEND SRCS modlib_globals.S)
|
||||||
|
|
||||||
|
target_sources(c PRIVATE ${SRCS})
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -18,8 +18,15 @@
|
|||||||
#
|
#
|
||||||
# ##############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
set(SRCS sched_getprioritymax.c sched_getprioritymin.c clock_ticks2time.c
|
set(SRCS
|
||||||
clock_time2ticks.c clock_timespec_add.c clock_timespec_subtract.c)
|
sched_getprioritymax.c
|
||||||
|
sched_getprioritymin.c
|
||||||
|
clock_ticks2time.c
|
||||||
|
clock_time2ticks.c
|
||||||
|
clock_timespec_add.c
|
||||||
|
clock_timespec_subtract.c
|
||||||
|
clock_getcpuclockid.c
|
||||||
|
clock_getres.c)
|
||||||
|
|
||||||
if(NOT CONFIG_CANCELLATION_POINTS)
|
if(NOT CONFIG_CANCELLATION_POINTS)
|
||||||
list(APPEND SRCS task_setcanceltype.c task_testcancel.c)
|
list(APPEND SRCS task_setcanceltype.c task_testcancel.c)
|
||||||
@@ -29,12 +36,12 @@ if(CONFIG_SMP)
|
|||||||
list(APPEND SRCS sched_cpucount.c)
|
list(APPEND SRCS sched_cpucount.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CONFIG_SCHED_BACKTRACE)
|
||||||
|
list(APPEND SRCS sched_dumpstack.c sched_backtrace.c)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(NOT CONFIG_BUILD_KERNEL)
|
if(NOT CONFIG_BUILD_KERNEL)
|
||||||
list(APPEND SRCS task_startup.c)
|
list(APPEND SRCS task_startup.c)
|
||||||
|
|
||||||
if(CONFIG_SCHED_BACKTRACE)
|
|
||||||
list(APPEND SRCS sched_dumpstack.c sched_backtrace.c)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_sources(c PRIVATE ${SRCS})
|
target_sources(c PRIVATE ${SRCS})
|
||||||
|
|||||||
@@ -24,16 +24,19 @@ if(CONFIG_CLOCK_TIMEKEEPING)
|
|||||||
list(APPEND SRCS clock_timekeeping.c)
|
list(APPEND SRCS clock_timekeeping.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CONFIG_CLOCK_ADJTIME)
|
||||||
|
list(APPEND SRCS clock_adjtime.c)
|
||||||
|
endif()
|
||||||
|
|
||||||
list(
|
list(
|
||||||
APPEND
|
APPEND
|
||||||
SRCS
|
SRCS
|
||||||
|
clock.c
|
||||||
clock_initialize.c
|
clock_initialize.c
|
||||||
clock_settime.c
|
clock_settime.c
|
||||||
clock_gettime.c
|
clock_gettime.c
|
||||||
clock_getres.c
|
|
||||||
clock_abstime2ticks.c
|
clock_abstime2ticks.c
|
||||||
clock_systime_ticks.c
|
clock_systime_ticks.c
|
||||||
clock_systime_timespec.c
|
clock_systime_timespec.c)
|
||||||
clock.c)
|
|
||||||
|
|
||||||
target_sources(sched PRIVATE ${SRCS})
|
target_sources(sched PRIVATE ${SRCS})
|
||||||
|
|||||||
Reference in New Issue
Block a user