2014-08-09 04:06:42 +08:00
|
|
|
############################################################################
|
|
|
|
# sched/group/Make.defs
|
|
|
|
#
|
2020-05-08 21:23:26 +08: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-09 04:06:42 +08:00
|
|
|
#
|
2020-05-08 21:23:26 +08:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2014-08-09 04:06:42 +08:00
|
|
|
#
|
2020-05-08 21:23:26 +08: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-09 04:06:42 +08:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2014-10-07 21:42:36 +08:00
|
|
|
CSRCS += group_create.c group_join.c group_leave.c group_find.c
|
|
|
|
CSRCS += group_setupstreams.c group_setupidlefiles.c group_setuptaskfiles.c
|
2019-04-30 04:52:05 +08:00
|
|
|
CSRCS += group_foreachchild.c group_killchildren.c group_signal.c
|
2014-08-09 04:06:42 +08:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_SCHED_HAVE_PARENT),y)
|
2014-10-07 21:42:36 +08:00
|
|
|
CSRCS += task_reparent.c
|
2014-08-09 04:06:42 +08:00
|
|
|
ifeq ($(CONFIG_SCHED_CHILD_STATUS),y)
|
2014-10-07 21:42:36 +08:00
|
|
|
CSRCS += group_childstatus.c
|
2014-08-09 04:06:42 +08:00
|
|
|
endif
|
2015-12-23 01:48:17 +08:00
|
|
|
else
|
|
|
|
ifeq ($(CONFIG_SCHED_WAITPID),y)
|
|
|
|
CSRCS += group_waiter.c
|
|
|
|
endif
|
2014-08-09 04:06:42 +08:00
|
|
|
endif
|
|
|
|
|
2019-08-07 04:13:43 +08:00
|
|
|
ifeq ($(CONFIG_SCHED_USER_IDENTITY),y)
|
|
|
|
CSRCS += group_setuid.c group_setgid.c group_getuid.c group_getgid.c
|
|
|
|
endif
|
|
|
|
|
2014-08-27 04:54:39 +08:00
|
|
|
ifeq ($(CONFIG_ARCH_ADDRENV),y)
|
2014-10-07 21:42:36 +08:00
|
|
|
CSRCS += group_addrenv.c
|
2014-08-27 04:54:39 +08:00
|
|
|
endif
|
|
|
|
|
2018-08-31 00:27:18 +08:00
|
|
|
ifeq ($(CONFIG_SIG_SIGSTOP_ACTION),y)
|
|
|
|
CSRCS += group_suspendchildren.c group_continue.c
|
|
|
|
endif
|
|
|
|
|
2018-08-05 22:09:54 +08:00
|
|
|
ifeq ($(CONFIG_BINFMT_LOADABLE),y)
|
|
|
|
CSRCS += group_exitinfo.c
|
|
|
|
endif
|
|
|
|
|
2020-04-30 03:21:23 +08:00
|
|
|
ifneq ($(CONFIG_BUILD_FLAT),y)
|
2014-10-07 21:42:36 +08:00
|
|
|
CSRCS += group_malloc.c group_zalloc.c group_free.c
|
2014-09-04 03:49:35 +08:00
|
|
|
endif
|
|
|
|
|
2021-06-09 14:53:23 +08:00
|
|
|
ifneq ($(CONFIG_TLS_NELEM),0)
|
|
|
|
CSRCS += group_tlsalloc.c group_tlsfree.c
|
|
|
|
CSRCS += group_tlsgetset.c group_tlsgetdtor.c group_tlssetdtor.c
|
|
|
|
endif
|
|
|
|
|
2014-08-09 04:06:42 +08:00
|
|
|
# Include group build support
|
|
|
|
|
|
|
|
DEPPATH += --dep-path group
|
|
|
|
VPATH += :group
|