[Lunar-commits] <moonbase-other> Merge branch 'msp430mcu'
v4hn
me at v4hn.de
Sat Nov 2 00:37:08 CET 2013
commit fd1a987958bf1cebd44f89556d9c5f966f7a9eee
Author: v4hn <me at v4hn.de>
Date: Fri, 01 Nov 2013 16:36:48 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/fd1a987958bf1cebd44f89556d9c5f966f7a9eee
Merge branch 'msp430mcu'
---
compilers/msp430-gcc/BUILD | +28/-0
compilers/msp430-gcc/DEPENDS | +3/-0
compilers/msp430-gcc/DETAILS | +29/-0
compilers/msp430-gcc/PRE_BUILD | +8/-0
compilers/msp430-gcc/PRE_BUILD.x86_64 | +10/-0
compilers/mspgcc-bootstrap/BUILD | +18/-0
compilers/mspgcc-bootstrap/DEPENDS | +2/-0
compilers/mspgcc-bootstrap/DETAILS | +15/-0
compilers/mspgcc-bootstrap/PRE_BUILD | +4/-0
compilers/mspgcc-bootstrap/PRE_BUILD.x86_64 | +6/-0
devel/msp430-binutils/BUILD | +26/-0
devel/msp430-binutils/DEPENDS | +1/-0
devel/msp430-binutils/DETAILS | +27/-0
devel/msp430-binutils/PRE_BUILD | +8/-0
devel/msp430mcu/BUILD | +2/-0
devel/msp430mcu/DETAILS | +22/-0
devel/msp430mcu/PRE_BUILD | +2/-0
devel/mspdebug/BUILD | +3/-0
devel/mspdebug/DEPENDS | +2/-0
devel/mspdebug/DETAILS | +21/-0
devel/mspdebug/PRE_BUILD | +2/-0
libs/msp430-libc/BUILD | +4/-0
libs/msp430-libc/DEPENDS | +2/-0
libs/msp430-libc/DETAILS | +18/-0
libs/msp430-libc/PRE_BUILD | +2/-0
25 files changed, 265 insertions(+)
--- /dev/null
+++ b/compilers/msp430-gcc/BUILD
@@ -0,0 +1,28 @@
+export PATH=/usr/libexec/mspgcc/bin:$PATH
+unset CFLAGS
+
+mkdir -p $SOURCE_DIRECTORY/BUILD &&
+cd $SOURCE_DIRECTORY/BUILD &&
+MAKEINFO=no ../configure \
+ --prefix=/usr \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man \
+ --disable-nls \
+ --enable-languages=c \
+ --enable-version-specific-runtime-libs \
+ --target=msp430 \
+ --with-gnu-as \
+ --with-gnu-ld \
+ --with-as=/usr/bin/msp430-as \
+ --with-ld=/usr/bin/msp430-ld \
+ $OPTS &&
+
+make &&
+mkdir -p $SOURCE_DIRECTORY/_DESTDIR &&
+make DESTDIR=$SOURCE_DIRECTORY/_DESTDIR install &&
+
+# Remove some stuff we don't need
+rm -rf $SOURCE_DIRECTORY/_DESTDIR/usr/{lib64,share/man/man7} &&
+
+prepare_install &&
+cp -rf --remove-destination $SOURCE_DIRECTORY/_DESTDIR/usr /
--- /dev/null
+++ b/compilers/msp430-gcc/DEPENDS
@@ -0,0 +1,3 @@
+depends mspgcc-bootstrap
+depends msp430-binutils
+depends libmpc
--- /dev/null
+++ b/compilers/msp430-gcc/DETAILS
@@ -0,0 +1,29 @@
+ MODULE=msp430-gcc
+ VERSION=4.6.3
+ SOURCE=gcc-$VERSION.tar.bz2
+ SOURCE2=msp430-gcc-4.6.3-20120406.patch
+ SOURCE3=msp430-gcc-4.6.3-20120406-sf3540953.patch
+ SOURCE4=msp430-gcc-4.6.3-20120406-sf3559978.patch
+ SOURCE5=gcc-msp430-2.6.3-texinfo-5.0.patch
+ SOURCE_URL=$GNU_URL/gcc/gcc-$VERSION
+ SOURCE2_URL=$PATCH_URL
+ SOURCE3_URL=$PATCH_URL
+ SOURCE4_URL=$PATCH_URL
+ SOURCE5_URL=$PATCH_URL
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
+ SOURCE_VFY=sha1:ce317ca5c8185b58bc9300182b534608c578637f
+ SOURCE2_VFY=sha1:698ac224e7c1a5661652948a347531b27d580eca
+ SOURCE3_VFY=sha1:9de4e74d8ceb2005409e03bf671e619f2e060082
+ SOURCE4_VFY=sha1:3721d13fd9a19df60fe356e082e6cea4ea637dbc
+ SOURCE5_VFY=sha1:0f5e63dc6a689976014c6cc87d5be28eb4ee922b
+ WEB_SITE="http://mspgcc.sf.net/"
+ MAINTAINER=ratler at lunar-linux.org
+ ENTERED=20131021
+ UPDATED=20131021
+ SHORT="GNU toolchain for the TI MSP430 microcontroller"
+PSAFE=no
+USE_WRAPPERS=no
+
+cat <<EOF
+GNU toolchain for the TI MSP430 microcontroller.
+EOF
--- /dev/null
+++ b/compilers/msp430-gcc/PRE_BUILD
@@ -0,0 +1,8 @@
+validate_source_dir $SOURCE_DIRECTORY &&
+mk_source_dir $SOURCE_DIRECTORY &&
+tar xf $SOURCE_CACHE/$SOURCE --strip-components=1 -C $SOURCE_DIRECTORY &&
+cd $SOURCE_DIRECTORY &&
+patch_it $SOURCE2 1 &&
+patch_it $SOURCE3 1 &&
+patch_it $SOURCE4 1 &&
+patch_it $SOURCE5 1
--- /dev/null
+++ b/compilers/msp430-gcc/PRE_BUILD.x86_64
@@ -0,0 +1,10 @@
+OPTS+=" --disable-multilibs"
+
+validate_source_dir $SOURCE_DIRECTORY &&
+mk_source_dir $SOURCE_DIRECTORY &&
+tar xf $SOURCE_CACHE/$SOURCE --strip-components=1 -C $SOURCE_DIRECTORY &&
+cd $SOURCE_DIRECTORY &&
+patch_it $SOURCE2 1 &&
+patch_it $SOURCE3 1 &&
+patch_it $SOURCE4 1 &&
+patch_it $SOURCE5 1
--- /dev/null
+++ b/compilers/mspgcc-bootstrap/BUILD
@@ -0,0 +1,18 @@
+mkdir BUILD &&
+cd BUILD &&
+MAKEINFO=no ../configure --build=$BUILD \
+ --host=$BUILD \
+ --enable-languages=c,c++ \
+ --prefix=/usr/libexec/mspgcc \
+ --enable-__cxa_atexit \
+ --enable-threads \
+ --disable-nls \
+ --enable-target-optspace \
+ --with-gnu-ld \
+ --with-system-zlib \
+ --enable-shared \
+ $OPTS &&
+
+make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean &&
+prepare_install &&
+make install
--- /dev/null
+++ b/compilers/mspgcc-bootstrap/DEPENDS
@@ -0,0 +1,2 @@
+depends binutils
+depends libmpc
--- /dev/null
+++ b/compilers/mspgcc-bootstrap/DETAILS
@@ -0,0 +1,15 @@
+ MODULE=mspgcc-bootstrap
+ VERSION=4.7.2
+ SOURCE=gcc-$VERSION.tar.bz2
+ SOURCE_URL=$GNU_URL/gcc/gcc-$VERSION
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
+ SOURCE_VFY=sha1:a464ba0f26eef24c29bcd1e7489421117fb9ee35
+ WEB_SITE=http://gcc.gnu.org/
+ MAINTAINER=ratler at lunar-linux.org
+ ENTERED=20131021
+ UPDATED=20131021
+ SHORT="GCC to bootstrap compilation of TI MSP430 micrcontroller toolchain"
+
+cat <<EOF
+GCC to bootstrap compilation of TI MSP430 micrcontroller toolchain.
+EOF
--- /dev/null
+++ b/compilers/mspgcc-bootstrap/PRE_BUILD
@@ -0,0 +1,4 @@
+validate_source_dir $SOURCE_DIRECTORY &&
+mk_source_dir $SOURCE_DIRECTORY &&
+tar xf $SOURCE_CACHE/$SOURCE --strip-components=1 -C $SOURCE_DIRECTORY &&
+cd $SOURCE_DIRECTORY
--- /dev/null
+++ b/compilers/mspgcc-bootstrap/PRE_BUILD.x86_64
@@ -0,0 +1,6 @@
+OPTS+=" --disable-multilib"
+
+validate_source_dir $SOURCE_DIRECTORY &&
+mk_source_dir $SOURCE_DIRECTORY &&
+tar xf $SOURCE_CACHE/$SOURCE --strip-components=1 -C $SOURCE_DIRECTORY &&
+cd $SOURCE_DIRECTORY
--- /dev/null
+++ b/devel/msp430-binutils/BUILD
@@ -0,0 +1,26 @@
+./configure \
+ --prefix=/usr \
+ --disable-nls \
+ --disable-werror \
+ --infodir=/usr/share/info \
+ --libdir=/usr/lib \
+ --mandir=/usr/share/man \
+ --target=msp430 &&
+
+make configure-host &&
+make tooldir=/usr all &&
+mkdir -p $SOURCE_DIRECTORY/__DESTDIR/ &&
+make DESTDIR=$SOURCE_DIRECTORY/__DESTDIR/ tooldir=/usr install &&
+
+# Rename and remove files that would conflict with system binutils
+rm -rf $SOURCE_DIRECTORY/__DESTDIR/usr/lib64 &&
+rm -f $SOURCE_DIRECTORY/__DESTDIR/usr/share/man/man1/msp430-{dlltool,nlmconv,windres,windmc}* &&
+rm -rf $SOURCE_DIRECTORY/__DESTDIR/usr/share/info &&
+
+for file in as ar objdump objcopy ranlib strip nm; do
+ rm -f $SOURCE_DIRECTORY/__DESTDIR/usr/bin/$file
+done &&
+
+prepare_install &&
+cp -rf --remove-destination $SOURCE_DIRECTORY/__DESTDIR/usr /
+
--- /dev/null
+++ b/devel/msp430-binutils/DEPENDS
@@ -0,0 +1 @@
+depends zlib
--- /dev/null
+++ b/devel/msp430-binutils/DETAILS
@@ -0,0 +1,27 @@
+ MODULE=msp430-binutils
+ VERSION=2.21.1a
+ SOURCE=binutils-2.21.1a.tar.bz2
+ SOURCE2=msp430-binutils-2.21.1a-20120406.patch
+ SOURCE3=binutils-msp430-20120406_ld_makefile_libdir.patch
+ SOURCE4=binutils-msp430-20120406-texinfo-5.0-gas-doc.patch
+ SOURCE5=binutils-msp430-20120406-texinfo-5.0.patch
+ SOURCE_URL=http://ftpmirror.gnu.org/binutils
+ SOURCE2_URL=$PATCH_URL
+ SOURCE3_URL=$PATCH_URL
+ SOURCE4_URL=$PATCH_URL
+ SOURCE5_URL=$PATCH_URL
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
+ SOURCE_VFY=sha1:525255ca6874b872540c9967a1d26acfbc7c8230
+ SOURCE2_VFY=sha1:bb8f3a0361e52b9df9e877541d875d0eb1113e66
+ SOURCE3_VFY=sha1:7a5d78fd94fd99dd544816db75a14c326c494e68
+ SOURCE4_VFY=sha1:b92aba28a090f214a650102ad0f0862c37b45e58
+ SOURCE5_VFY=sha1:417b1cdb35c41a08d3ca967c165c0d79588986e9
+ WEB_SITE="http://mspgcc.sf.net/"
+ MAINTAINER=ratler at lunar-linux.org
+ ENTERED=20131021
+ UPDATED=20131021
+ SHORT="A set of programs to assemble and manipulate binary and object files for the MSP430 architecture"
+cat <<EOF
+A set of programs to assemble and manipulate binary and object files for the
+MSP430 architecture.
+EOF
--- /dev/null
+++ b/devel/msp430-binutils/PRE_BUILD
@@ -0,0 +1,8 @@
+validate_source_dir $SOURCE_DIRECTORY &&
+mk_source_dir $SOURCE_DIRECTORY &&
+tar xf $SOURCE_CACHE/$SOURCE --strip-components=1 -C $SOURCE_DIRECTORY &&
+cd $SOURCE_DIRECTORY &&
+patch_it $SOURCE2 1 &&
+patch_it $SOURCE3 0 &&
+patch_it $SOURCE4 1 &&
+patch_it $SOURCE5 1
--- /dev/null
+++ b/devel/msp430mcu/BUILD
@@ -0,0 +1,2 @@
+prepare_install &&
+MSP430MCU_ROOT=$(pwd) ./scripts/install.sh /usr
--- /dev/null
+++ b/devel/msp430mcu/DETAILS
@@ -0,0 +1,22 @@
+ MODULE=msp430mcu
+ VERSION=20120406
+ SOURCE=$MODULE-$VERSION.tar.bz2
+ SOURCE2=msp430mcu-20120406-sf3522088.patch
+ SOURCE_URL=$SFORGE_URL/mspgcc/msp430mcu
+ SOURCE2_URL=$PATCH_URL
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
+ SOURCE_VFY=sha1:c096eec84f0f287c45db713a550ec50c518fa065
+ SOURCE2_VFY=sha1:83d408fd08a1fd0b1d8ab2a300d6124423952ac4
+ WEB_SITE="http://mspgcc.sf.net/"
+ MAINTAINER=ratler at lunar-linux.org
+ ENTERED=20131021
+ UPDATED=20131021
+ SHORT="Headers and linker scripts for the MSP430 family of microcontrollers"
+
+cat <<EOF
+Headers and linker scripts for the Texas Instruments MSP430 range of
+micro-controllers. These headers provide the location of all the special
+function registers of the micro-controllers. The linker scripts provide the
+mapping of those registers into memory as well as information on where code
+should be loaded.
+EOF
--- /dev/null
+++ b/devel/msp430mcu/PRE_BUILD
@@ -0,0 +1,2 @@
+default_pre_build &&
+patch_it $SOURCE2 1
--- /dev/null
+++ b/devel/mspdebug/BUILD
@@ -0,0 +1,3 @@
+make &&
+prepare_install &&
+make install PREFIX=/usr INSTALL="install -p" LIBDIR=/usr/lib
--- /dev/null
+++ b/devel/mspdebug/DEPENDS
@@ -0,0 +1,2 @@
+depends readline
+depends libusb
--- /dev/null
+++ b/devel/mspdebug/DETAILS
@@ -0,0 +1,21 @@
+ MODULE=mspdebug
+ VERSION=0.21
+ SOURCE=$MODULE-$VERSION.tar.gz
+ SOURCE2=mspdebug-0.21-missing-includes.patch
+ SOURCE_URL=$SFORGE_URL/mspdebug
+ SOURCE2_URL=$PATCH_URL
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
+ SOURCE_VFY=sha1:a439acd166e90bfd19ddf2c3459eee9643e55368
+ SOURCE2_VFY=sha1:2fcb6cf867a5acf1cedf07ef22e81e6a136a6b64
+ WEB_SITE=http://mspdebug.sourceforge.net/
+ MAINTAINER=ratler at lunar-linux.org
+ ENTERED=20131021
+ UPDATED=20131021
+ SHORT="Debugger and gdb proxy for MSP430 microcontrollers"
+
+cat <<EOF
+A free debugger for use with MSP430 MCUs. It supports FET430UIF,
+eZ430, RF2500 and TI Chronos devices. It can be used as a proxy for
+gdb or as an independent debugger with support for programming,
+disassembly and reverse engineering.
+EOF
--- /dev/null
+++ b/devel/mspdebug/PRE_BUILD
@@ -0,0 +1,2 @@
+default_pre_build &&
+patch_it $SOURCE2 1
--- /dev/null
+++ b/libs/msp430-libc/BUILD
@@ -0,0 +1,4 @@
+cd src &&
+make &&
+prepare_install &&
+make install PREFIX=/usr
--- /dev/null
+++ b/libs/msp430-libc/DEPENDS
@@ -0,0 +1,2 @@
+depends msp430-gcc
+depends msp430mcu
--- /dev/null
+++ b/libs/msp430-libc/DETAILS
@@ -0,0 +1,18 @@
+ MODULE=msp430-libc
+ VERSION=20120224
+ SOURCE=$MODULE-$VERSION.tar.bz2
+ SOURCE2=msp430-libc-20120224-sf3522752.patch
+ SOURCE_URL=$SFORGE_URL/mspgcc/msp430-libc
+ SOURCE2_URL=$PATCH_URL
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
+ SOURCE_VFY=sha1:d01cf0db41bff1a0ab50644cbb11bc5a1d5be172
+ SOURCE2_VFY=sha1:2ca4aea9b8dcd6a199303373a8a97c7a2dd4eef6
+ WEB_SITE="http://mspgcc.sf.net/"
+ MAINTAINER=ratler at lunar-linux.org
+ ENTERED=20131021
+ UPDATED=20131021
+ SHORT="C runtime library for the MSP430 family of microcontrollers"
+
+cat <<EOF
+C runtime library for the MSP430 family of microcontrollers.
+EOF
--- /dev/null
+++ b/libs/msp430-libc/PRE_BUILD
@@ -0,0 +1,2 @@
+default_pre_build &&
+patch_it $SOURCE2 1
More information about the Lunar-commits
mailing list