summaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2016-02-01 19:42:54 -0500
committerAnas Nashif <anas.nashif@intel.com>2016-02-05 20:25:30 -0500
commit54634d6a4302264b2a66d9c2eedf021da78fe246 (patch)
tree33cc98afb545e6b1d07f96b5d4b943a449fb67ca /Makefile.inc
parent3cf1d29d349d8bc67135e77473aa89fbd90072ca (diff)
add support for debugserver
Change-Id: Ib22d9c06ba7816c3b870973d16e1c25229f31e1f Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 0b2b17a2b..077bdb928 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -72,6 +72,16 @@ endif
flash: $(DOTCONFIG)
$(Q)$(call zephyrmake,$(O),$@)
+ifeq ($(MAKECMDGOALS),debugserver)
+-include $(ZEPHYR_BASE)/boards/$(BOARD)/Makefile.board
+-include $(ZEPHYR_BASE)/scripts/Makefile.toolchain.$(ZEPHYR_GCC_VARIANT)
+BOARD_NAME = $(BOARD)
+export BOARD_NAME
+endif
+debugserver: FORCE
+ $(Q)$(CONFIG_SHELL) $(ZEPHYR_BASE)/scripts/support/$(FLASH_SCRIPT) debugserver
+
+
initconfig: $(DOTCONFIG)
menuconfig: initconfig