From 6ca46520df38854bf660f9be54957cceede39ded Mon Sep 17 00:00:00 2001 From: Matias Nitsche Date: Mon, 11 May 2020 14:39:37 -0300 Subject: [PATCH] stm32: migrate all boards to common logic system (Makefile -> Make.defs) --- boards/arm/stm32/axoloti/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/clicker2-stm32/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/cloudctrl/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/fire-stm32v2/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/hymini-stm32v/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/maple/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/mikroe-stm32f4/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/nucleo-f103rb/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/nucleo-f207zg/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/nucleo-f302r8/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/nucleo-f303re/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/nucleo-f334r8/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/nucleo-f410rb/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/nucleo-f429zi/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/nucleo-f446re/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/nucleo-f4x1re/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/nucleo-l152re/src/{Makefile => Make.defs} | 4 +++- .../arm/stm32/olimex-stm32-h405/src/{Makefile => Make.defs} | 4 +++- .../arm/stm32/olimex-stm32-h407/src/{Makefile => Make.defs} | 4 +++- .../arm/stm32/olimex-stm32-p107/src/{Makefile => Make.defs} | 4 +++- .../arm/stm32/olimex-stm32-p207/src/{Makefile => Make.defs} | 4 +++- .../arm/stm32/olimex-stm32-p407/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/olimexino-stm32/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/omnibusf4/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/photon/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/shenzhou/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/stm3210e-eval/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/stm3220g-eval/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/stm3240g-eval/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/stm32butterfly2/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/stm32f334-disco/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/stm32f3discovery/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/stm32f411e-disco/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/stm32f429i-disco/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/stm32ldiscovery/src/{Makefile => Make.defs} | 4 +++- boards/arm/stm32/stm32vldiscovery/src/{Makefile => Make.defs} | 4 +++- .../arm/stm32/viewtool-stm32f107/src/{Makefile => Make.defs} | 4 +++- 37 files changed, 111 insertions(+), 37 deletions(-) rename boards/arm/stm32/axoloti/src/{Makefile => Make.defs} (93%) rename boards/arm/stm32/clicker2-stm32/src/{Makefile => Make.defs} (93%) rename boards/arm/stm32/cloudctrl/src/{Makefile => Make.defs} (93%) rename boards/arm/stm32/fire-stm32v2/src/{Makefile => Make.defs} (93%) rename boards/arm/stm32/hymini-stm32v/src/{Makefile => Make.defs} (92%) rename boards/arm/stm32/maple/src/{Makefile => Make.defs} (92%) rename boards/arm/stm32/mikroe-stm32f4/src/{Makefile => Make.defs} (94%) rename boards/arm/stm32/nucleo-f103rb/src/{Makefile => Make.defs} (92%) rename boards/arm/stm32/nucleo-f207zg/src/{Makefile => Make.defs} (92%) rename boards/arm/stm32/nucleo-f302r8/src/{Makefile => Make.defs} (92%) rename boards/arm/stm32/nucleo-f303re/src/{Makefile => Make.defs} (93%) rename boards/arm/stm32/nucleo-f334r8/src/{Makefile => Make.defs} (93%) rename boards/arm/stm32/nucleo-f410rb/src/{Makefile => Make.defs} (92%) rename boards/arm/stm32/nucleo-f429zi/src/{Makefile => Make.defs} (91%) rename boards/arm/stm32/nucleo-f446re/src/{Makefile => Make.defs} (92%) rename boards/arm/stm32/nucleo-f4x1re/src/{Makefile => Make.defs} (93%) rename boards/arm/stm32/nucleo-l152re/src/{Makefile => Make.defs} (92%) rename boards/arm/stm32/olimex-stm32-h405/src/{Makefile => Make.defs} (92%) rename boards/arm/stm32/olimex-stm32-h407/src/{Makefile => Make.defs} (93%) rename boards/arm/stm32/olimex-stm32-p107/src/{Makefile => Make.defs} (92%) rename boards/arm/stm32/olimex-stm32-p207/src/{Makefile => Make.defs} (92%) rename boards/arm/stm32/olimex-stm32-p407/src/{Makefile => Make.defs} (93%) rename boards/arm/stm32/olimexino-stm32/src/{Makefile => Make.defs} (92%) rename boards/arm/stm32/omnibusf4/src/{Makefile => Make.defs} (94%) rename boards/arm/stm32/photon/src/{Makefile => Make.defs} (93%) rename boards/arm/stm32/shenzhou/src/{Makefile => Make.defs} (93%) rename boards/arm/stm32/stm3210e-eval/src/{Makefile => Make.defs} (94%) rename boards/arm/stm32/stm3220g-eval/src/{Makefile => Make.defs} (93%) rename boards/arm/stm32/stm3240g-eval/src/{Makefile => Make.defs} (93%) rename boards/arm/stm32/stm32butterfly2/src/{Makefile => Make.defs} (92%) rename boards/arm/stm32/stm32f334-disco/src/{Makefile => Make.defs} (93%) rename boards/arm/stm32/stm32f3discovery/src/{Makefile => Make.defs} (92%) rename boards/arm/stm32/stm32f411e-disco/src/{Makefile => Make.defs} (91%) rename boards/arm/stm32/stm32f429i-disco/src/{Makefile => Make.defs} (94%) rename boards/arm/stm32/stm32ldiscovery/src/{Makefile => Make.defs} (92%) rename boards/arm/stm32/stm32vldiscovery/src/{Makefile => Make.defs} (91%) rename boards/arm/stm32/viewtool-stm32f107/src/{Makefile => Make.defs} (94%) diff --git a/boards/arm/stm32/axoloti/src/Makefile b/boards/arm/stm32/axoloti/src/Make.defs similarity index 93% rename from boards/arm/stm32/axoloti/src/Makefile rename to boards/arm/stm32/axoloti/src/Make.defs index 6b43fddd6b..4145f00dce 100644 --- a/boards/arm/stm32/axoloti/src/Makefile +++ b/boards/arm/stm32/axoloti/src/Make.defs @@ -68,4 +68,6 @@ ifeq ($(CONFIG_USBHOST),y) CSRCS += stm32_usbhost.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/clicker2-stm32/src/Makefile b/boards/arm/stm32/clicker2-stm32/src/Make.defs similarity index 93% rename from boards/arm/stm32/clicker2-stm32/src/Makefile rename to boards/arm/stm32/clicker2-stm32/src/Make.defs index b323dad0a7..547f463e7c 100644 --- a/boards/arm/stm32/clicker2-stm32/src/Makefile +++ b/boards/arm/stm32/clicker2-stm32/src/Make.defs @@ -80,4 +80,6 @@ ifeq ($(CONFIG_CAN),y) CSRCS += stm32_can.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/cloudctrl/src/Makefile b/boards/arm/stm32/cloudctrl/src/Make.defs similarity index 93% rename from boards/arm/stm32/cloudctrl/src/Makefile rename to boards/arm/stm32/cloudctrl/src/Make.defs index 6a6bc84517..7bcb538c3c 100644 --- a/boards/arm/stm32/cloudctrl/src/Makefile +++ b/boards/arm/stm32/cloudctrl/src/Make.defs @@ -77,4 +77,6 @@ ifeq ($(CONFIG_STM32_PHYINIT),y) CSRCS += stm32_phyinit.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/fire-stm32v2/src/Makefile b/boards/arm/stm32/fire-stm32v2/src/Make.defs similarity index 93% rename from boards/arm/stm32/fire-stm32v2/src/Makefile rename to boards/arm/stm32/fire-stm32v2/src/Make.defs index 95e0f19a9c..5c1893b9bb 100644 --- a/boards/arm/stm32/fire-stm32v2/src/Makefile +++ b/boards/arm/stm32/fire-stm32v2/src/Make.defs @@ -68,4 +68,6 @@ ifeq ($(CONFIG_USBMSC),y) CSRCS += stm32_usbmsc.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/hymini-stm32v/src/Makefile b/boards/arm/stm32/hymini-stm32v/src/Make.defs similarity index 92% rename from boards/arm/stm32/hymini-stm32v/src/Makefile rename to boards/arm/stm32/hymini-stm32v/src/Make.defs index 3ae7013526..4fa3add473 100644 --- a/boards/arm/stm32/hymini-stm32v/src/Makefile +++ b/boards/arm/stm32/hymini-stm32v/src/Make.defs @@ -59,4 +59,6 @@ ifeq ($(CONFIG_USBMSC),y) CSRCS += stm32_usbmsc.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/maple/src/Makefile b/boards/arm/stm32/maple/src/Make.defs similarity index 92% rename from boards/arm/stm32/maple/src/Makefile rename to boards/arm/stm32/maple/src/Make.defs index 159346ecec..fe5d47d383 100644 --- a/boards/arm/stm32/maple/src/Makefile +++ b/boards/arm/stm32/maple/src/Make.defs @@ -56,4 +56,6 @@ ifeq ($(CONFIG_LIB_BOARDCTL),y) CSRCS += stm32_appinit.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/mikroe-stm32f4/src/Makefile b/boards/arm/stm32/mikroe-stm32f4/src/Make.defs similarity index 94% rename from boards/arm/stm32/mikroe-stm32f4/src/Makefile rename to boards/arm/stm32/mikroe-stm32f4/src/Make.defs index 453ef40523..844ebe25e0 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/Makefile +++ b/boards/arm/stm32/mikroe-stm32f4/src/Make.defs @@ -90,4 +90,6 @@ ifeq ($(CONFIG_AUDIO_VS1053),y) CSRCS += stm32_vs1053.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/nucleo-f103rb/src/Makefile b/boards/arm/stm32/nucleo-f103rb/src/Make.defs similarity index 92% rename from boards/arm/stm32/nucleo-f103rb/src/Makefile rename to boards/arm/stm32/nucleo-f103rb/src/Make.defs index 2dde01311e..143590187b 100644 --- a/boards/arm/stm32/nucleo-f103rb/src/Makefile +++ b/boards/arm/stm32/nucleo-f103rb/src/Make.defs @@ -60,4 +60,6 @@ ifeq ($(CONFIG_PWM),y) CSRCS += stm32_pwm.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/nucleo-f207zg/src/Makefile b/boards/arm/stm32/nucleo-f207zg/src/Make.defs similarity index 92% rename from boards/arm/stm32/nucleo-f207zg/src/Makefile rename to boards/arm/stm32/nucleo-f207zg/src/Make.defs index f56b925ac5..31610e25b3 100644 --- a/boards/arm/stm32/nucleo-f207zg/src/Makefile +++ b/boards/arm/stm32/nucleo-f207zg/src/Make.defs @@ -64,4 +64,6 @@ ifeq ($(CONFIG_PWM),y) CSRCS += stm32_pwm.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/nucleo-f302r8/src/Makefile b/boards/arm/stm32/nucleo-f302r8/src/Make.defs similarity index 92% rename from boards/arm/stm32/nucleo-f302r8/src/Makefile rename to boards/arm/stm32/nucleo-f302r8/src/Make.defs index 1ac13f2bc6..25496cfa67 100644 --- a/boards/arm/stm32/nucleo-f302r8/src/Makefile +++ b/boards/arm/stm32/nucleo-f302r8/src/Make.defs @@ -60,4 +60,6 @@ ifeq ($(CONFIG_NUCLEOF302R8_HIGHPRI),y) CSRCS += stm32_highpri.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/nucleo-f303re/src/Makefile b/boards/arm/stm32/nucleo-f303re/src/Make.defs similarity index 93% rename from boards/arm/stm32/nucleo-f303re/src/Makefile rename to boards/arm/stm32/nucleo-f303re/src/Make.defs index afd3a2c285..4d23e1a136 100644 --- a/boards/arm/stm32/nucleo-f303re/src/Makefile +++ b/boards/arm/stm32/nucleo-f303re/src/Make.defs @@ -86,4 +86,6 @@ ifeq ($(CONFIG_BOARDCTL_UNIQUEID),y) CSRCS += stm32_uid.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/nucleo-f334r8/src/Makefile b/boards/arm/stm32/nucleo-f334r8/src/Make.defs similarity index 93% rename from boards/arm/stm32/nucleo-f334r8/src/Makefile rename to boards/arm/stm32/nucleo-f334r8/src/Make.defs index d241f0f06d..b05ca7cd42 100644 --- a/boards/arm/stm32/nucleo-f334r8/src/Makefile +++ b/boards/arm/stm32/nucleo-f334r8/src/Make.defs @@ -96,4 +96,6 @@ ifeq ($(CONFIG_NUCLEOF334R8_SPWM),y) CSRCS += stm32_spwm.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/nucleo-f410rb/src/Makefile b/boards/arm/stm32/nucleo-f410rb/src/Make.defs similarity index 92% rename from boards/arm/stm32/nucleo-f410rb/src/Makefile rename to boards/arm/stm32/nucleo-f410rb/src/Make.defs index a704f7e6a1..d8dda5e437 100644 --- a/boards/arm/stm32/nucleo-f410rb/src/Makefile +++ b/boards/arm/stm32/nucleo-f410rb/src/Make.defs @@ -56,4 +56,6 @@ ifeq ($(CONFIG_LIB_BOARDCTL),y) CSRCS += stm32_appinit.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/nucleo-f429zi/src/Makefile b/boards/arm/stm32/nucleo-f429zi/src/Make.defs similarity index 91% rename from boards/arm/stm32/nucleo-f429zi/src/Makefile rename to boards/arm/stm32/nucleo-f429zi/src/Make.defs index 52e546fc0f..5301501f5d 100644 --- a/boards/arm/stm32/nucleo-f429zi/src/Makefile +++ b/boards/arm/stm32/nucleo-f429zi/src/Make.defs @@ -73,4 +73,6 @@ ifeq ($(CONFIG_STM32_ROMFS),y) CSRCS += stm32_romfs_initialize.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/nucleo-f446re/src/Makefile b/boards/arm/stm32/nucleo-f446re/src/Make.defs similarity index 92% rename from boards/arm/stm32/nucleo-f446re/src/Makefile rename to boards/arm/stm32/nucleo-f446re/src/Make.defs index 324c5e8064..06c61d93ef 100644 --- a/boards/arm/stm32/nucleo-f446re/src/Makefile +++ b/boards/arm/stm32/nucleo-f446re/src/Make.defs @@ -63,4 +63,6 @@ ifeq ($(CONFIG_NSH_LIBRARY),y) CSRCS += stm32_appinit.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/nucleo-f4x1re/src/Makefile b/boards/arm/stm32/nucleo-f4x1re/src/Make.defs similarity index 93% rename from boards/arm/stm32/nucleo-f4x1re/src/Makefile rename to boards/arm/stm32/nucleo-f4x1re/src/Make.defs index a4c1669ed7..273f635f5d 100644 --- a/boards/arm/stm32/nucleo-f4x1re/src/Makefile +++ b/boards/arm/stm32/nucleo-f4x1re/src/Make.defs @@ -67,4 +67,6 @@ ifeq ($(CONFIG_LIB_BOARDCTL),y) CSRCS += stm32_appinit.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/nucleo-l152re/src/Makefile b/boards/arm/stm32/nucleo-l152re/src/Make.defs similarity index 92% rename from boards/arm/stm32/nucleo-l152re/src/Makefile rename to boards/arm/stm32/nucleo-l152re/src/Make.defs index 1db18e7eef..379177cc1b 100644 --- a/boards/arm/stm32/nucleo-l152re/src/Makefile +++ b/boards/arm/stm32/nucleo-l152re/src/Make.defs @@ -52,4 +52,6 @@ ifeq ($(CONFIG_LIB_BOARDCTL),y) CSRCS += stm32_appinitialize.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/olimex-stm32-h405/src/Makefile b/boards/arm/stm32/olimex-stm32-h405/src/Make.defs similarity index 92% rename from boards/arm/stm32/olimex-stm32-h405/src/Makefile rename to boards/arm/stm32/olimex-stm32-h405/src/Make.defs index 6e263e9da0..8ea8b0ef5b 100644 --- a/boards/arm/stm32/olimex-stm32-h405/src/Makefile +++ b/boards/arm/stm32/olimex-stm32-h405/src/Make.defs @@ -64,4 +64,6 @@ ifeq ($(CONFIG_CAN),y) CSRCS += stm32_can.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/olimex-stm32-h407/src/Makefile b/boards/arm/stm32/olimex-stm32-h407/src/Make.defs similarity index 93% rename from boards/arm/stm32/olimex-stm32-h407/src/Makefile rename to boards/arm/stm32/olimex-stm32-h407/src/Make.defs index d85dc1d389..ee3f2aab66 100644 --- a/boards/arm/stm32/olimex-stm32-h407/src/Makefile +++ b/boards/arm/stm32/olimex-stm32-h407/src/Make.defs @@ -84,4 +84,6 @@ ifeq ($(CONFIG_ARCH_FPU),y) CSRCS += stm32_ostest.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/olimex-stm32-p107/src/Makefile b/boards/arm/stm32/olimex-stm32-p107/src/Make.defs similarity index 92% rename from boards/arm/stm32/olimex-stm32-p107/src/Makefile rename to boards/arm/stm32/olimex-stm32-p107/src/Make.defs index e46a5568e7..8e5eb66ace 100644 --- a/boards/arm/stm32/olimex-stm32-p107/src/Makefile +++ b/boards/arm/stm32/olimex-stm32-p107/src/Make.defs @@ -50,4 +50,6 @@ ifeq ($(CONFIG_ENCX24J600),y) CSRCS += stm32_encx24j600.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/olimex-stm32-p207/src/Makefile b/boards/arm/stm32/olimex-stm32-p207/src/Make.defs similarity index 92% rename from boards/arm/stm32/olimex-stm32-p207/src/Makefile rename to boards/arm/stm32/olimex-stm32-p207/src/Make.defs index 697050f4c4..82a328d775 100644 --- a/boards/arm/stm32/olimex-stm32-p207/src/Makefile +++ b/boards/arm/stm32/olimex-stm32-p207/src/Make.defs @@ -64,4 +64,6 @@ ifeq ($(CONFIG_CAN),y) CSRCS += stm32_can.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/olimex-stm32-p407/src/Makefile b/boards/arm/stm32/olimex-stm32-p407/src/Make.defs similarity index 93% rename from boards/arm/stm32/olimex-stm32-p407/src/Makefile rename to boards/arm/stm32/olimex-stm32-p407/src/Make.defs index 3aa51b56dd..748c007328 100644 --- a/boards/arm/stm32/olimex-stm32-p407/src/Makefile +++ b/boards/arm/stm32/olimex-stm32-p407/src/Make.defs @@ -72,4 +72,6 @@ ifeq ($(CONFIG_SENSORS_DHTXX),y) CSRCS += stm32_dhtxx.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/olimexino-stm32/src/Makefile b/boards/arm/stm32/olimexino-stm32/src/Make.defs similarity index 92% rename from boards/arm/stm32/olimexino-stm32/src/Makefile rename to boards/arm/stm32/olimexino-stm32/src/Make.defs index 2d0714182d..db7e407bc0 100644 --- a/boards/arm/stm32/olimexino-stm32/src/Makefile +++ b/boards/arm/stm32/olimexino-stm32/src/Make.defs @@ -62,4 +62,6 @@ ifeq ($(CONFIG_ARCH_BUTTONS),y) CSRCS += stm32_buttons.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/omnibusf4/src/Makefile b/boards/arm/stm32/omnibusf4/src/Make.defs similarity index 94% rename from boards/arm/stm32/omnibusf4/src/Makefile rename to boards/arm/stm32/omnibusf4/src/Make.defs index b50fa2c177..f3b41453b9 100644 --- a/boards/arm/stm32/omnibusf4/src/Makefile +++ b/boards/arm/stm32/omnibusf4/src/Make.defs @@ -107,4 +107,6 @@ ifeq ($(CONFIG_MMCSD),y) CSRCS += stm32_mmcsd.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/photon/src/Makefile b/boards/arm/stm32/photon/src/Make.defs similarity index 93% rename from boards/arm/stm32/photon/src/Makefile rename to boards/arm/stm32/photon/src/Make.defs index dd5acec2d3..90305c0824 100644 --- a/boards/arm/stm32/photon/src/Makefile +++ b/boards/arm/stm32/photon/src/Make.defs @@ -72,4 +72,6 @@ ifeq ($(CONFIG_RGBLED),y) CSRCS += stm32_rgbled.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/shenzhou/src/Makefile b/boards/arm/stm32/shenzhou/src/Make.defs similarity index 93% rename from boards/arm/stm32/shenzhou/src/Makefile rename to boards/arm/stm32/shenzhou/src/Make.defs index 7ed04e9775..eaa0212e34 100644 --- a/boards/arm/stm32/shenzhou/src/Makefile +++ b/boards/arm/stm32/shenzhou/src/Make.defs @@ -88,4 +88,6 @@ ifeq ($(CONFIG_INPUT_ADS7843E),y) CSRCS += stm32_touchscreen.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/stm3210e-eval/src/Makefile b/boards/arm/stm32/stm3210e-eval/src/Make.defs similarity index 94% rename from boards/arm/stm32/stm3210e-eval/src/Makefile rename to boards/arm/stm32/stm3210e-eval/src/Make.defs index a98c744055..4f7186fbf8 100644 --- a/boards/arm/stm32/stm3210e-eval/src/Makefile +++ b/boards/arm/stm32/stm3210e-eval/src/Make.defs @@ -84,4 +84,6 @@ ifeq ($(CONFIG_ARCH_IDLE_CUSTOM),y) CSRCS += stm32_idle.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/stm3220g-eval/src/Makefile b/boards/arm/stm32/stm3220g-eval/src/Make.defs similarity index 93% rename from boards/arm/stm32/stm3220g-eval/src/Makefile rename to boards/arm/stm32/stm3220g-eval/src/Make.defs index cdae5cd602..655c419b64 100644 --- a/boards/arm/stm32/stm3220g-eval/src/Makefile +++ b/boards/arm/stm32/stm3220g-eval/src/Make.defs @@ -76,4 +76,6 @@ ifeq ($(CONFIG_INPUT_STMPE811),y) CSRCS += stm32_stmpe811.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/stm3240g-eval/src/Makefile b/boards/arm/stm32/stm3240g-eval/src/Make.defs similarity index 93% rename from boards/arm/stm32/stm3240g-eval/src/Makefile rename to boards/arm/stm32/stm3240g-eval/src/Make.defs index 5a09806ab0..0b8ccecd0c 100644 --- a/boards/arm/stm32/stm3240g-eval/src/Makefile +++ b/boards/arm/stm32/stm3240g-eval/src/Make.defs @@ -85,4 +85,6 @@ ifeq ($(CONFIG_SENSORS_QENCODER),y) CSRCS += stm32_qencoder.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/stm32butterfly2/src/Makefile b/boards/arm/stm32/stm32butterfly2/src/Make.defs similarity index 92% rename from boards/arm/stm32/stm32butterfly2/src/Makefile rename to boards/arm/stm32/stm32butterfly2/src/Make.defs index 5ac0a93755..753d19a1e6 100644 --- a/boards/arm/stm32/stm32butterfly2/src/Makefile +++ b/boards/arm/stm32/stm32butterfly2/src/Make.defs @@ -65,4 +65,6 @@ ifeq ($(CONFIG_ARCH_BUTTONS),y) CSRCS += stm32_buttons.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/stm32f334-disco/src/Makefile b/boards/arm/stm32/stm32f334-disco/src/Make.defs similarity index 93% rename from boards/arm/stm32/stm32f334-disco/src/Makefile rename to boards/arm/stm32/stm32f334-disco/src/Make.defs index 4cd7f7669f..3248c5ae93 100644 --- a/boards/arm/stm32/stm32f334-disco/src/Makefile +++ b/boards/arm/stm32/stm32f334-disco/src/Make.defs @@ -76,4 +76,6 @@ ifeq ($(CONFIG_DRIVERS_SMPS),y) CSRCS += stm32_smps.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/stm32f3discovery/src/Makefile b/boards/arm/stm32/stm32f3discovery/src/Make.defs similarity index 92% rename from boards/arm/stm32/stm32f3discovery/src/Makefile rename to boards/arm/stm32/stm32f3discovery/src/Make.defs index 36d392778f..37cf3189d2 100644 --- a/boards/arm/stm32/stm32f3discovery/src/Makefile +++ b/boards/arm/stm32/stm32f3discovery/src/Make.defs @@ -64,4 +64,6 @@ ifeq ($(CONFIG_SENSORS_QENCODER),y) CSRCS += stm32_qencoder.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/stm32f411e-disco/src/Makefile b/boards/arm/stm32/stm32f411e-disco/src/Make.defs similarity index 91% rename from boards/arm/stm32/stm32f411e-disco/src/Makefile rename to boards/arm/stm32/stm32f411e-disco/src/Make.defs index 701ef32dec..81289b39a0 100644 --- a/boards/arm/stm32/stm32f411e-disco/src/Makefile +++ b/boards/arm/stm32/stm32f411e-disco/src/Make.defs @@ -46,4 +46,6 @@ ifeq ($(CONFIG_STM32_OTGFS),y) CSRCS += stm32_usb.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/stm32f429i-disco/src/Makefile b/boards/arm/stm32/stm32f429i-disco/src/Make.defs similarity index 94% rename from boards/arm/stm32/stm32f429i-disco/src/Makefile rename to boards/arm/stm32/stm32f429i-disco/src/Make.defs index ff8de40e60..5480d88eb3 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/Makefile +++ b/boards/arm/stm32/stm32f429i-disco/src/Make.defs @@ -99,4 +99,6 @@ ifeq ($(CONFIG_STM32F429I_DISCO_HIGHPRI),y) CSRCS += stm32_highpri.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/stm32ldiscovery/src/Makefile b/boards/arm/stm32/stm32ldiscovery/src/Make.defs similarity index 92% rename from boards/arm/stm32/stm32ldiscovery/src/Makefile rename to boards/arm/stm32/stm32ldiscovery/src/Make.defs index 56ba00fae3..06dd127df2 100644 --- a/boards/arm/stm32/stm32ldiscovery/src/Makefile +++ b/boards/arm/stm32/stm32ldiscovery/src/Make.defs @@ -64,4 +64,6 @@ ifeq ($(CONFIG_LIB_BOARDCTL),y) CSRCS += stm32_appinit.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/stm32vldiscovery/src/Makefile b/boards/arm/stm32/stm32vldiscovery/src/Make.defs similarity index 91% rename from boards/arm/stm32/stm32vldiscovery/src/Makefile rename to boards/arm/stm32/stm32vldiscovery/src/Make.defs index d08534bcb0..24da6c8d7d 100644 --- a/boards/arm/stm32/stm32vldiscovery/src/Makefile +++ b/boards/arm/stm32/stm32vldiscovery/src/Make.defs @@ -43,4 +43,6 @@ ifeq ($(CONFIG_LIB_BOARDCTL),y) CSRCS += stm32_appinit.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board) diff --git a/boards/arm/stm32/viewtool-stm32f107/src/Makefile b/boards/arm/stm32/viewtool-stm32f107/src/Make.defs similarity index 94% rename from boards/arm/stm32/viewtool-stm32f107/src/Makefile rename to boards/arm/stm32/viewtool-stm32f107/src/Make.defs index ed2288547f..2218838148 100644 --- a/boards/arm/stm32/viewtool-stm32f107/src/Makefile +++ b/boards/arm/stm32/viewtool-stm32f107/src/Make.defs @@ -94,4 +94,6 @@ else ifeq ($(CONFIG_VIEWTOOL_MAX3421E_SPI2),y) CSRCS += stm32_max3421e.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += $(shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board)