c33d1c9c97
1. as we can use fork to implement vfork, so we rename the vfork to fork, and use the fork method as the base to implement vfork method 2. create the vfork function as a libc function based on fork function Signed-off-by: guoshichao <guoshichao@xiaomi.com>
98 lines
3.0 KiB
Plaintext
98 lines
3.0 KiB
Plaintext
############################################################################
|
|
# arch/mips/src/pic32mz/Make.defs
|
|
#
|
|
# 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
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# 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.
|
|
#
|
|
############################################################################
|
|
|
|
# The start-up, "head", file
|
|
|
|
HEAD_ASRC = pic32mz_head.S
|
|
|
|
# Common MIPS files
|
|
|
|
CMN_ASRCS = mips_syscall0.S fork.S mips_cache.S
|
|
CMN_CSRCS = mips_allocateheap.c mips_copystate.c mips_createstack.c
|
|
CMN_CSRCS += mips_doirq.c mips_exit.c mips_getintstack.c mips_initialize.c
|
|
CMN_CSRCS += mips_initialstate.c mips_irq.c mips_lowputs.c mips_mdelay.c
|
|
CMN_CSRCS += mips_modifyreg8.c mips_modifyreg16.c mips_modifyreg32.c
|
|
CMN_CSRCS += mips_nputs.c mips_releasestack.c mips_registerdump.c
|
|
CMN_CSRCS += mips_schedulesigaction.c mips_sigdeliver.c mips_swint0.c
|
|
CMN_CSRCS += mips_stackframe.c mips_switchcontext.c mips_saveusercontext.c
|
|
CMN_CSRCS += mips_udelay.c mips_usestack.c mips_fork.c
|
|
|
|
# Configuration dependent common files
|
|
|
|
ifneq ($(CONFIG_ARCH_IDLE_CUSTOM),y)
|
|
CMN_CSRCS += mips_idle.c
|
|
endif
|
|
|
|
# Use of common/mips_etherstub.c is deprecated. The preferred mechanism is to
|
|
# use CONFIG_NETDEV_LATEINIT=y to suppress the call to mips_netinitialize() in
|
|
# mips_initialize(). Then this stub would not be needed.
|
|
|
|
ifneq ($(CONFIG_PIC32MZ_ETHERNET),y)
|
|
ifeq ($(CONFIG_NET),y)
|
|
CMN_CSRCS += mips_etherstub.c
|
|
endif
|
|
endif
|
|
|
|
# Required PIC32MZ files
|
|
|
|
CHIP_CSRCS = pic32mz_lowinit.c pic32mz_exception.c pic32mz_decodeirq.c
|
|
CHIP_CSRCS += pic32mz_irq.c pic32mz_timerisr.c pic32mz_gpio.c
|
|
CHIP_CSRCS += pic32mz_lowconsole.c pic32mz_serial.c
|
|
|
|
# Configuration-dependent PIC32MZ files
|
|
|
|
ifeq ($(CONFIG_PIC32MZ_GPIOIRQ),y)
|
|
CHIP_CSRCS += pic32mz_gpioirq.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_PIC32MZ_SPI),y)
|
|
CHIP_CSRCS += pic32mz_spi.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_PIC32MZ_I2C),y)
|
|
CHIP_CSRCS += pic32mz_i2c.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_PIC32MZ_TIMER),y)
|
|
CHIP_CSRCS += pic32mz_timer.c
|
|
ifeq ($(CONFIG_TIMER),y)
|
|
CHIP_CSRCS += pic32mz_timer_lowerhalf.c
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(CONFIG_PIC32MZ_FREERUN),y)
|
|
CHIP_CSRCS += pic32mz_freerun.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_PIC32MZ_ONESHOT),y)
|
|
CHIP_CSRCS += pic32mz_oneshot.c
|
|
ifeq ($(CONFIG_ONESHOT),y)
|
|
CHIP_CSRCS += pic32mz_oneshot_lowerhalf.c
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(CONFIG_PIC32MZ_ETHERNET),y)
|
|
CHIP_CSRCS += pic32mz_ethernet.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_PIC32MZ_DMA),y)
|
|
CHIP_CSRCS += pic32mz_dma.c
|
|
endif
|