From 1b11d05bdf4a0bee014c99cfe104c6b2db021c11 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Fri, 31 Oct 2014 15:02:07 +1100 Subject: rtems4.11: Upgrade to gcc-4.9.2. Build rtems-tools and install. RTEMS kernel requires the rtems-tools package be installed to build the libdl tests. --- rtems/config/tools/rtems-binutils-git-1.cfg | 21 +++++++++++ rtems/config/tools/rtems-gcc-4.9-newlib-git-1.cfg | 43 +++++++++++++++++++++ .../config/tools/rtems-gcc-4.9.1-newlib-git-1.cfg | 13 +++++++ .../config/tools/rtems-gcc-4.9.2-newlib-git-1.cfg | 13 +++++++ rtems/config/tools/rtems-tools-1.cfg | 38 +++++++++++++++++++ rtems/config/tools/rtems-tools-4.11-1.cfg | 10 +++++ rtems/config/tools/rtems-tools-git-1.cfg | 44 ++++++++++++++++++++++ 7 files changed, 182 insertions(+) create mode 100644 rtems/config/tools/rtems-binutils-git-1.cfg create mode 100644 rtems/config/tools/rtems-gcc-4.9-newlib-git-1.cfg create mode 100644 rtems/config/tools/rtems-gcc-4.9.1-newlib-git-1.cfg create mode 100644 rtems/config/tools/rtems-gcc-4.9.2-newlib-git-1.cfg create mode 100644 rtems/config/tools/rtems-tools-1.cfg create mode 100644 rtems/config/tools/rtems-tools-4.11-1.cfg create mode 100644 rtems/config/tools/rtems-tools-git-1.cfg (limited to 'rtems/config/tools') diff --git a/rtems/config/tools/rtems-binutils-git-1.cfg b/rtems/config/tools/rtems-binutils-git-1.cfg new file mode 100644 index 0000000..da64bc1 --- /dev/null +++ b/rtems/config/tools/rtems-binutils-git-1.cfg @@ -0,0 +1,21 @@ +# +# Binutils GIT. +# + +%include %{_configdir}/checks.cfg +%include %{_configdir}/base.cfg + +%define binutils_version 6ae274b7dc305ae7cebcf55c5018dab05228235a +%source set binutils git://sourceware.org/git/binutils-gdb.git?fetch?reset=hard?branch=master?checkout=%{binutils_version} + +# +# Enable deterministic archives by default. This will be the default +# there all tools using this binutils will create deterministic +# archives. +# +%define with_deterministic_archives 1 + +# +# The binutils build instructions. We use 2.xx Release 1. +# +%include %{_configdir}/binutils-2-1.cfg diff --git a/rtems/config/tools/rtems-gcc-4.9-newlib-git-1.cfg b/rtems/config/tools/rtems-gcc-4.9-newlib-git-1.cfg new file mode 100644 index 0000000..98caa2f --- /dev/null +++ b/rtems/config/tools/rtems-gcc-4.9-newlib-git-1.cfg @@ -0,0 +1,43 @@ +# +# GCC 4.9.x., Newlib GIT. +# + +%ifn %{defined gcc_version} + %error No GCC version defined. +%endif + +%ifn %{defined newlib_version} + %error No Newlib version defined. +%endif + +%include %{_configdir}/checks.cfg +%include %{_configdir}/base.cfg +%include %{_configdir}/versions.cfg + +%define mpfr_version 3.0.1 +%define mpc_version 0.8.2 +%define gmp_version 5.0.5 + +%define with_threads 1 +%define with_plugin 0 + +%ifn %{defined with_iconv} + %define with_iconv 1 +%endif + +# +# Hash checksums of the libraries used in GCC. +# +%hash md5 mpfr-%{mpfr_version}.tar.bz2 bfbecb2eacb6d48432ead5cfc3f7390a +%hash md5 mpc-%{mpc_version}.tar.gz e98267ebd5648a39f881d66797122fb6 +%hash md5 gmp-%{gmp_version}.tar.bz2 041487d25e9c230b0c42b106361055fe + +# +# Newlib is from CVS and this is via a git mirror. No hash on GIT +# +%source set newlib git://sourceware.org/git/newlib.git?fetch?reset=hard?branch=master?checkout=%{newlib_version} + +# +# The gcc/newlib build instructions. We use 4.9 Release 1. +# +%include %{_configdir}/gcc-4.9-1.cfg diff --git a/rtems/config/tools/rtems-gcc-4.9.1-newlib-git-1.cfg b/rtems/config/tools/rtems-gcc-4.9.1-newlib-git-1.cfg new file mode 100644 index 0000000..c724407 --- /dev/null +++ b/rtems/config/tools/rtems-gcc-4.9.1-newlib-git-1.cfg @@ -0,0 +1,13 @@ +# +# GCC 4.9.1., Newlib GIT +# + +%define gcc_version 4.9.1 +%define newlib_version 6f25fbe648379f5cc47c41c67bf93720bb1feab3 + +%hash md5 gcc-%{gcc_version}.tar.bz2 fddf71348546af523353bd43d34919c1 + +# +# The gcc/newlib build instructions. +# +%include tools/rtems-gcc-4.9-newlib-git-1.cfg diff --git a/rtems/config/tools/rtems-gcc-4.9.2-newlib-git-1.cfg b/rtems/config/tools/rtems-gcc-4.9.2-newlib-git-1.cfg new file mode 100644 index 0000000..67e5b35 --- /dev/null +++ b/rtems/config/tools/rtems-gcc-4.9.2-newlib-git-1.cfg @@ -0,0 +1,13 @@ +# +# GCC 4.9.2., Newlib GIT +# + +%define gcc_version 4.9.2 +%define newlib_version 9b9f839addfe16ab0fd11f09a30a28139bfae6d5 + +%hash md5 gcc-%{gcc_version}.tar.bz2 4df8ee253b7f3863ad0b86359cd39c43 + +# +# The gcc/newlib build instructions. +# +%include tools/rtems-gcc-4.9-newlib-git-1.cfg diff --git a/rtems/config/tools/rtems-tools-1.cfg b/rtems/config/tools/rtems-tools-1.cfg new file mode 100644 index 0000000..42acb9e --- /dev/null +++ b/rtems/config/tools/rtems-tools-1.cfg @@ -0,0 +1,38 @@ +# +# RTEMS Tools from git://git.rtems.org/rtems-tools.git +# + +# +# Optionally enable/disable building the RTEMS Tools via the command line. +# +%if %{defined with_rtems_tools} + %define rtems_tools_build 1 +%endif +%if %{defined without_rtems_tools} + %define rtems_tools_build 0 +%endif + +# +# Build by default. +# +%if ! %{defined rtems_tools_build} + %define rtems_tools_build 1 +%endif + +%if %{rtems_tools_build} + # + # Pull the latest changes from git each build. Override if this is not what you + # want. + # + %if %{defined rtems_tools_version} + %define rtems_tools_git_checkout ?checkout=%{rtems_tools_version} + %else + %define rtems_tools_git_checkout %{nil} + %endif + %source set rtems-tools git://git.rtems.org/rtems-tools.git?fetch?reset=hard?branch=master%{rtems_tools_git_checkout} + + # + # The RTEMS Tools build instructions. We use GIT Release 1. + # + %include tools/rtems-tools-git-1.cfg +%endif diff --git a/rtems/config/tools/rtems-tools-4.11-1.cfg b/rtems/config/tools/rtems-tools-4.11-1.cfg new file mode 100644 index 0000000..b1344b7 --- /dev/null +++ b/rtems/config/tools/rtems-tools-4.11-1.cfg @@ -0,0 +1,10 @@ +# +# RTEMS Tools for 4.11. +# + +%define rtems_tools_version fdb1fe685ab60de784b5f20413fe54cd70a01ff2 + +# +# The RTEMS Tools build instructions. We use GIT Release 1. +# +%include tools/rtems-tools-1.cfg diff --git a/rtems/config/tools/rtems-tools-git-1.cfg b/rtems/config/tools/rtems-tools-git-1.cfg new file mode 100644 index 0000000..dc9bdae --- /dev/null +++ b/rtems/config/tools/rtems-tools-git-1.cfg @@ -0,0 +1,44 @@ +# +# RTEMS Tools GIT Version 1. +# +# This configuration file configure's, builds and install's RTEMS Tools. +# + +Name: rtems-tools-%{rtems_tools_version}-%{release} +Summary: RTEMS Tools %{rtems_tools_version} for host %{_host} +Version: %{rtems_tools_version} +Release: %{release} +URL: http://www..rtems.org/ +BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) + +# +# Prepare the source code. +# +%prep + # save the build top directory and cd back to it rather than + # using 'cd ..' because some shells change $PWD to a symlink's + # target location and 'cd ..' fails. + build_top=$(pwd) + + source_dir_rtems_tools="%{name}" + %source setup rtems-tools -q -D -n %{name} + %patch setup rtems-tools -p1 + + cd ${build_top} + +%build + build_top=$(pwd) + + cd ${source_dir_rtems_tools} + ./waf configure --prefix=%{_prefix} + ./waf + cd ${build_top} + +%install + build_top=$(pwd) + + %{__rmdir} $SB_BUILD_ROOT + + cd ${source_dir_rtems_tools} + ./waf --destdir=$SB_BUILD_ROOT install + cd ${build_top} -- cgit v1.2.3