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:
Chris Johns
2013-03-11 13:55:56 +11:00
parent d007f05937
commit 3bab09c8eb
5 changed files with 72 additions and 47 deletions

View File

@@ -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.

View File

@@ -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