mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
6cfb132232
Signed-off-by: chao.an <anchao@xiaomi.com>
168 lines
4.2 KiB
Plaintext
168 lines
4.2 KiB
Plaintext
############################################################################
|
|
# arch/arm/src/imxrt/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.
|
|
#
|
|
############################################################################
|
|
|
|
# Common ARM and Cortex-M7 files
|
|
|
|
CMN_ASRCS = arm_saveusercontext.S arm_fullcontextrestore.S
|
|
CMN_ASRCS += arm_testset.S arm_fetchadd.S vfork.S
|
|
|
|
CMN_CSRCS = arm_assert.c arm_blocktask.c arm_copyfullstate.c
|
|
CMN_CSRCS += arm_createstack.c arm_mdelay.c arm_udelay.c arm_exit.c
|
|
CMN_CSRCS += arm_initialize.c arm_initialstate.c arm_interruptcontext.c
|
|
CMN_CSRCS += arm_memfault.c arm_modifyreg8.c arm_modifyreg16.c arm_modifyreg32.c
|
|
CMN_CSRCS += arm_releasepending.c arm_releasestack.c arm_reprioritizertr.c
|
|
CMN_CSRCS += arm_schedulesigaction.c arm_sigdeliver.c arm_stackframe.c
|
|
CMN_CSRCS += arm_unblocktask.c arm_usestack.c arm_doirq.c arm_hardfault.c
|
|
CMN_CSRCS += arm_svcall.c arm_vfork.c arm_trigger_irq.c arm_systemreset.c
|
|
CMN_CSRCS += arm_switchcontext.c
|
|
|
|
ifeq ($(CONFIG_ARMV7M_STACKCHECK),y)
|
|
CMN_CSRCS += arm_stackcheck.c
|
|
endif
|
|
|
|
# Configuration-dependent common files
|
|
|
|
ifeq ($(CONFIG_ARMV7M_LAZYFPU),y)
|
|
CMN_ASRCS += arm_lazyexception.S
|
|
else
|
|
CMN_ASRCS += arm_exception.S
|
|
endif
|
|
CMN_CSRCS += arm_vectors.c
|
|
|
|
ifeq ($(CONFIG_ARCH_RAMVECTORS),y)
|
|
CMN_CSRCS += arm_ramvec_initialize.c arm_ramvec_attach.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ARM_MPU),y)
|
|
CMN_CSRCS += arm_mpu.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_BUILD_PROTECTED),y)
|
|
CMN_CSRCS += arm_task_start.c arm_pthread_start.c
|
|
CMN_CSRCS += arm_pthread_exit.c
|
|
CMN_CSRCS += arm_signal_dispatch.c
|
|
CMN_UASRCS += arm_signal_handler.S
|
|
endif
|
|
|
|
ifeq ($(CONFIG_STACK_COLORATION),y)
|
|
CMN_CSRCS += arm_checkstack.c
|
|
endif
|
|
|
|
CMN_CSRCS += arm_cache.c
|
|
|
|
ifeq ($(CONFIG_ARCH_FPU),y)
|
|
CMN_ASRCS += arm_fpu.S
|
|
CMN_CSRCS += arm_copyarmstate.c
|
|
endif
|
|
|
|
# Required i.MX RT files
|
|
|
|
CHIP_CSRCS = imxrt_allocateheap.c imxrt_start.c imxrt_clockconfig.c
|
|
CHIP_CSRCS += imxrt_periphclks.c imxrt_irq.c imxrt_clrpend.c imxrt_gpio.c
|
|
CHIP_CSRCS += imxrt_daisy.c imxrt_wdog.c imxrt_iomuxc.c imxrt_serial.c
|
|
CHIP_CSRCS += imxrt_xbar.c imxrt_ocotp.c imxrt_lowputc.c
|
|
|
|
# Configuration-dependent i.MX RT files
|
|
|
|
ifneq ($(CONFIG_ARCH_IDLE_CUSTOM),y)
|
|
CHIP_CSRCS += imxrt_idle.c
|
|
endif
|
|
|
|
ifneq ($(CONFIG_SCHED_TICKLESS),y)
|
|
CHIP_CSRCS += imxrt_timerisr.c
|
|
else
|
|
CHIP_CSRCS += imxrt_tickless.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_IMXRT_GPIO_IRQ),y)
|
|
CHIP_CSRCS += imxrt_gpioirq.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ARM_MPU),y)
|
|
CHIP_CSRCS += imxrt_mpuinit.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_BUILD_PROTECTED),y)
|
|
CHIP_CSRCS += imxrt_userspace.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_IMXRT_EDMA),y)
|
|
CHIP_CSRCS += imxrt_edma.c
|
|
endif
|
|
|
|
ifdef CONFIG_IMXRT_USDHC
|
|
CHIP_CSRCS += imxrt_usdhc.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_IMXRT_LCD),y)
|
|
CHIP_CSRCS += imxrt_lcd.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_IMXRT_FLEXCAN),y)
|
|
CHIP_CSRCS += imxrt_flexcan.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_IMXRT_FLEXPWM),y)
|
|
CHIP_CSRCS += imxrt_flexpwm.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_IMXRT_SNVS_LPSRTC),y)
|
|
CHIP_CSRCS += imxrt_lpsrtc.c
|
|
CHIP_CSRCS += imxrt_hprtc.c
|
|
else ifeq ($(CONFIG_IMXRT_SNVS_HPRTC),y)
|
|
CHIP_CSRCS += imxrt_hprtc.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_RTC_DRIVER),y)
|
|
CHIP_CSRCS += imxrt_rtc_lowerhalf.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_IMXRT_ENET),y)
|
|
CHIP_CSRCS += imxrt_enet.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_IMXRT_LPI2C),y)
|
|
CHIP_CSRCS += imxrt_lpi2c.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_IMXRT_LPSPI),y)
|
|
CHIP_CSRCS += imxrt_lpspi.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_IMXRT_FLEXSPI),y)
|
|
CHIP_CSRCS += imxrt_flexspi.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_IMXRT_ENC),y)
|
|
CHIP_CSRCS += imxrt_enc.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_IMXRT_USBOTG),y)
|
|
CHIP_CSRCS += imxrt_ehci.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_IMXRT_USBDEV),y)
|
|
CHIP_CSRCS += imxrt_usbdev.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_IMXRT_ADC),y)
|
|
CHIP_CSRCS += imxrt_adc.c
|
|
endif
|