summaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2017-01-07 13:22:21 -0500
committerAnas Nashif <nashif@linux.intel.com>2017-01-10 20:20:46 +0000
commit6d9ed994aa26f11d543a50fab3bdb4ec94d08dcd (patch)
tree39bbeaa83c301dcebd9e494a4734a4c093b04d01 /Makefile.inc
parent7cf2bfe466cd9483d137d48cc78aeec877d4cc6e (diff)
build: use target 'debugserver' for Qemu debugging
Use the existing debugserver target also for Qemu debugging. Qemu should be maintained as one of many emulation/simulations platforms and emulation should be abstracted in the Makefiles and not tied to Qemu. qemugdb will still work, it is however being deprecated. Change-Id: I0cd10fb66debb939b8f7f1304bf2ef4605da6a1d Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 0feaaa8a4..4ebb4ea23 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -83,18 +83,19 @@ all: $(DOTCONFIG)
ifeq ($(findstring qemu_,$(BOARD)),)
qemu:
- @echo "Emulation not available for this platform"
+ @echo "Emulation not available for this board."
qemugdb: qemu
else
qemu: $(DOTCONFIG)
$(Q)$(call zephyrmake,$(O),$@)
-qemugdb: $(DOTCONFIG)
- $(Q)$(call zephyrmake,$(O),$@)
+qemugdb: debugserver
+ @echo "This target is deprecated, please use debugserver instead"
endif
debug: $(DOTCONFIG)
$(Q)$(call zephyrmake,$(O),$@)
+
flash: $(DOTCONFIG)
$(Q)$(call zephyrmake,$(O),$@)
@@ -105,8 +106,9 @@ ARCH = $(notdir $(subst /$(BOARD),,$(wildcard $(ZEPHYR_BASE)/boards/*/$(BOARD)))
BOARD_NAME = $(BOARD)
export BOARD_NAME
endif
+
debugserver: FORCE
- $(Q)$(CONFIG_SHELL) $(ZEPHYR_BASE)/scripts/support/$(FLASH_SCRIPT) debugserver
+ $(Q)$(CONFIG_SHELL) $(ZEPHYR_BASE)/scripts/support/$(DEBUG_SCRIPT) debugserver
initconfig outputexports: $(DOTCONFIG)