boards/Kconfig: introduce ARCH_BOARD_COMMON option

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko
2022-03-10 19:18:20 +01:00
committed by Xiang Xiao
parent a958e7f58e
commit dab5bb6bd3
190 changed files with 230 additions and 63 deletions
-10
View File
@@ -3,14 +3,6 @@
# see the file kconfig-language.txt in the NuttX tools repository.
#
config BOARD_STM32_COMMON
bool "Board common logic"
default n
---help---
Board common logic located in each board/common folder.
if BOARD_STM32_COMMON
if STM32_FOC
menuconfig BOARD_STM32_IHM07M1
@@ -77,5 +69,3 @@ config BOARD_STM32_HALL3PHASE_SAMPLES
default 10
endif # SENSORS_HALL3PHASE
endif # BOARD_STM32_COMMON
-1
View File
@@ -31,4 +31,3 @@ include $(TOPDIR)/boards/Board.mk
ARCHSRCDIR = $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src
BOARDDIR = $(ARCHSRCDIR)$(DELIM)board
CFLAGS += $(shell $(INCDIR) "$(CC)" $(BOARDDIR)$(DELIM)include)
+4
View File
@@ -18,6 +18,8 @@
#
#############################################################################
ifeq ($(CONFIG_ARCH_BOARD_COMMON),y)
ifeq ($(CONFIG_SENSORS_BMP180),y)
CSRCS += stm32_bmp180.c
endif
@@ -137,3 +139,5 @@ endif
DEPPATH += --dep-path src
VPATH += :src
CFLAGS += $(shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)src)
endif