diff --git a/Makefile.inc b/Makefile.inc index a356bc4d2..cf0efbc5e 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -96,7 +96,7 @@ qemu: $(DOTCONFIG) run: $(DOTCONFIG) $(Q)$(call zephyrmake,$(O),$@) -ifeq ($(MAKECMDGOALS),debugserver) +ifeq ($(MAKECMDGOALS),$(filter $(MAKECMDGOALS),debugserver qemugdb)) 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)