[rtems-source-builder commit] Fix the building of the RTEMS Tools from a tar file.

Chris Johns chrisj at rtems.org
Sun Dec 13 04:29:11 UTC 2015


Module:    rtems-source-builder
Branch:    4.11
Commit:    2d0498d7e199702c8d7c66e1b8dea3a3c0b6d111
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=2d0498d7e199702c8d7c66e1b8dea3a3c0b6d111

Author:    Chris Johns <chrisj at rtems.org>
Date:      Sun Dec 13 15:10:04 2015 +1100

Fix the building of the RTEMS Tools from a tar file.

---

 rtems/config/4.11/rtems-tools.bset          | 10 ++++++++++
 rtems/config/tools/rtems-tools-1.cfg        |  4 ++--
 rtems/config/tools/rtems-tools-common-1.cfg |  7 +++++--
 3 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/rtems/config/4.11/rtems-tools.bset b/rtems/config/4.11/rtems-tools.bset
index bdda60e..14cc797 100644
--- a/rtems/config/4.11/rtems-tools.bset
+++ b/rtems/config/4.11/rtems-tools.bset
@@ -4,4 +4,14 @@
 
 %define release 1
 
+#
+# We need an arch defined for the common RTEMS files to work.
+#
+%define rtems_arch tools
+
+#
+# The RTEMS 4.11 base defines.
+#
+%include rtems-4.11-base.bset
+
 tools/rtems-tools-4.11-1
diff --git a/rtems/config/tools/rtems-tools-1.cfg b/rtems/config/tools/rtems-tools-1.cfg
index 652a463..bef9d6b 100644
--- a/rtems/config/tools/rtems-tools-1.cfg
+++ b/rtems/config/tools/rtems-tools-1.cfg
@@ -1,5 +1,5 @@
 #
-# RTEMS Tools from git://git.rtems.org/rtems-tools.git
+# RTEMS Tools from git for a release.
 #
 
 #
@@ -42,7 +42,7 @@
  %endif
 
  #
- # The RTEMS Tools build instructions. We use GIT Release 1.
+ # The RTEMS Tools build instructions.
  #
  %include tools/rtems-tools-common-1.cfg
 %endif
diff --git a/rtems/config/tools/rtems-tools-common-1.cfg b/rtems/config/tools/rtems-tools-common-1.cfg
index e1921c3..0de16ba 100644
--- a/rtems/config/tools/rtems-tools-common-1.cfg
+++ b/rtems/config/tools/rtems-tools-common-1.cfg
@@ -21,10 +21,13 @@ License:   BSD-2-Caluse + GPL-2.0
   # target location and 'cd ..' fails.
   build_top=$(pwd)
 
-  source_dir_rtems_tools="%{name}"
-  %source setup rtems-tools -q -D -n %{name}
+  rtems_tools_source="rtems-tools-%{rtems_tools_version}"
+
+  %source setup rtems-tools -q -n ${rtems_tools_source}
   %patch setup rtems-tools -p1
 
+  source_dir_rtems_tools=${rtems_tools_source}
+
   cd ${build_top}
 
 %build



More information about the vc mailing list