2011-03-20 19:18:19 +01:00
|
|
|
############################################################################
|
2018-12-12 23:37:38 +01:00
|
|
|
# apps/testing/ostest/Makefile
|
2011-03-20 19:18:19 +01:00
|
|
|
#
|
2021-03-18 20:41:20 +01: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
|
2011-03-20 19:18:19 +01:00
|
|
|
#
|
2021-03-18 20:41:20 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2011-03-20 19:18:19 +01:00
|
|
|
#
|
2021-03-18 20:41:20 +01: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.
|
2011-03-20 19:18:19 +01:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2020-05-20 06:35:03 +02:00
|
|
|
include $(APPDIR)/Make.defs
|
2011-03-20 19:18:19 +01:00
|
|
|
|
2012-03-22 01:51:01 +01:00
|
|
|
# ostest built-in application info
|
|
|
|
|
2019-10-06 14:14:39 +02:00
|
|
|
PROGNAME = ostest
|
2014-09-07 16:43:01 +02:00
|
|
|
PRIORITY = SCHED_PRIORITY_DEFAULT
|
2020-03-27 05:57:26 +01:00
|
|
|
STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE)
|
2019-10-06 14:14:39 +02:00
|
|
|
MODULE = $(CONFIG_TESTING_OSTEST)
|
2012-03-22 01:51:01 +01:00
|
|
|
|
2011-03-20 19:18:19 +01:00
|
|
|
# NuttX OS Test
|
|
|
|
|
2021-04-01 22:17:07 +02:00
|
|
|
CSRCS = getopt.c dev_null.c restart.c sigprocmask.c sighand.c signest.c
|
2014-09-07 16:43:01 +02:00
|
|
|
MAINSRC = ostest_main.c
|
2011-03-20 19:18:19 +01:00
|
|
|
|
2018-08-30 20:00:41 +02:00
|
|
|
ifeq ($(CONFIG_SIG_SIGSTOP_ACTION),y)
|
|
|
|
ifeq ($(CONFIG_SIG_SIGKILL_ACTION),y)
|
|
|
|
CSRCS += suspend.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2012-02-24 22:34:55 +01:00
|
|
|
ifeq ($(CONFIG_ARCH_FPU),y)
|
2018-12-12 23:37:38 +01:00
|
|
|
ifneq ($(CONFIG_TESTING_OSTEST_FPUTESTDISABLE),y)
|
2014-09-07 16:43:01 +02:00
|
|
|
CSRCS += fpu.c
|
2012-02-24 22:34:55 +01:00
|
|
|
endif
|
2016-12-29 18:47:09 +01:00
|
|
|
endif
|
2012-02-24 22:34:55 +01:00
|
|
|
|
2017-02-09 17:58:51 +01:00
|
|
|
ifneq ($(CONFIG_STDIO_DISABLE_BUFFERING),y)
|
|
|
|
CSRCS += setvbuf.c
|
|
|
|
endif
|
|
|
|
|
2020-05-07 17:56:21 +02:00
|
|
|
ifneq ($(CONFIG_TLS_NELEM),0)
|
2016-03-11 21:02:00 +01:00
|
|
|
CSRCS += tls.c
|
|
|
|
endif
|
|
|
|
|
2018-12-12 23:37:38 +01:00
|
|
|
ifeq ($(CONFIG_TESTING_OSTEST_AIO),y)
|
2014-10-05 21:24:03 +02:00
|
|
|
CSRCS += aio.c
|
|
|
|
endif
|
|
|
|
|
2013-01-13 19:53:00 +01:00
|
|
|
ifeq ($(CONFIG_SCHED_WAITPID),y)
|
2014-09-07 16:43:01 +02:00
|
|
|
CSRCS += waitpid.c
|
2013-01-13 19:53:00 +01:00
|
|
|
endif
|
|
|
|
|
2011-03-20 19:18:19 +01:00
|
|
|
ifneq ($(CONFIG_DISABLE_PTHREAD),y)
|
2019-02-24 22:43:45 +01:00
|
|
|
CSRCS += cancel.c cond.c mutex.c timedmutex.c sem.c semtimed.c barrier.c
|
|
|
|
CSRCS += timedwait.c
|
|
|
|
CSRCS += pthread_rwlock.c pthread_rwlock_cancel.c
|
2017-03-27 14:55:51 +02:00
|
|
|
|
2020-05-08 16:52:53 +02:00
|
|
|
ifneq ($(CONFIG_TLS_NELEM),0)
|
2018-12-28 21:17:40 +01:00
|
|
|
CSRCS += specific.c
|
|
|
|
endif
|
|
|
|
|
2017-04-10 15:20:48 +02:00
|
|
|
ifeq ($(CONFIG_PTHREAD_CLEANUP),y)
|
|
|
|
CSRCS += pthread_cleanup.c
|
2017-03-27 14:55:51 +02:00
|
|
|
endif
|
2015-07-24 21:50:31 +02:00
|
|
|
|
2017-04-10 15:20:48 +02:00
|
|
|
ifneq ($(CONFIG_PTHREAD_MUTEX_UNSAFE),y)
|
|
|
|
CSRCS += robust.c
|
2014-09-28 21:02:36 +02:00
|
|
|
endif
|
2015-07-24 21:50:31 +02:00
|
|
|
|
2017-03-27 17:08:00 +02:00
|
|
|
ifeq ($(CONFIG_PTHREAD_MUTEX_TYPES),y)
|
2014-09-07 16:43:01 +02:00
|
|
|
CSRCS += rmutex.c
|
2015-07-24 21:50:31 +02:00
|
|
|
endif
|
|
|
|
|
2017-04-10 15:20:48 +02:00
|
|
|
ifeq ($(CONFIG_FS_NAMED_SEMAPHORES),y)
|
|
|
|
CSRCS += nsem.c
|
|
|
|
endif
|
|
|
|
|
2015-07-24 21:50:31 +02:00
|
|
|
ifneq ($(CONFIG_RR_INTERVAL),0)
|
|
|
|
CSRCS += roundrobin.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SCHED_SPORADIC),y)
|
2021-03-18 20:41:20 +01:00
|
|
|
CSRCS += sporadic.c sporadic2.c
|
2015-07-24 21:50:31 +02:00
|
|
|
endif
|
2011-03-20 19:18:19 +01:00
|
|
|
endif # CONFIG_DISABLE_PTHREAD
|
|
|
|
|
|
|
|
ifneq ($(CONFIG_DISABLE_MQUEUE),y)
|
|
|
|
ifneq ($(CONFIG_DISABLE_PTHREAD),y)
|
2014-09-07 16:43:01 +02:00
|
|
|
CSRCS += mqueue.c timedmqueue.c
|
2011-03-20 19:18:19 +01:00
|
|
|
endif # CONFIG_DISABLE_PTHREAD
|
|
|
|
endif # CONFIG_DISABLE_MQUEUE
|
|
|
|
|
|
|
|
ifneq ($(CONFIG_DISABLE_POSIX_TIMERS),y)
|
2014-09-07 16:43:01 +02:00
|
|
|
CSRCS += posixtimer.c
|
2015-12-30 23:29:21 +01:00
|
|
|
ifeq ($(CONFIG_SIG_EVTHREAD),y)
|
|
|
|
CSRCS += sigev_thread.c
|
|
|
|
endif
|
2011-03-20 19:18:19 +01:00
|
|
|
endif
|
|
|
|
|
2013-01-07 22:41:20 +01:00
|
|
|
ifeq ($(CONFIG_ARCH_HAVE_VFORK),y)
|
2013-02-08 23:53:14 +01:00
|
|
|
ifeq ($(CONFIG_SCHED_WAITPID),y)
|
2014-09-07 16:43:01 +02:00
|
|
|
CSRCS += vfork.c
|
2013-01-07 22:41:20 +01:00
|
|
|
endif
|
2013-02-08 23:53:14 +01:00
|
|
|
endif
|
2013-01-07 22:41:20 +01:00
|
|
|
|
2011-03-20 19:18:19 +01:00
|
|
|
ifneq ($(CONFIG_DISABLE_PTHREAD),y)
|
|
|
|
ifeq ($(CONFIG_PRIORITY_INHERITANCE),y)
|
2014-09-07 16:43:01 +02:00
|
|
|
CSRCS += prioinherit.c
|
2011-03-20 19:18:19 +01:00
|
|
|
endif # CONFIG_PRIORITY_INHERITANCE
|
|
|
|
endif # CONFIG_DISABLE_PTHREAD
|
|
|
|
|
2022-02-28 08:41:53 +01:00
|
|
|
ifeq ($(CONFIG_ARCH_SETJMP_H),y)
|
|
|
|
CSRCS += setjmp.c
|
|
|
|
endif
|
|
|
|
|
2015-09-05 19:37:38 +02:00
|
|
|
include $(APPDIR)/Application.mk
|