2014-03-28 22:20:26 +01:00
|
|
|
############################################################################
|
2019-08-15 18:19:17 +02:00
|
|
|
# boards/arm/sama5/sama5d3-xplained/src/Makefile
|
2014-03-28 22:20:26 +01:00
|
|
|
#
|
2021-03-05 10:18:57 +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
|
2014-03-28 22:20:26 +01:00
|
|
|
#
|
2021-03-05 10:18:57 +01:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2014-03-28 22:20:26 +01:00
|
|
|
#
|
2021-03-05 10:18:57 +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.
|
2014-03-28 22:20:26 +01:00
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2020-05-18 21:42:11 +02:00
|
|
|
include $(TOPDIR)/Make.defs
|
2014-03-28 22:20:26 +01:00
|
|
|
|
|
|
|
CSRCS = sam_boot.c
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SAMA5_SPI0),y)
|
|
|
|
CSRCS += sam_spi.c
|
|
|
|
else
|
|
|
|
ifeq ($(CONFIG_SAMA5_SPI1),y)
|
|
|
|
CSRCS += sam_spi.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SAMA5_DDRCS),y)
|
|
|
|
CSRCS += sam_sdram.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SAMA5_EBICS3_NAND),y)
|
|
|
|
CSRCS += sam_nandflash.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_MTD_AT25),y)
|
|
|
|
ifeq ($(CONFIG_SAMA5_SPI0),y)
|
|
|
|
CSRCS += sam_at25.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SAMA5_HSMCI0),y)
|
|
|
|
CSRCS += sam_hsmci.c
|
|
|
|
else
|
|
|
|
ifeq ($(CONFIG_SAMA5_HSMCI1),y)
|
|
|
|
CSRCS += sam_hsmci.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_SAMA5_UHPHS),y)
|
|
|
|
CSRCS += sam_usb.c
|
|
|
|
else
|
|
|
|
ifeq ($(CONFIG_SAMA5_UDPHS),y)
|
|
|
|
CSRCS += sam_usb.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2014-06-11 01:40:25 +02:00
|
|
|
ifeq ($(CONFIG_SAMA5_EMACA),y)
|
2014-03-28 22:20:26 +01:00
|
|
|
CSRCS += sam_ethernet.c
|
|
|
|
else
|
|
|
|
ifeq ($(CONFIG_SAMA5_GMAC),y)
|
|
|
|
CSRCS += sam_ethernet.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2016-02-04 19:14:17 +01:00
|
|
|
ifeq ($(CONFIG_LIB_BOARDCTL),y)
|
2016-02-04 19:03:09 +01:00
|
|
|
CSRCS += sam_appinit.c
|
2020-01-10 11:13:37 +01:00
|
|
|
CSRCS += sam_bringup.c
|
2014-03-28 22:20:26 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_ADC),y)
|
|
|
|
CSRCS += sam_adc.c
|
2021-04-08 11:33:58 +02:00
|
|
|
ifeq ($(CONFIG_INPUT_AJOYSTICK),y)
|
2014-12-03 19:24:23 +01:00
|
|
|
CSRCS += sam_ajoystick.c
|
|
|
|
endif
|
2014-03-28 22:20:26 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_PWM),y)
|
|
|
|
CSRCS += sam_pwm.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_CAN),y)
|
|
|
|
CSRCS += sam_can.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_AUDIO_I2SCHAR),y)
|
|
|
|
ifeq ($(CONFIG_SAMA5_SSC0),y)
|
|
|
|
CSRCS += sam_i2schar.c
|
|
|
|
else
|
|
|
|
ifeq ($(CONFIG_SAMA5_SSC1),y)
|
|
|
|
CSRCS += sam_i2schar.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_USBMSC),y)
|
|
|
|
CSRCS += sam_usbmsc.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_ARCH_FPU),y)
|
|
|
|
CSRCS += sam_ostest.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_ARCH_LEDS),y)
|
|
|
|
CSRCS += sam_autoleds.c
|
|
|
|
else
|
|
|
|
CSRCS += sam_userleds.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_ARCH_BUTTONS),y)
|
|
|
|
CSRCS += sam_buttons.c
|
|
|
|
endif
|
|
|
|
|
2019-08-05 14:04:14 +02:00
|
|
|
include $(TOPDIR)/boards/Board.mk
|