| ############################################################################ |
| # sched/sched/Make.defs |
| # |
| # SPDX-License-Identifier: Apache-2.0 |
| # |
| # 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. |
| # |
| ############################################################################ |
| |
| CSRCS += sched_getfiles.c sched_profil.c |
| CSRCS += sched_addreadytorun.c sched_removereadytorun.c |
| CSRCS += sched_addblocked.c sched_removeblocked.c |
| CSRCS += sched_gettcb.c sched_verifytcb.c sched_releasetcb.c |
| 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 |
| CSRCS += sched_lock.c sched_unlock.c sched_lockcount.c |
| CSRCS += sched_idletask.c sched_self.c sched_get_stackinfo.c sched_get_tls.c |
| CSRCS += sched_sysinfo.c sched_get_stateinfo.c sched_getcpu.c |
| CSRCS += sched_switchcontext.c sched_sleep.c |
| |
| ifneq ($(CONFIG_STACKCHECK_MARGIN),) |
| ifneq ($(CONFIG_STACKCHECK_MARGIN),-1) |
| CSRCS += nxsched_checkstackoverflow.c |
| endif |
| endif |
| |
| ifeq ($(CONFIG_PRIORITY_INHERITANCE),y) |
| CSRCS += sched_reprioritize.c |
| endif |
| |
| ifeq ($(CONFIG_SMP),y) |
| CSRCS += sched_process_delivered.c |
| CSRCS += sched_getaffinity.c sched_setaffinity.c |
| else |
| CSRCS += sched_reprioritizertr.c sched_mergepending.c |
| endif |
| |
| ifeq ($(CONFIG_SIG_SIGSTOP_ACTION),y) |
| CSRCS += sched_suspend.c |
| endif |
| |
| ifeq ($(CONFIG_SCHED_WAITPID),y) |
| CSRCS += sched_waitpid.c |
| ifeq ($(CONFIG_SCHED_HAVE_PARENT),y) |
| CSRCS += sched_waitid.c sched_wait.c |
| endif |
| endif |
| |
| ifneq ($(CONFIG_RR_INTERVAL),0) |
| CSRCS += sched_roundrobin.c |
| endif |
| |
| ifeq ($(CONFIG_SCHED_SPORADIC),y) |
| CSRCS += sched_sporadic.c |
| endif |
| |
| ifneq ($(CONFIG_SCHED_CPULOAD_NONE),y) |
| CSRCS += sched_cpuload.c |
| ifeq ($(CONFIG_CPULOAD_ONESHOT),y) |
| CSRCS += sched_cpuload_oneshot.c |
| endif |
| ifeq ($(CONFIG_CPULOAD_PERIOD),y) |
| CSRCS += sched_cpuload_period.c |
| endif |
| endif |
| |
| ifeq ($(CONFIG_SCHED_TICKLESS),y) |
| CSRCS += sched_timerexpiration.c |
| else |
| CSRCS += sched_processtimer.c |
| endif |
| |
| ifeq ($(CONFIG_SCHED_CRITMONITOR),y) |
| CSRCS += sched_critmonitor.c |
| endif |
| |
| ifeq ($(CONFIG_SCHED_BACKTRACE),y) |
| CSRCS += sched_backtrace.c |
| endif |
| |
| ifeq ($(CONFIG_SCHED_DUMP_ON_EXIT),y) |
| CSRCS += sched_dumponexit.c |
| endif |
| |
| ifeq ($(CONFIG_SMP),y) |
| CSRCS += sched_smp.c |
| endif |
| |
| # Include sched build support |
| |
| DEPPATH += --dep-path sched |
| VPATH += :sched |