Changeset 9a15c40 in rtems-source-builder for rtems/config/tools/rtems-kernel-4-1.cfg


Ignore:
Timestamp:
05/13/14 13:26:09 (8 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
1b29191
Parents:
e074e75
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtems/config/tools/rtems-kernel-4-1.cfg

    re074e75 r9a15c40  
    1717# Source
    1818#
    19 %ifn %{defined Source0}
    20  Source0: http://ftp.rtems.org/ftp/pub/rtems/%{rtems_kernel_version}/rtems-%{rtems_kernel_version}.tar.bz2
    21 %endif
     19%source set rtems http://ftp.rtems.org/ftp/pub/rtems/%{rtems_kernel_version}/rtems-%{rtems_kernel_version}.tar.bz2
    2220
    2321#
     
    6159#
    6260%prep
    63   source_dir_0="rtems-%{rtems_kernel_version}"
    64   %setup -q -c -n %{name}-%{version}
    65   cd ${source_dir_0}
    66   %{?patch0:%patch0 %{?patch0_opts:%{patch0_opts}}%{!?patch0_opts:-p1}}
    67   %{?patch1:%patch1 %{?patch1_opts:%{patch1_opts}}%{!?patch1_opts:-p1}}
    68   %{?patch2:%patch2 %{?patch2_opts:%{patch2_opts}}%{!?patch2_opts:-p1}}
    69   %{?patch3:%patch3 %{?patch3_opts:%{patch3_opts}}%{!?patch3_opts:-p1}}
    70   %{?patch4:%patch4 %{?patch4_opts:%{patch4_opts}}%{!?patch4_opts:-p1}}
    71   %{?patch5:%patch5 %{?patch5_opts:%{patch5_opts}}%{!?patch5_opts:-p1}}
    72   %{?patch6:%patch6 %{?patch6_opts:%{patch6_opts}}%{!?patch6_opts:-p1}}
    73   %{?patch7:%patch7 %{?patch7_opts:%{patch7_opts}}%{!?patch7_opts:-p1}}
    74   %{?patch8:%patch8 %{?patch8_opts:%{patch8_opts}}%{!?patch8_opts:-p1}}
    75   %{?patch9:%patch9 %{?patch9_opts:%{patch9_opts}}%{!?patch9_opts:-p1}}
     61  source_dir_rtems="rtems-%{rtems_kernel_version}"
     62  %source setup rtems -q -c -n %{name}-%{version}
     63  cd ${source_dir_rtems}
     64  %patch setup rtems -p1
    7665%if %{rtems_bootstrap}
    7766  %if %{defined _internal_autotools_path}
     
    9483  cd ${build_dir}
    9584
    96   ../${source_dir_0}/configure \
     85  ../${source_dir_rtems}/configure \
    9786    --build=%{_build} --host=%{_host} \
    9887    --target=%{_target} \
Note: See TracChangeset for help on using the changeset viewer.