Skip to content

Commit

Permalink
build: Fix qemugdb target
Browse files Browse the repository at this point in the history
Even deprecated, this target should still work, the issue was
introduced by commit 2bc9d69.

The problem is that for both of those targets the board's specific
Makefiles should be include'd, it was done only for the non-deprecated
target ('debugserver').

As a note: that is the recommended way of doing a logical OR operation
in Makefiles.

Change-Id: I3ae8f5201c47e65b33a62cea45e25dc2226de489
Signed-off-by: Vinicius Costa Gomes <[email protected]>
  • Loading branch information
vcgomes authored and Anas Nashif committed Mar 7, 2017
1 parent 10c41ee commit 370571b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 370571b

Please sign in to comment.