From 9a15c40e1b2ac56a678e79519e1e78160009af92 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Tue, 13 May 2014 23:26:09 +1000 Subject: sb: Implement %source and %patch to manage source and patches. Remove the numbered source and patches and automatically manage sources and patches. This removes the overhead in maintaining large collections of patches. --- rtems/config/tools/rtems-gcc-4.8.1-newlib-cvs-1.cfg | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'rtems/config/tools/rtems-gcc-4.8.1-newlib-cvs-1.cfg') diff --git a/rtems/config/tools/rtems-gcc-4.8.1-newlib-cvs-1.cfg b/rtems/config/tools/rtems-gcc-4.8.1-newlib-cvs-1.cfg index d1cca38..32c6547 100644 --- a/rtems/config/tools/rtems-gcc-4.8.1-newlib-cvs-1.cfg +++ b/rtems/config/tools/rtems-gcc-4.8.1-newlib-cvs-1.cfg @@ -27,30 +27,24 @@ # # Newlib is from CVS. # -Source10: cvs://pserver:anoncvs@sourceware.org/cvs/src?module=newlib?src-prefix=src?date=%{newlib_version}?reset +%source set newlib cvs://pserver:anoncvs@sourceware.org/cvs/src?module=newlib?src-prefix=src?date=%{newlib_version}?reset # # Sebastian's atexit patch. # -%define rtems_gcc_patch1 %{rtems_gcc_patches}/gcc-4.8.1-rtems4.11-20130709.diff +%patch add gcc %{rtems_gcc_patches}/gcc-4.8.1-rtems4.11-20130709.diff # # Chris's patch to use the POSIX thread model for C++. # -%define rtems_gcc_patch2 %{rtems_gcc_patches}/gcc-rtems-thread-model-posix-1.diff +%patch add gcc %{rtems_gcc_patches}/gcc-rtems-thread-model-posix-1.diff # # Joel's stack_t patch. # -%define rtems_gcc_patch11 %{rtems_newlib_patches}/newlib-sys-signal-20130532.diff -%define rtems_gcc_patch11_opts -p0 +%patch add newlib -p0 %{rtems_newlib_patches}/newlib-sys-signal-20130532.diff # -# -# Manage RTEMS patches -# -%include rtems-gcc-patches.cfg - # The gcc/newlib build instructions. We use 4.8 Release 1. # %include %{_configdir}/gcc-4.8-1.cfg -- cgit v1.2.3