# HG changeset patch # User Tero Koskinen # Date 1415827392 -7200 # Wed Nov 12 23:23:12 2014 +0200 # Node ID 0f0e073d9a2893c8791f092eb624f7abb252cda3 # Parent 0000000000000000000000000000000000000000 Build scripts for arm-none-eabi gnat 4.9. diff --git a/build-gcc-no-newlib.sh b/build-gcc-no-newlib.sh new file mode 100644 --- /dev/null +++ b/build-gcc-no-newlib.sh @@ -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 + diff --git a/build-gcc.sh b/build-gcc.sh new file mode 100644 --- /dev/null +++ b/build-gcc.sh @@ -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 + diff --git a/build-newlib.sh b/build-newlib.sh new file mode 100644 --- /dev/null +++ b/build-newlib.sh @@ -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 diff --git a/gloss.patch b/gloss.patch new file mode 100644 --- /dev/null +++ b/gloss.patch @@ -0,0 +1,31 @@ +From: Agustin Henze +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