[Lunar-commits] <moonbase-other> mspgcc-bootstrap: gcc 4.7.x necessary to compile msp430-gcc

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


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

mspgcc-bootstrap: gcc 4.7.x necessary to compile msp430-gcc
---
  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     
  5 files changed, 45 insertions(+)

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




More information about the Lunar-commits mailing list