Date: Sat, 15 Feb 2014 13:44:01 +0000 (UTC) From: "Lev A. Serebryakov" <lev@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r344388 - in head/devel: . lm4tools lm4tools/files Message-ID: <201402151344.s1FDi1G7028773@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: lev Date: Sat Feb 15 13:44:00 2014 New Revision: 344388 URL: http://svnweb.freebsd.org/changeset/ports/344388 QAT: https://qat.redports.org/buildarchive/r344388/ Log: Add m4tools -- tools to wrok with TI / Stellaris ARM microcontrollers and JTAG variant. Added: head/devel/lm4tools/ head/devel/lm4tools/Makefile (contents, props changed) head/devel/lm4tools/distinfo (contents, props changed) head/devel/lm4tools/files/ head/devel/lm4tools/files/patch-lm4flash--Makefile (contents, props changed) head/devel/lm4tools/files/patch-lmicdiusb--Makefile (contents, props changed) head/devel/lm4tools/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sat Feb 15 13:26:32 2014 (r344387) +++ head/devel/Makefile Sat Feb 15 13:44:00 2014 (r344388) @@ -1156,6 +1156,7 @@ SUBDIR += llvm32 SUBDIR += llvm33 SUBDIR += llvm34 + SUBDIR += lm4tools SUBDIR += lmdbg SUBDIR += lndir SUBDIR += lockfree-malloc Added: head/devel/lm4tools/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lm4tools/Makefile Sat Feb 15 13:44:00 2014 (r344388) @@ -0,0 +1,35 @@ +# $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> Added: head/devel/lm4tools/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lm4tools/distinfo Sat Feb 15 13:44:00 2014 (r344388) @@ -0,0 +1,2 @@ +SHA256 (lm4tools-0.1.3.tar.gz) = 6ddac399f13498902eb4c797add4f88366c369f7e60171ac5f44365b73ef9ada +SIZE (lm4tools-0.1.3.tar.gz) = 25423 Added: head/devel/lm4tools/files/patch-lm4flash--Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lm4tools/files/patch-lm4flash--Makefile Sat Feb 15 13:44:00 2014 (r344388) @@ -0,0 +1,18 @@ +--- 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) Added: head/devel/lm4tools/files/patch-lmicdiusb--Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lm4tools/files/patch-lmicdiusb--Makefile Sat Feb 15 13:44:00 2014 (r344388) @@ -0,0 +1,15 @@ +--- 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) Added: head/devel/lm4tools/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lm4tools/pkg-descr Sat Feb 15 13:44:00 2014 (r344388) @@ -0,0 +1,13 @@ + 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402151344.s1FDi1G7028773>