Commit a1d1e25f authored by lev's avatar lev
Browse files

Add m4tools -- tools to wrok with TI / Stellaris ARM microcontrollers

and JTAG variant.
parent 5cf05f27
......@@ -1156,6 +1156,7 @@
SUBDIR += llvm32
SUBDIR += llvm33
SUBDIR += llvm34
SUBDIR += lm4tools
SUBDIR += lmdbg
SUBDIR += lndir
SUBDIR += lockfree-malloc
......
# $FreeBSD$
PORTNAME= lm4tools
PORTVERSION= 0.1.3
CATEGORIES= devel
MAINTAINER= lev@FreeBSD.org
COMMENT= TI Tiva C ARM microcontroller tools
LICENSE= GPLv2 TIBSD
LICENSE_COMB= multi
LICENSE_NAME_TIBSD= Texas Instruments Software License Agreement
LICENSE_FILE_TIBSD= ${WRKSRC}/lmicdiusb/license.txt
LICENSE_PERMS_TIBSD= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USE_GITHUB= yes
GH_ACCOUNT= utzig
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT= 1cfd813
USES= gmake
PLIST_FILES= bin/lm4flash bin/lmicdi
.include <bsd.port.pre.mk>
do-build:
@${GMAKE} -C ${WRKSRC}/lm4flash all
@${GMAKE} -C ${WRKSRC}/lmicdiusb all
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/lm4flash/lm4flash ${STAGEDIR}${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/lmicdiusb/lmicdi ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.post.mk>
SHA256 (lm4tools-0.1.3.tar.gz) = 6ddac399f13498902eb4c797add4f88366c369f7e60171ac5f44365b73ef9ada
SIZE (lm4tools-0.1.3.tar.gz) = 25423
--- lm4flash/Makefile.orig 2013-09-24 05:12:04.000000000 +0400
+++ lm4flash/Makefile 2014-01-24 13:17:54.000000000 +0400
@@ -1,12 +1,12 @@
EXE := lm4flash
-CFLAGS := -Wall -g -O2 $(shell pkg-config --cflags libusb-1.0)
-LDFLAGS := $(shell pkg-config --libs libusb-1.0)
+CFLAGS := -Wall -g -O2
+LDFLAGS := -lusb
all: $(EXE)
$(EXE): $(EXE).c
- gcc $(CFLAGS) $^ $(LDFLAGS) -o $@
+ $(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@
clean:
rm -f *.o $(EXE)
--- lmicdiusb/Makefile.orig 2013-09-24 05:12:04.000000000 +0400
+++ lmicdiusb/Makefile 2014-01-24 13:20:08.000000000 +0400
@@ -43,6 +43,12 @@
LDFLAGS += -framework AppKit -framework Carbon -framework IOKit
endif
+ifeq ($(shell uname),FreeBSD)
+ LIBUSB_CFLAGS :=
+ LIBUSB_LIBDIR := /usr/lib
+ LIBUSB_LIBS := -lusb
+endif
+
ifeq ($(shell uname),Linux)
LIBUSB_CFLAGS ?= $(shell pkg-config --cflags libusb-1.0)
LIBUSB_LIBDIR ?= $(shell pkg-config --variable=libdir libusb-1.0)
Some tools which enable multi-platform development on the TI Stellaris
Launchpad boards. The Stellaris Launchpad is a low cost development board
created by Texas Instruments that comes with an ARM Cortex-M4F processor.
Included tools:
lm4flash Command-line firmware flashing tool using libusb-1.0
to communicate with the Stellaris Launchpad ICDI.
lmicdiusb TCP/USB bridge created by TI, letting GDB communicate with
the Stellaris Launchpad ICDI.
WWW: https://launchpad.net/gcc-arm-embedded
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment