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