193 lines
3.8 KiB
Plaintext
193 lines
3.8 KiB
Plaintext
############################################################################
|
|
# boards/arm/stm32/stm32f4discovery/src/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.
|
|
#
|
|
############################################################################
|
|
|
|
include $(TOPDIR)/Make.defs
|
|
|
|
CSRCS = stm32_boot.c stm32_bringup.c stm32_spi.c
|
|
|
|
ifeq ($(CONFIG_ARCH_LEDS),y)
|
|
CSRCS += stm32_autoleds.c
|
|
else
|
|
CSRCS += stm32_userleds.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_AUDIO_CS43L22),y)
|
|
CSRCS += stm32_cs43l22.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ARCH_BUTTONS),y)
|
|
CSRCS += stm32_buttons.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
|
|
CSRCS += stm32_can.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_STM32_OTGFS),y)
|
|
CSRCS += stm32_usb.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LCD_ST7567),y)
|
|
CSRCS += stm32_st7567.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ENC28J60),y)
|
|
CSRCS += stm32_enc28j60.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_NET_W5500),y)
|
|
CSRCS += stm32_w5500.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LPWAN_SX127X),y)
|
|
CSRCS += stm32_sx127x.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LCD_MAX7219),y)
|
|
CSRCS += stm32_max7219.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LCD_ST7032),y)
|
|
CSRCS += stm32_st7032.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_PCA9635PW),y)
|
|
CSRCS += stm32_pca9635.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_STM32_SDIO),y)
|
|
CSRCS += stm32_sdio.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_STM32_ETHMAC),y)
|
|
CSRCS += stm32_ethernet.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LEDS_MAX7219),y)
|
|
CSRCS += stm32_max7219_leds.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_RGBLED),y)
|
|
CSRCS += stm32_rgbled.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_RTC_DS1307),y)
|
|
CSRCS += stm32_ds1307.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_PWM),y)
|
|
CSRCS += stm32_pwm.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_CAPTURE),y)
|
|
CSRCS += stm32_capture.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_BOARDCTL),y)
|
|
CSRCS += stm32_appinit.c
|
|
ifeq ($(CONFIG_BOARDCTL_RESET),y)
|
|
CSRCS += stm32_reset.c
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ARCH_CUSTOM_PMINIT),y)
|
|
CSRCS += stm32_pm.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_PM_BUTTONS),y)
|
|
CSRCS += stm32_pmbuttons.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_ARCH_IDLE_CUSTOM),y)
|
|
CSRCS += stm32_idle.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_STM32_FSMC),y)
|
|
CSRCS += stm32_extmem.c
|
|
|
|
ifeq ($(CONFIG_LCD_SSD1289),y)
|
|
CSRCS += stm32_ssd1289.c
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LCD_APA102),y)
|
|
CSRCS += stm32_apa102.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LCD_SSD1351),y)
|
|
CSRCS += stm32_ssd1351.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LCD_UG2864AMBAG01),y)
|
|
CSRCS += stm32_ug2864ambag01.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LCD_UG2864HSWEG01),y)
|
|
CSRCS += stm32_ug2864hsweg01.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_TIMER),y)
|
|
CSRCS += stm32_timer.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_STM32_HCIUART),y)
|
|
ifeq ($(CONFIG_BLUETOOTH_UART),y)
|
|
CSRCS += stm32_hciuart.c
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(CONFIG_STM32_ROMFS),y)
|
|
CSRCS += stm32_romfs_initialize.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_BOARDCTL_UNIQUEID),y)
|
|
CSRCS += stm32_uid.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_USBMSC),y)
|
|
CSRCS += stm32_usbmsc.c
|
|
endif
|
|
|
|
ifneq ($(CONFIG_STM32_ETHMAC),y)
|
|
ifeq ($(CONFIG_NETDEVICES),y)
|
|
CSRCS += stm32_netinit.c
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(CONFIG_MMCSD_SPI),y)
|
|
CSRCS += stm32_mmcsd.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_WL_GS2200M),y)
|
|
CSRCS += stm32_gs2200m.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_LCD_ST7789),y)
|
|
CSRCS += stm32_st7789.c
|
|
endif
|
|
|
|
ifeq ($(CONFIG_INPUT_DJOYSTICK),y)
|
|
CSRCS += stm32_djoystick.c
|
|
endif
|
|
|
|
DEPPATH += --dep-path board
|
|
VPATH += :board
|
|
CFLAGS += $(shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board)
|