mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
aafc099a1c
This adds mspdebug as package, similar to EDBG, so that the programmer/debugger is build from source. This has the advantage that we can indeed provide patches of our own. The first patch fixes a bug with the CPU detection of `mspdebug` in combination with the Olimex MSP430-JTAG-TINY-V2. The second adds the `--expect-id <CPU_NAME>` argument. The RIOT integration is updated to directly make use of the `--expect-id` parameter. No more spending time debugging why firmware the firmware for the `olimex-msp430-h2618` doesn't run when flashed on the `olimex-msp430h1611` hardware :D
26 lines
770 B
Makefile
26 lines
770 B
Makefile
PKG_NAME := mspdebug
|
|
PKG_URL := https://github.com/dlbeer/mspdebug
|
|
PKG_VERSION := 985b390ba22f4229aeca9f02e273a54eb4a76a9a
|
|
PKG_LICENSE := GPL-2.0-only
|
|
|
|
# manually set some RIOT env vars, so this Makefile can be called stand-alone
|
|
RIOTBASE ?= $(CURDIR)/../../..
|
|
RIOTTOOLS ?= $(CURDIR)/..
|
|
|
|
PKG_SOURCE_DIR = $(CURDIR)/bin
|
|
PKG_BUILD_OUT_OF_SOURCE = 0
|
|
|
|
include $(RIOTBASE)/pkg/pkg.mk
|
|
|
|
all: $(CURDIR)/mspdebug
|
|
|
|
$(CURDIR)/mspdebug:
|
|
# Start mspdebug build in a clean environment, so variables set by RIOT's build process
|
|
# for cross compiling a specific target platform are reset and mspdebug can
|
|
# be built cleanly for the native platform.
|
|
env -i PATH="$(PATH)" TERM="$(TERM)" "$(MAKE)" -C "$(PKG_BUILD_DIR)"
|
|
mv $(PKG_BUILD_DIR)/mspdebug .
|
|
|
|
clean::
|
|
rm -f $(CURDIR)/mspdebug
|