mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Modify GNU's common backend configuration files to build from external sources
This commit is contained in:
parent
9f59e9ead6
commit
d758ab9adc
@ -37,8 +37,10 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
|
||||
%prep
|
||||
build_top=$(pwd)
|
||||
|
||||
source_dir_binutils="binutils-%{binutils_version}"
|
||||
%source setup binutils -q -n binutils-%{binutils_version}
|
||||
binutils_source=%{?binutils_external:%{binutils_expand_name}}%{!?binutils_external:"binutils-%{binutils_version}"}
|
||||
|
||||
source_dir_binutils=${binutils_source}
|
||||
%source setup binutils -q -n ${binutils_source}
|
||||
%patch setup binutils -p1
|
||||
|
||||
cd ${build_top}
|
||||
|
@ -40,9 +40,12 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
|
||||
# target location and 'cd ..' fails.
|
||||
build_top=$(pwd)
|
||||
|
||||
gcc_source=%{?gcc_external:%{gcc_expand_name}}%{!?gcc_external:"gcc-%{gcc_version}"}
|
||||
|
||||
# gcc and optional the g++ core if separate packages
|
||||
source_dir_gcc="gcc-%{gcc_version}"
|
||||
%source setup gcc -q -n gcc-%{gcc_version}
|
||||
source_dir_gcc=${gcc_source}
|
||||
%source setup gcc -q -n ${gcc_source}
|
||||
|
||||
%patch setup gcc -p1
|
||||
cd ${build_top}
|
||||
|
||||
|
@ -66,8 +66,10 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
|
||||
%prep
|
||||
build_top=$(pwd)
|
||||
|
||||
source_dir_gdb="gdb-%{gdb_version}"
|
||||
%source setup gdb -q -n gdb-%{gdb_version}
|
||||
gdb_source=%{?gdb_external:%{gdb_expand_name}}%{!?gdb_external:"gdb-%{gdb_version}"}
|
||||
|
||||
source_dir_gdb=${gdb_source}
|
||||
%source setup gdb -q -n ${gdb_source}
|
||||
%patch setup gdb -p1
|
||||
|
||||
cd ${build_top}
|
||||
|
Loading…
x
Reference in New Issue
Block a user