Commit 778cdb06 authored by lev's avatar lev
Browse files

Add libopencmp3 -- LGPL3 runtime for Cortex-Mx microcontrollers.

 Now it supports only devel/gcc-arm-embedded toolchain.
parent 4675a019
......@@ -1057,6 +1057,7 @@
SUBDIR += libolecf
SUBDIR += liboobs
SUBDIR += liboop
SUBDIR += libopencm3
SUBDIR += libopendaap
SUBDIR += libopensync
SUBDIR += libopensync022
......
# $FreeBSD$
PORTNAME= libopencm3
PORTVERSION= 0.0.20140213
CATEGORIES= devel
MAINTAINER= lev@FreeBSD.org
COMMENT= LGPLv3 Cortex-M0/M3/M4 runtime library
LICENSE= LGPL3
BUILD_DEPENDS= ${LOCALBASE}/gcc-arm-embedded-${TOOLCHAIN_FULL_VERSION}/bin/arm-none-eabi-gcc:${PORTSDIR}/devel/gcc-arm-embedded
USE_GITHUB= yes
GH_ACCOUNT= libopencm3
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT= 8b4ac97
USES= gmake
USE_PYTHON_BUILD= yes
TOOLCHAIN_FULL_VERSION?=4_8-2013q4-20131204
TOOLCHAIN_PORT_VERSION?=4.8.20131204
TOOLCHAIN_TARGET?=arm-none-eabi
DESTDIRNAME= STAGEDIR
MAKE_ENV= PATH=${LOCALBASE}/gcc-arm-embedded-${TOOLCHAIN_FULL_VERSION}/bin:${PATH} \
DESTDIR=${STAGEDIR}${PREFIX}/gcc-arm-embedded-${TOOLCHAIN_FULL_VERSION}
PLIST_SUB+= TARGET=${TOOLCHAIN_TARGET} FULL_VERSION=${TOOLCHAIN_FULL_VERSION}
do-configure:
${FIND} ${WRKSRC} -name Makefile -o -name \*.mk -type f | ${XARGS} ${REINPLACE_CMD} -e 's|PREFIX|TARGET|g'
pre-stage:
@${ECHO_MSG} PREFIX=${PREFIX}
.include <bsd.port.mk>
SHA256 (libopencm3-0.0.20140213.tar.gz) = 85be0865d1869c12b7f25911c7e9419b1a5f0e125ac76e582bd281ba50019c67
SIZE (libopencm3-0.0.20140213.tar.gz) = 531755
--- scripts/irq2nvic_h.orig 2014-02-15 20:35:00.000000000 +0400
+++ scripts/irq2nvic_h 2014-02-15 20:35:03.000000000 +0400
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# This file is part of the libopencm3 project.
#
--- scripts/lpcvtcksum.orig 2014-02-15 20:35:10.000000000 +0400
+++ scripts/lpcvtcksum 2014-02-15 20:35:13.000000000 +0400
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
#
# Compute and insert the vector table checksum required for booting the
# LPC43xx and some other NXP ARM microcontrollers.
The libopencm3 project aims to create an open-source firmware library for
various ARM Cortex-M3 microcontrollers.
Currently (at least partly) supported microcontrollers:
- ST STM32F1 series
- ST STM32F2 series
- ST STM32F4 series
- NXP LPC1311/13/42/43
The library is written completely from scratch based on the vendor datasheets,
programming manuals, and application notes. The code is meant to be used
with a GCC toolchain for ARM (arm-elf or arm-none-eabi), flashing of the
code to a microcontroller can be done using the OpenOCD ARM JTAG software.
This port depends on devel/gcc-arm-embedded toolchain.
WWW: https://github.com/libopencm3/libopencm3
This diff is collapsed.
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