cmake:complete missing changes during cmake reforming for sched
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
parent
5b6488f09f
commit
d93d377257
23
sched/addrenv/CMakeLists.txt
Normal file
23
sched/addrenv/CMakeLists.txt
Normal file
@ -0,0 +1,23 @@
|
||||
# ##############################################################################
|
||||
# sched/addrenv/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_ARCH_ADDRENV)
|
||||
target_sources(sched PRIVATE addrenv.c)
|
||||
endif()
|
@ -18,7 +18,14 @@
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
set(SRCS)
|
||||
set(SRCS
|
||||
clock.c
|
||||
clock_initialize.c
|
||||
clock_settime.c
|
||||
clock_gettime.c
|
||||
clock_abstime2ticks.c
|
||||
clock_systime_ticks.c
|
||||
clock_systime_timespec.c)
|
||||
|
||||
if(CONFIG_CLOCK_TIMEKEEPING)
|
||||
list(APPEND SRCS clock_timekeeping.c)
|
||||
@ -28,15 +35,4 @@ if(CONFIG_CLOCK_ADJTIME)
|
||||
list(APPEND SRCS clock_adjtime.c)
|
||||
endif()
|
||||
|
||||
list(
|
||||
APPEND
|
||||
SRCS
|
||||
clock.c
|
||||
clock_initialize.c
|
||||
clock_settime.c
|
||||
clock_gettime.c
|
||||
clock_abstime2ticks.c
|
||||
clock_systime_ticks.c
|
||||
clock_systime_timespec.c)
|
||||
|
||||
target_sources(sched PRIVATE ${SRCS})
|
||||
|
@ -40,7 +40,17 @@ elseif(CONFIG_SCHED_WAITPID)
|
||||
endif()
|
||||
|
||||
if(CONFIG_SCHED_USER_IDENTITY)
|
||||
list(APPEND SRCS group_setuid.c group_setgid.c group_getuid.c group_getgid.c)
|
||||
list(
|
||||
APPEND
|
||||
SRCS
|
||||
group_setuid.c
|
||||
group_setgid.c
|
||||
group_getuid.c
|
||||
group_getgid.c
|
||||
group_seteuid.c
|
||||
group_setegid.c
|
||||
group_geteuid.c
|
||||
group_getegid.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_SIG_SIGSTOP_ACTION)
|
||||
|
@ -18,7 +18,7 @@
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
set(SRCS)
|
||||
set(SRCS irq_initialize.c irq_attach.c irq_dispatch.c irq_unexpectedisr.c)
|
||||
|
||||
if(CONFIG_SMP)
|
||||
list(APPEND SRCS irq_spinlock.c)
|
||||
@ -39,7 +39,4 @@ if(CONFIG_IRQCHAIN)
|
||||
list(APPEND SRCS irq_chain.c)
|
||||
endif()
|
||||
|
||||
list(APPEND SRCS irq_initialize.c irq_attach.c irq_dispatch.c
|
||||
irq_unexpectedisr.c)
|
||||
|
||||
target_sources(sched PRIVATE ${SRCS})
|
||||
|
@ -17,4 +17,11 @@
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
target_sources(sched PRIVATE assert.c panic_notifier.c reboot_notifier.c)
|
||||
|
||||
set(SRCS assert.c panic_notifier.c reboot_notifier.c)
|
||||
|
||||
if(CONFIG_ARCH_DEADLOCKDUMP)
|
||||
list(APPEND SRCS deadlock.c)
|
||||
endif()
|
||||
|
||||
target_sources(sched PRIVATE ${SRCS})
|
||||
|
@ -19,13 +19,11 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_MODULE)
|
||||
set(SRCS)
|
||||
set(SRCS mod_insmod.c mod_rmmod.c mod_modsym.c mod_modhandle.c)
|
||||
|
||||
if(CONFIG_FS_PROCFS AND NOT CONFIG_FS_PROCFS_EXCLUDE_MODULE)
|
||||
list(APPEND SRCS mod_procfs.c)
|
||||
endif()
|
||||
|
||||
list(APPEND SRCS mod_insmod.c mod_rmmod.c mod_modsym.c mod_modhandle.c)
|
||||
|
||||
target_sources(sched PRIVATE ${SRCS})
|
||||
endif()
|
||||
|
@ -19,11 +19,8 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(NOT CONFIG_DISABLE_PTHREAD)
|
||||
set(SRCS)
|
||||
|
||||
list(
|
||||
APPEND
|
||||
SRCS
|
||||
set(SRCS
|
||||
pthread_create.c
|
||||
pthread_exit.c
|
||||
pthread_join.c
|
||||
|
@ -19,20 +19,7 @@
|
||||
# ##############################################################################
|
||||
|
||||
# Add semaphore-related files to the build
|
||||
|
||||
if(CONFIG_PRIORITY_INHERITANCE)
|
||||
list(APPEND CSRCS sem_initialize.c sem_holder.c sem_setprotocol.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_SPINLOCK)
|
||||
list(APPEND CSRCS spinlock.c)
|
||||
endif()
|
||||
|
||||
# Include semaphore build support
|
||||
|
||||
list(
|
||||
APPEND
|
||||
CSRCS
|
||||
set(CSRCS
|
||||
sem_destroy.c
|
||||
sem_wait.c
|
||||
sem_trywait.c
|
||||
@ -45,4 +32,12 @@ list(
|
||||
sem_reset.c
|
||||
sem_waitirq.c)
|
||||
|
||||
if(CONFIG_PRIORITY_INHERITANCE)
|
||||
list(APPEND CSRCS sem_initialize.c sem_holder.c sem_setprotocol.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_SPINLOCK)
|
||||
list(APPEND CSRCS spinlock.c)
|
||||
endif()
|
||||
|
||||
target_sources(sched PRIVATE ${CSRCS})
|
||||
|
@ -18,15 +18,7 @@
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
set(SRCS)
|
||||
|
||||
if(CONFIG_SIG_DEFAULT)
|
||||
list(APPEND SRCS sig_default.c)
|
||||
endif()
|
||||
|
||||
list(
|
||||
APPEND
|
||||
SRCS
|
||||
set(SRCS
|
||||
sig_initialize.c
|
||||
sig_action.c
|
||||
sig_procmask.c
|
||||
@ -55,4 +47,8 @@ list(
|
||||
sig_ppoll.c
|
||||
sig_pselect.c)
|
||||
|
||||
if(CONFIG_SIG_DEFAULT)
|
||||
list(APPEND SRCS sig_default.c)
|
||||
endif()
|
||||
|
||||
target_sources(sched PRIVATE ${SRCS})
|
||||
|
@ -18,11 +18,7 @@
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
set(SRCS)
|
||||
|
||||
list(
|
||||
APPEND
|
||||
SRCS
|
||||
set(SRCS
|
||||
task_create.c
|
||||
task_init.c
|
||||
task_setup.c
|
||||
@ -48,10 +44,8 @@ if(CONFIG_SCHED_HAVE_PARENT)
|
||||
endif()
|
||||
|
||||
if(CONFIG_ARCH_HAVE_FORK)
|
||||
if(CONFIG_SCHED_WAITPID)
|
||||
list(APPEND SRCS task_fork.c)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT CONFIG_BUILD_KERNEL)
|
||||
list(APPEND SRCS task_spawn.c)
|
||||
|
@ -21,9 +21,8 @@
|
||||
# Add work queue files
|
||||
|
||||
if(CONFIG_SCHED_WORKQUEUE)
|
||||
set(SRCS)
|
||||
|
||||
list(APPEND SRCS kwork_queue.c kwork_cancel.c kwork_thread.c)
|
||||
set(SRCS kwork_queue.c kwork_cancel.c kwork_thread.c)
|
||||
|
||||
# Add low priority work queue files
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user