mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Add support for build set patch options.
Remove the hard coded dependency on all patches bring -p1 and allow a patch to optionally provide a patch option. The ARM EABI patch is a -p0 patch.
This commit is contained in:
@@ -19,7 +19,8 @@
|
||||
#
|
||||
# Patch to enable EABI
|
||||
#
|
||||
%define rtems_gcc_patch2 %{rtems_gcc_patches}/arm/gcc-4.7-arm-to-eabi-20120511.diff
|
||||
%define rtems_gcc_patch2 %{rtems_gcc_patches}/arm/gcc-4.7-arm-to-eabi-20120511.diff
|
||||
%define rtems_gcc_patch2_opts -p0
|
||||
|
||||
#
|
||||
# Tools configuration.
|
||||
|
@@ -3,25 +3,49 @@
|
||||
#
|
||||
%if %{defined rtems_gcc_patch1}
|
||||
Patch1: %{rtems_gcc_patch1}
|
||||
%if %{defined rtems_gcc_patch1_opts}
|
||||
%define patch1_opts %{rtems_gcc_patch1_opts}
|
||||
%endif
|
||||
%endif
|
||||
%if %{defined rtems_gcc_patch2}
|
||||
Patch2: %{rtems_gcc_patch2}
|
||||
%if %{defined rtems_gcc_patch2_opts}
|
||||
%define patch2_opts %{rtems_gcc_patch2_opts}
|
||||
%endif
|
||||
%endif
|
||||
%if %{defined rtems_gcc_patch3}
|
||||
Patch3: %{rtems_gcc_patch3}
|
||||
%if %{defined rtems_gcc_patch3_opts}
|
||||
%define patch3_opts %{rtems_gcc_patch3_opts}
|
||||
%endif
|
||||
%endif
|
||||
%if %{defined rtems_gcc_patch4}
|
||||
Patch4: %{rtems_gcc_patch4}
|
||||
%if %{defined rtems_gcc_patch4_opts}
|
||||
%define patch4_opts %{rtems_gcc_patch4_opts}
|
||||
%endif
|
||||
%endif
|
||||
%if %{defined rtems_gcc_patch11}
|
||||
Patch11: %{rtems_gcc_patch11}
|
||||
%if %{defined rtems_gcc_patch11_opts}
|
||||
%define patch11_opts %{rtems_gcc_patch11_opts}
|
||||
%endif
|
||||
%endif
|
||||
%if %{defined rtems_gcc_patch12}
|
||||
Patch12: %{rtems_gcc_patch12}
|
||||
%if %{defined rtems_gcc_patch12_opts}
|
||||
%define patch12_opts %{rtems_gcc_patch12_opts}
|
||||
%endif
|
||||
%endif
|
||||
%if %{defined rtems_gcc_patch13}
|
||||
Patch13: %{rtems_gcc_patch13}
|
||||
%if %{defined rtems_gcc_patch13_opts}
|
||||
%define patch13_opts %{rtems_gcc_patch13_opts}
|
||||
%endif
|
||||
%endif
|
||||
%if %{defined rtems_gcc_patch14}
|
||||
Patch14: %{rtems_gcc_patch14}
|
||||
%if %{defined rtems_gcc_patch14_opts}
|
||||
%define patch14_opts %{rtems_gcc_patch14_opts}
|
||||
%endif
|
||||
%endif
|
||||
|
Reference in New Issue
Block a user