From cea9bb992c47eb5d69a6fef9fb37686f063165cc Mon Sep 17 00:00:00 2001 From: jing wang Date: Thu, 10 Nov 2016 13:34:19 +0800 Subject: [PATCH] Makefile.inc: fix 'make debugserver' no rule issue the issue is caused by lacking $(ARCH) in Makefile.inc, which cause $(ZEPHYR_BASE)/boards/$(ARCH)/$(BOARD)/Makefile.board fail to include. So just add ARCH variable by extract it from boards/ folder. Issue: ZEP-1255 Change-Id: I15453c5e2bced8fc64b545b925086fe5c3bf68c5 Signed-off-by: jing wang --- Makefile.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.inc b/Makefile.inc index beef623fe81..b44048298ca 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -99,6 +99,7 @@ flash: $(DOTCONFIG) $(Q)$(call zephyrmake,$(O),$@) ifeq ($(MAKECMDGOALS),debugserver) +ARCH = $(notdir $(subst /$(BOARD),,$(wildcard $(ZEPHYR_BASE)/boards/*/$(BOARD)))) -include $(ZEPHYR_BASE)/boards/$(ARCH)/$(BOARD)/Makefile.board -include $(ZEPHYR_BASE)/scripts/Makefile.toolchain.$(ZEPHYR_GCC_VARIANT) BOARD_NAME = $(BOARD)