summaryrefslogtreecommitdiffstats
path: root/rtems/config/tools/rtems-tools-git-1.cfg
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-10-31 15:02:07 +1100
committerChris Johns <chrisj@rtems.org>2014-10-31 15:11:10 +1100
commit1b11d05bdf4a0bee014c99cfe104c6b2db021c11 (patch)
tree3d3e510f627b4381903024938e720a8dcab3ff66 /rtems/config/tools/rtems-tools-git-1.cfg
parentrtems-4.11: Add libjpeg (diff)
downloadrtems-source-builder-1b11d05bdf4a0bee014c99cfe104c6b2db021c11.tar.bz2
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.
Diffstat (limited to 'rtems/config/tools/rtems-tools-git-1.cfg')
-rw-r--r--rtems/config/tools/rtems-tools-git-1.cfg44
1 files changed, 44 insertions, 0 deletions
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}