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

This commit is contained in:
Chris Johns 2015-12-13 15:10:04 +11:00
parent e33968ac4c
commit 00b60d74b2
3 changed files with 17 additions and 4 deletions

View File

@ -4,4 +4,14 @@
%define release 1 %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 tools/rtems-tools-4.11-1

View File

@ -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 %endif
# #
# The RTEMS Tools build instructions. We use GIT Release 1. # The RTEMS Tools build instructions.
# #
%include tools/rtems-tools-common-1.cfg %include tools/rtems-tools-common-1.cfg
%endif %endif

View File

@ -21,10 +21,13 @@ License: BSD-2-Caluse + GPL-2.0
# target location and 'cd ..' fails. # target location and 'cd ..' fails.
build_top=$(pwd) build_top=$(pwd)
source_dir_rtems_tools="%{name}" rtems_tools_source="rtems-tools-%{rtems_tools_version}"
%source setup rtems-tools -q -D -n %{name}
%source setup rtems-tools -q -n ${rtems_tools_source}
%patch setup rtems-tools -p1 %patch setup rtems-tools -p1
source_dir_rtems_tools=${rtems_tools_source}
cd ${build_top} cd ${build_top}
%build %build