2012-11-10 17:06:01 +01:00
|
|
|
############################################################################
|
2018-05-29 21:21:26 +02:00
|
|
|
# libs/libc/pthread/Make.defs
|
2012-11-10 17:06:01 +01:00
|
|
|
#
|
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
|
2012-11-10 17:06:01 +01:00
|
|
|
#
|
2020-05-03 22:16:36 +02:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2012-11-10 17:06:01 +01: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.
|
2012-11-10 17:06:01 +01:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2020-05-08 15:23:26 +02:00
|
|
|
ifneq ($(CONFIG_TLS_NELEM),0)
|
|
|
|
CSRCS += pthread_keycreate.c pthread_setspecific.c pthread_getspecific.c
|
|
|
|
CSRCS += pthread_keydelete.c
|
|
|
|
endif
|
|
|
|
|
2017-02-16 16:53:13 +01:00
|
|
|
ifneq ($(CONFIG_DISABLE_PTHREAD),y)
|
|
|
|
|
2012-11-10 17:06:01 +01:00
|
|
|
# Add the pthread C files to the build
|
|
|
|
|
2016-11-05 18:06:52 +01:00
|
|
|
CSRCS += pthread_attr_init.c pthread_attr_destroy.c
|
|
|
|
CSRCS += pthread_attr_setschedpolicy.c pthread_attr_getschedpolicy.c
|
|
|
|
CSRCS += pthread_attr_setinheritsched.c pthread_attr_getinheritsched.c
|
2020-08-19 17:32:48 +02:00
|
|
|
CSRCS += pthread_attr_setdetachstate.c pthread_attr_getdetachstate.c
|
2023-01-20 15:30:36 +01:00
|
|
|
CSRCS += pthread_attr_setstackaddr.c pthread_attr_getstackaddr.c
|
2016-11-05 18:06:52 +01:00
|
|
|
CSRCS += pthread_attr_setstacksize.c pthread_attr_getstacksize.c
|
2018-08-23 17:48:53 +02:00
|
|
|
CSRCS += pthread_attr_setstack.c pthread_attr_getstack.c
|
2016-11-05 18:06:52 +01:00
|
|
|
CSRCS += pthread_attr_setschedparam.c pthread_attr_getschedparam.c
|
2023-06-05 10:49:30 +02:00
|
|
|
CSRCS += pthread_attr_setscope.c pthread_attr_getscope.c
|
2016-11-05 18:06:52 +01:00
|
|
|
CSRCS += pthread_barrierattr_init.c pthread_barrierattr_destroy.c
|
|
|
|
CSRCS += pthread_barrierattr_getpshared.c pthread_barrierattr_setpshared.c
|
2023-04-23 08:45:14 +02:00
|
|
|
CSRCS += pthread_barrierinit.c pthread_barrierdestroy.c
|
2016-11-05 18:06:52 +01:00
|
|
|
CSRCS += pthread_condattr_init.c pthread_condattr_destroy.c
|
2023-01-20 15:41:20 +01:00
|
|
|
CSRCS += pthread_condattr_getpshared.c pthread_condattr_setpshared.c
|
2020-06-29 16:26:29 +02:00
|
|
|
CSRCS += pthread_condattr_setclock.c pthread_condattr_getclock.c
|
2020-07-27 07:46:03 +02:00
|
|
|
CSRCS += pthread_condinit.c pthread_conddestroy.c pthread_condtimedwait.c
|
2023-01-23 23:52:51 +01:00
|
|
|
CSRCS += pthread_create.c pthread_exit.c pthread_kill.c
|
2022-02-05 10:06:51 +01:00
|
|
|
CSRCS += pthread_setname_np.c pthread_getname_np.c
|
2020-06-29 16:26:29 +02:00
|
|
|
CSRCS += pthread_get_stackaddr_np.c pthread_get_stacksize_np.c
|
2016-11-05 18:06:52 +01:00
|
|
|
CSRCS += pthread_mutexattr_init.c pthread_mutexattr_destroy.c
|
|
|
|
CSRCS += pthread_mutexattr_getpshared.c pthread_mutexattr_setpshared.c
|
|
|
|
CSRCS += pthread_mutexattr_setprotocol.c pthread_mutexattr_getprotocol.c
|
|
|
|
CSRCS += pthread_mutexattr_settype.c pthread_mutexattr_gettype.c
|
2017-03-27 02:37:24 +02:00
|
|
|
CSRCS += pthread_mutexattr_setrobust.c pthread_mutexattr_getrobust.c
|
2019-02-26 01:19:13 +01:00
|
|
|
CSRCS += pthread_mutex_lock.c
|
2021-11-22 07:00:24 +01:00
|
|
|
CSRCS += pthread_once.c pthread_yield.c pthread_atfork.c
|
2023-01-20 15:06:45 +01:00
|
|
|
CSRCS += pthread_rwlockattr_init.c pthread_rwlockattr_destroy.c
|
|
|
|
CSRCS += pthread_rwlockattr_getpshared.c pthread_rwlockattr_setpshared.c
|
2020-06-29 16:26:29 +02:00
|
|
|
CSRCS += pthread_rwlock.c pthread_rwlock_rdlock.c pthread_rwlock_wrlock.c
|
2016-12-10 23:06:14 +01:00
|
|
|
CSRCS += pthread_setcancelstate.c pthread_setcanceltype.c
|
2023-06-22 11:31:01 +02:00
|
|
|
CSRCS += pthread_testcancel.c pthread_getcpuclockid.c
|
2024-06-17 11:27:14 +02:00
|
|
|
CSRCS += pthread_self.c pthread_gettid_np.c
|
2017-04-07 15:03:00 +02:00
|
|
|
|
2016-02-20 00:33:35 +01:00
|
|
|
ifeq ($(CONFIG_SMP),y)
|
2016-11-02 14:37:56 +01:00
|
|
|
CSRCS += pthread_attr_getaffinity.c pthread_attr_setaffinity.c
|
2016-02-20 00:33:35 +01:00
|
|
|
endif
|
|
|
|
|
2019-02-28 17:21:05 +01:00
|
|
|
ifeq ($(CONFIG_PTHREAD_SPINLOCKS),y)
|
|
|
|
CSRCS += pthread_spinlock.c
|
|
|
|
endif
|
|
|
|
|
2023-06-13 08:49:56 +02:00
|
|
|
ifneq ($(CONFIG_PTHREAD_CLEANUP_STACKSIZE),0)
|
2021-04-30 12:12:09 +02:00
|
|
|
CSRCS += pthread_cleanup.c
|
|
|
|
endif
|
|
|
|
|
2020-05-08 15:23:26 +02:00
|
|
|
endif # CONFIG_DISABLE_PTHREAD
|
|
|
|
|
2012-11-10 17:06:01 +01:00
|
|
|
# Add the pthread directory to the build
|
|
|
|
|
|
|
|
DEPPATH += --dep-path pthread
|
|
|
|
VPATH += :pthread
|