Build scripts for arm-none-eabi gnat 4.9.
4 files changed, 82 insertions(+), 0 deletions(-)

A => build-gcc-no-newlib.sh
A => build-gcc.sh
A => build-newlib.sh
A => gloss.patch
A => build-gcc-no-newlib.sh +21 -0
@@ 0,0 1,21 @@ 
+#!/bin/bash
+
+GCC_DIR=../gcc-4.9.2/
+
+$GCC_DIR/configure --prefix=$HOME/programs/gnat-arm-none-eabi \
+	--target=arm-none-eabi --enable-languages=c \
+	--disable-decimal-float \
+	--disable-libffi \
+	--disable-libgomp \
+	--disable-libmudflap \
+	--disable-libquadmath \
+	--disable-libssp \
+	--disable-libstdcxx-pch \
+	--disable-nls \
+	--disable-shared \
+	--disable-threads \
+	--disable-tls \
+	--with-newlib \
+	--without-headers && \
+	make all-gcc && make install-gcc
+

          
A => build-gcc.sh +25 -0
@@ 0,0 1,25 @@ 
+#!/bin/bash
+
+GCC_DIR=../gcc-4.9.2/
+
+$GCC_DIR/configure --prefix=$HOME/programs/gnat-arm-none-eabi \
+	--target=arm-none-eabi --enable-languages=c,ada \
+	--program-prefix=arm- \
+	--disable-decimal-float \
+	--disable-libffi \
+	--disable-libgomp \
+	--disable-libmudflap \
+	--disable-libquadmath \
+	--disable-libssp \
+	--disable-libstdcxx-pch \
+	--disable-nls \
+	--disable-tls \
+	--with-newlib \
+	--disable-shared \
+	--disable-threads \
+	--enable-version-specific-runtime-libs \
+	--disable-libada \
+	--with-cpu=cortex-m4 --with-fpu=fpv4-sp-d16 --with-mode=thumb \
+	--with-float=hard \
+	&& make && make install
+

          
A => build-newlib.sh +5 -0
@@ 0,0 1,5 @@ 
+#!/bin/bash
+
+../configure --prefix=$HOME/programs/gnat-arm-none-eabi --target=arm-none-eabi --enable-interwork --enable-multilib --with-gnu-as --with-gnu-ld --disable-nls \
+	&& make CFLAGS_FOR_TARGET="-mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffunction-sections -fdata-sections -DPREFER_SIZE_OVER_SPEED -D__OPTIMIZE_SIZE__ -Os -fomit-frame-pointer -D__BUFSIZ__=256" \
+	&& make install

          
A => gloss.patch +31 -0
@@ 0,0 1,31 @@ 
+From: Agustin Henze <tin@debian.org>
+Date: Fri, 3 Jan 2014 11:29:55 -0300
+Subject: [PATCH] Fix wrong path to libgloss/config/default.mh
+
+---
+ libgloss/arm/cpu-init/Makefile.in | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/libgloss/arm/cpu-init/Makefile.in b/libgloss/arm/cpu-init/Makefile.in
+index 547c58d..d63149f 100644
+--- a/libgloss/arm/cpu-init/Makefile.in
++++ b/libgloss/arm/cpu-init/Makefile.in
+@@ -18,6 +18,7 @@ libdir = @libdir@
+ tooldir = $(exec_prefix)/$(target_alias)
+ 
+ objtype = @objtype@
++host_makefile_frag = $(srcdir)/../../config/default.mh
+ 
+ INSTALL = @INSTALL@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+@@ -80,7 +81,7 @@ info:
+ install-info:
+ clean-info:
+ 
+-Makefile: Makefile.in ../config.status @host_makefile_frag_path@
++Makefile: Makefile.in ../config.status ${host_makefile_frag_path}
+ 	$(SHELL) ../config.status --file cpu-init/Makefile
+ 
+ ../config.status: ../configure
+-- 
+1.8.5.2