config: Use the prefix as the tools path if no --with-tools.

To use tools not in the installed RTEMS path use --with-tools. If
the --with-tools option is not supplied use the --prefix path.
This commit is contained in:
Chris Johns 2014-06-15 21:34:38 +12:00
parent 0ffee19316
commit 912596d5fd

View File

@ -9,7 +9,7 @@
#
# Keeping the package's installed path in the RTEMS install path
# and separate to the tools lets the tools version vary
# independently.
# independently. If --with-tools is not provided use the prefix.
#
%if %{_host} == %{nil}
@ -17,11 +17,11 @@
%endif
%ifn %{defined with_rtems_bsp}
%error No RTEMS BSP specified: --with-rtems-bsp=bsp
%define with_tools %{_prefix}
%endif
%ifn %{defined with_tools}
%error No RTEMS tools specified: --with-tools=path
%endif
#