[Lunar-commits] <moonbase-other> msp430-binutils: assemble and manipulate binary and object files for msp430 MCUs

Stefan Wold ratler at lunar-linux.org
Sat Nov 2 00:37:04 CET 2013


commit ad95486248b8a3dc71a2c17cf5b9606bd86a40be
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Mon, 21 Oct 2013 13:42:57 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/ad95486248b8a3dc71a2c17cf5b9606bd86a40be

msp430-binutils: assemble and manipulate binary and object files for msp430 MCUs
---
  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     
  4 files changed, 62 insertions(+)

--- /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




More information about the Lunar-commits mailing list