2014-08-09 01:45:54 +02:00
|
|
|
############################################################################
|
|
|
|
# sched/sched/Make.defs
|
|
|
|
#
|
2024-09-11 13:45:11 +02:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
2020-05-03 22:16:36 +02:00
|
|
|
# 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
|
2014-08-09 01:45:54 +02:00
|
|
|
#
|
2020-05-03 22:16:36 +02:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2014-08-09 01:45:54 +02:00
|
|
|
#
|
2020-05-03 22:16:36 +02:00
|
|
|
# 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.
|
2014-08-09 01:45:54 +02:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2020-04-07 16:31:47 +02:00
|
|
|
CSRCS += sched_getfiles.c
|
2016-03-23 15:00:58 +01:00
|
|
|
CSRCS += sched_addreadytorun.c sched_removereadytorun.c
|
|
|
|
CSRCS += sched_addprioritized.c sched_mergeprioritized.c sched_mergepending.c
|
|
|
|
CSRCS += sched_addblocked.c sched_removeblocked.c
|
2020-04-07 16:31:47 +02:00
|
|
|
CSRCS += sched_gettcb.c sched_verifytcb.c sched_releasetcb.c
|
2014-10-07 15:42:36 +02:00
|
|
|
CSRCS += sched_setparam.c sched_setpriority.c sched_getparam.c
|
|
|
|
CSRCS += sched_setscheduler.c sched_getscheduler.c
|
|
|
|
CSRCS += sched_yield.c sched_rrgetinterval.c sched_foreach.c
|
2016-06-20 15:35:38 +02:00
|
|
|
CSRCS += sched_lock.c sched_unlock.c sched_lockcount.c
|
2023-11-21 13:56:36 +01:00
|
|
|
CSRCS += sched_idletask.c sched_self.c sched_get_stackinfo.c sched_get_tls.c
|
2023-02-17 08:54:57 +01:00
|
|
|
CSRCS += sched_sysinfo.c sched_reprioritizertr.c sched_get_stateinfo.c
|
2014-08-09 01:45:54 +02:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_PRIORITY_INHERITANCE),y)
|
2014-10-07 15:42:36 +02:00
|
|
|
CSRCS += sched_reprioritize.c
|
2014-08-09 01:45:54 +02:00
|
|
|
endif
|
|
|
|
|
2016-02-16 17:14:33 +01:00
|
|
|
ifeq ($(CONFIG_SMP),y)
|
2024-07-29 14:47:46 +02:00
|
|
|
CSRCS += sched_cpuselect.c sched_getcpu.c sched_process_delivered.c
|
2016-11-20 14:57:18 +01:00
|
|
|
CSRCS += sched_getaffinity.c sched_setaffinity.c
|
2016-02-16 17:14:33 +01:00
|
|
|
endif
|
|
|
|
|
2018-08-30 18:27:18 +02:00
|
|
|
ifeq ($(CONFIG_SIG_SIGSTOP_ACTION),y)
|
2022-10-20 18:14:37 +02:00
|
|
|
CSRCS += sched_suspend.c
|
2018-08-30 18:27:18 +02:00
|
|
|
endif
|
|
|
|
|
2014-08-09 01:45:54 +02:00
|
|
|
ifeq ($(CONFIG_SCHED_WAITPID),y)
|
2014-10-07 15:42:36 +02:00
|
|
|
CSRCS += sched_waitpid.c
|
2014-08-09 01:45:54 +02:00
|
|
|
ifeq ($(CONFIG_SCHED_HAVE_PARENT),y)
|
2014-10-07 15:42:36 +02:00
|
|
|
CSRCS += sched_waitid.c sched_wait.c
|
2014-08-09 01:45:54 +02:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2015-07-24 19:49:28 +02:00
|
|
|
ifneq ($(CONFIG_RR_INTERVAL),0)
|
|
|
|
CSRCS += sched_roundrobin.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SCHED_SPORADIC),y)
|
2018-11-25 18:50:15 +01:00
|
|
|
CSRCS += sched_sporadic.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SCHED_SUSPENDSCHEDULER),y)
|
2018-11-24 17:32:45 +01:00
|
|
|
CSRCS += sched_suspendscheduler.c
|
2015-07-24 19:49:28 +02:00
|
|
|
endif
|
|
|
|
|
2015-07-24 17:55:02 +02:00
|
|
|
ifneq ($(CONFIG_RR_INTERVAL),0)
|
|
|
|
CSRCS += sched_resumescheduler.c
|
2018-11-25 18:50:15 +01:00
|
|
|
else ifeq ($(CONFIG_SCHED_RESUMESCHEDULER),y)
|
2018-01-31 03:23:22 +01:00
|
|
|
CSRCS += sched_resumescheduler.c
|
2015-07-24 17:55:02 +02:00
|
|
|
endif
|
2015-07-26 23:03:47 +02:00
|
|
|
|
2023-10-26 15:03:16 +02:00
|
|
|
ifneq ($(CONFIG_SCHED_CPULOAD_NONE),y)
|
2014-10-07 15:42:36 +02:00
|
|
|
CSRCS += sched_cpuload.c
|
2016-08-20 20:47:07 +02:00
|
|
|
ifeq ($(CONFIG_CPULOAD_ONESHOT),y)
|
|
|
|
CSRCS += sched_cpuload_oneshot.c
|
|
|
|
endif
|
2018-08-24 18:10:57 +02:00
|
|
|
ifeq ($(CONFIG_CPULOAD_PERIOD),y)
|
|
|
|
CSRCS += sched_cpuload_period.c
|
|
|
|
endif
|
2014-08-09 01:45:54 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SCHED_TICKLESS),y)
|
2014-10-07 15:42:36 +02:00
|
|
|
CSRCS += sched_timerexpiration.c
|
2014-08-09 01:45:54 +02:00
|
|
|
else
|
2014-10-07 15:42:36 +02:00
|
|
|
CSRCS += sched_processtimer.c
|
2014-08-09 01:45:54 +02:00
|
|
|
endif
|
|
|
|
|
2018-11-24 17:32:45 +01:00
|
|
|
ifeq ($(CONFIG_SCHED_CRITMONITOR),y)
|
|
|
|
CSRCS += sched_critmonitor.c
|
|
|
|
endif
|
|
|
|
|
2022-10-10 11:17:46 +02:00
|
|
|
ifeq ($(CONFIG_SCHED_BACKTRACE),y)
|
2021-07-30 06:15:43 +02:00
|
|
|
CSRCS += sched_backtrace.c
|
|
|
|
endif
|
|
|
|
|
2024-06-24 13:38:13 +02:00
|
|
|
ifeq ($(CONFIG_SCHED_DUMP_ON_EXIT),y)
|
2024-04-17 07:34:45 +02:00
|
|
|
CSRCS += sched_dumponexit.c
|
|
|
|
endif
|
|
|
|
|
2024-08-08 11:10:23 +02:00
|
|
|
ifeq ($(CONFIG_SMP),y)
|
2023-09-26 04:06:49 +02:00
|
|
|
CSRCS += sched_smp.c
|
|
|
|
endif
|
|
|
|
|
2014-08-09 01:45:54 +02:00
|
|
|
# Include sched build support
|
|
|
|
|
|
|
|
DEPPATH += --dep-path sched
|
|
|
|
VPATH += :sched
|