2014-08-08 21:53:29 +02:00
|
|
|
############################################################################
|
|
|
|
# sched/pthread/Make.defs
|
|
|
|
#
|
2024-09-11 13:45:11 +02:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
2020-05-08 15:23:26 +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-08 21:53:29 +02:00
|
|
|
#
|
2020-05-08 15:23:26 +02:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2014-08-08 21:53:29 +02:00
|
|
|
#
|
2020-05-08 15:23:26 +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-08 21:53:29 +02:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
ifneq ($(CONFIG_DISABLE_PTHREAD),y)
|
|
|
|
|
2014-10-07 15:42:36 +02:00
|
|
|
CSRCS += pthread_create.c pthread_exit.c pthread_join.c pthread_detach.c
|
2017-06-14 15:21:01 +02:00
|
|
|
CSRCS += pthread_getschedparam.c pthread_setschedparam.c
|
2017-03-27 01:37:28 +02:00
|
|
|
CSRCS += pthread_mutexinit.c pthread_mutexdestroy.c
|
2019-02-26 01:19:13 +01:00
|
|
|
CSRCS += pthread_mutextimedlock.c pthread_mutextrylock.c pthread_mutexunlock.c
|
2014-10-07 15:42:36 +02:00
|
|
|
CSRCS += pthread_condwait.c pthread_condsignal.c pthread_condbroadcast.c
|
2023-01-23 23:52:51 +01:00
|
|
|
CSRCS += pthread_condclockwait.c pthread_sigmask.c pthread_cancel.c
|
2024-05-22 03:39:33 +02:00
|
|
|
CSRCS += pthread_sem.c pthread_completejoin.c pthread_findjoininfo.c
|
2017-06-14 15:30:49 +02:00
|
|
|
CSRCS += pthread_release.c pthread_setschedprio.c
|
2023-04-23 08:45:14 +02:00
|
|
|
CSRCS += pthread_barrierwait.c
|
2014-08-08 21:53:29 +02:00
|
|
|
|
2017-03-27 01:37:28 +02:00
|
|
|
ifneq ($(CONFIG_PTHREAD_MUTEX_UNSAFE),y)
|
|
|
|
CSRCS += pthread_mutex.c pthread_mutexconsistent.c pthread_mutexinconsistent.c
|
|
|
|
endif
|
|
|
|
|
2016-02-20 00:59:19 +01:00
|
|
|
ifeq ($(CONFIG_SMP),y)
|
|
|
|
CSRCS += pthread_setaffinity.c pthread_getaffinity.c
|
|
|
|
endif
|
|
|
|
|
2014-08-08 21:53:29 +02:00
|
|
|
# Include pthread build support
|
|
|
|
|
|
|
|
DEPPATH += --dep-path pthread
|
|
|
|
VPATH += :pthread
|
2020-05-08 15:23:26 +02:00
|
|
|
|
|
|
|
endif # CONFIG_DISABLE_PTHREAD
|