Changeset c571517 in rtems-source-builder


Ignore:
Timestamp:
Jun 19, 2018, 1:31:36 AM (16 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
ea6a042
Parents:
9e95b79
git-author:
Chris Johns <chrisj@…> (06/19/18 01:31:36)
git-committer:
Chris Johns <chrisj@…> (06/19/18 23:28:10)
Message:

gdb: Add a gdb-common configuration and have gdb-7-1 include it.

Updates #3460

Location:
source-builder/config
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • source-builder/config/gdb-7-1.cfg

    r9e95b79 rc571517  
    55#
    66
    7 #
    8 # See if the simulator has been disabled for Windows.
    9 #
    10 # Build using the system's readline, it is in better shape
    11 # than GDB's one with MSYS2.
    12 #
    13 %if %{_host_os} == win32
    14  %if %{defined win32-gdb-disable-sim}
    15   %define gdb-disable-sim 1
    16  %endif
    17  %define with_system_readline 1
    18 %endif
    19 
    20 #
    21 # Default to building simulators.
    22 #
    23 %ifn %{defined gdb-disable-sim}
    24  %define gdb-disable-sim 0
    25 %else
    26  %undefine gdb-sim-options
    27 %endif
    28 
    29 %include %{_configdir}/checks.cfg
    30 
    31 #
    32 # Select Snapshot Macro Maps
    33 #
    34 %select gdb-snapshot
    35 %select expat-snapshot
    36 
    37 #
    38 # The description.
    39 #
    40 Name:      %{_target}-gdb-%{gdb_version}-%{_host}-%{release}
    41 Summary:   GDB v%{gdb_version} for target %{_target} on host %{_host}
    42 Version:   %{gdb_version}
    43 Release:   %{release}
    44 URL:       http://www.gnu.org/software/gdb/
    45 BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
    46 
    47 #
    48 # GDB has changed it default extension.
    49 #
    50 %ifn %{defined gdb_src_ext}
    51   %define gdb_src_ext gz
    52 %endif
    53 
    54 #
    55 # Source
    56 #
    57 %source set gdb http://ftp.gnu.org/gnu/gdb/gdb-%{gdb_version}.tar.%{gdb_src_ext}
    58 
    59 #
    60 # Disable Python on Cxc builds for now.
    61 #
    62 %if "%{_build}" != "%{_host}"
    63   %define without_python
    64 %endif
    65 
    66 #
    67 # The --with-python option is either the default which is auto or the path to
    68 # the specific python to be used.
    69 #
    70 %if %{defined with_python_path}
    71   %define with_python_option --with-python=%{with_python_path}
    72 %else
    73   %define with_python_option --with-python
    74 %endif
    75 
    76 #
    77 #
    78 # Prepare the source code.
    79 #
    80 %prep
    81   build_top=$(pwd)
    82 
    83   gdb_source=%{?gdb_external:%{gdb_expand_name}}%{!?gdb_external:"gdb-%{gdb_version}"}
    84 
    85   source_dir_gdb=${gdb_source}
    86   %source setup gdb -q -n ${gdb_source}
    87   %patch setup gdb -p1
    88 
    89   cd ${build_top}
    90 
    91 %build
    92   build_top=$(pwd)
    93 
    94   %{build_directory}
    95 
    96   mkdir -p ${build_dir}
    97   cd ${build_dir}
    98 
    99   %{host_build_flags}
    100 
    101   if test "%{_build}" != "%{_host}" ; then
    102     GDB_LIBS_STATIC="-lexpat"
    103   else
    104     GDB_LIBS_STATIC="-lexpat"
    105     GDB_LIBS="%{_forced_static}"
    106   fi
    107 
    108   LIBS_STATIC=${GDB_LIBS_STATIC} \
    109   LIBS=${GDB_LIBS} \
    110   ../${source_dir_gdb}/configure \
    111     --build=%{_build} --host=%{_host} \
    112     --target=%{_target} \
    113     --verbose --disable-nls \
    114     --disable-gas --disable-binutils --disable-ld --disable-gold --disable-gprof \
    115     %{?with_system_readline:--with-system-readline} \
    116     --without-included-gettext \
    117     --disable-win32-registry \
    118     --disable-werror \
    119     %{!?gdb-disable-sim:--enable-sim}%{?gdb-disable-sim:--disable-sim} \
    120     %{?gdb-sim-options:%{gdb-sim-options}} \
    121     --without-zlib \
    122     --with-expat \
    123     --with-guile=no \
    124     %{!?without_python:%{with_python_option}} \
    125     --prefix=%{_prefix} --bindir=%{_bindir} \
    126     --exec-prefix=%{_exec_prefix} \
    127     --includedir=%{_includedir} --libdir=%{_libdir} \
    128     --mandir=%{_mandir} --infodir=%{_infodir}
    129 
    130   %{__make} %{?_smp_mflags} all
    131 
    132   cd ${build_top}
    133 
    134 %install
    135   build_top=$(pwd)
    136 
    137   %{__rmdir} $SB_BUILD_ROOT
    138 
    139   cd ${build_dir}
    140   %{__make} DESTDIR=$SB_BUILD_ROOT install
    141 
    142   # Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
    143   %{__rmdir} $SB_BUILD_ROOT%{_infodir}/configure.info*
    144 
    145   %{__rmfile} $SB_BUILD_ROOT%{_infodir}/dir
    146   touch $SB_BUILD_ROOT%{_infodir}/dir
    147 
    148   cd ${build_top}
     7%include %{_configdir}/gdb-common-1.cfg
Note: See TracChangeset for help on using the changeset viewer.