diff --git a/boards/arm/stm32f7/stm32f746g-disco/src/Makefile b/boards/arm/stm32f7/stm32f746g-disco/src/Make.defs similarity index 90% rename from boards/arm/stm32f7/stm32f746g-disco/src/Makefile rename to boards/arm/stm32f7/stm32f746g-disco/src/Make.defs index 202884f6b4..38ca82be7d 100644 --- a/boards/arm/stm32f7/stm32f746g-disco/src/Makefile +++ b/boards/arm/stm32f7/stm32f746g-disco/src/Make.defs @@ -1,5 +1,5 @@ ############################################################################ -# boards/arm/stm32f7/stm32f746g-disco/src/Makefile +# boards/arm/stm32f7/stm32f746g-disco/src/Make.defs # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with @@ -74,4 +74,6 @@ ifeq ($(CONFIG_AUDIO_WM8994),y) CSRCS += stm32_wm8994.c endif -include $(TOPDIR)/boards/Board.mk +DEPPATH += --dep-path board +VPATH += :board +CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src$(DELIM)board$(DELIM)board