boards/stm32wl5: simplify Makefile

Remove ifeq and endif and replace them with CSRC-$(CONFIG) form.
This simplifies Makefile and makes it a tiny bit more readable.

Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
This commit is contained in:
Michał Łyszczek 2022-08-04 13:13:59 +02:00 committed by Xiang Xiao
parent 4e967c67b4
commit 71d4573cc3

View File

@ -22,23 +22,11 @@ include $(TOPDIR)/Make.defs
CSRCS = stm32_boot.c stm32_leds.c
ifeq ($(CONFIG_BOARDCTL),y)
CSRCS += stm32_appinit.c
endif
ifeq ($(CONFIG_ARCH_BUTTONS),y)
CSRCS += stm32_buttons.c
endif
ifeq ($(CONFIG_ARCH_BOARD_FLASH_MOUNT),y)
CSRCS += stm32_flash.c
endif
ifeq ($(CONFIG_SPI_DRIVER),y)
CSRCS += stm32_spi.c
endif
CSRCS-$(CONFIG_ARCH_BOARD_IPCC) = stm32_ipcc.c
CSRCS-$(CONFIG_BOARDCTL) += stm32_appinit.c
CSRCS-$(CONFIG_ARCH_BUTTONS) += stm32_buttons.c
CSRCS-$(CONFIG_ARCH_BOARD_FLASH_MOUNT) += stm32_flash.c
CSRCS-$(CONFIG_SPI_DRIVER) += stm32_spi.c
CSRCS-$(CONFIG_ARCH_BOARD_IPCC) += stm32_ipcc.c
ifeq ($(CONFIG_VIDEO_FB),y)
ifeq ($(CONFIG_LCD_SSD1680),y)