mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
rtems-4.11: Fix building the SPARC simulator.
Add support for simulator options to enable special features of some gdb simulators.
This commit is contained in:
parent
05cea12ce1
commit
257d1e4378
@ -11,6 +11,11 @@
|
|||||||
#
|
#
|
||||||
%include rtems-4.11-base.bset
|
%include rtems-4.11-base.bset
|
||||||
|
|
||||||
|
#
|
||||||
|
# Simulator options.
|
||||||
|
#
|
||||||
|
%define gdb-sim-options --enable-sim-hardware
|
||||||
|
|
||||||
#
|
#
|
||||||
# If Windows (MinGW) do not build the simulator.
|
# If Windows (MinGW) do not build the simulator.
|
||||||
#
|
#
|
||||||
|
@ -11,6 +11,11 @@
|
|||||||
#
|
#
|
||||||
%include rtems-4.11-base.bset
|
%include rtems-4.11-base.bset
|
||||||
|
|
||||||
|
#
|
||||||
|
# Simulator options.
|
||||||
|
#
|
||||||
|
%define gdb-sim-options --enable-sim-hardware --enable-timebase --enable-sim-trace
|
||||||
|
|
||||||
#
|
#
|
||||||
# If Windows (MinGW) do not build the simulator.
|
# If Windows (MinGW) do not build the simulator.
|
||||||
#
|
#
|
||||||
|
@ -20,9 +20,7 @@
|
|||||||
#
|
#
|
||||||
# If Windows (MinGW) do not build the simulator.
|
# If Windows (MinGW) do not build the simulator.
|
||||||
#
|
#
|
||||||
%if %{_build_os} == win32
|
%define win32-gdb-disable-sim
|
||||||
%define gdb-disable-sim
|
|
||||||
%endif
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Tools configuration.
|
# Tools configuration.
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
#
|
#
|
||||||
%ifn %{defined gdb-disable-sim}
|
%ifn %{defined gdb-disable-sim}
|
||||||
%define gdb-disable-sim 0
|
%define gdb-disable-sim 0
|
||||||
|
%else
|
||||||
|
%undefine gdb-sim-options
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%include %{_configdir}/checks.cfg
|
%include %{_configdir}/checks.cfg
|
||||||
@ -90,6 +92,7 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
|
|||||||
--disable-win32-registry \
|
--disable-win32-registry \
|
||||||
--disable-werror \
|
--disable-werror \
|
||||||
%{!?gdb-disable-sim:--enable-sim}%{?gdb-disable-sim:--disable-sim} \
|
%{!?gdb-disable-sim:--enable-sim}%{?gdb-disable-sim:--disable-sim} \
|
||||||
|
%{?gdb-sim-options:%{gdb-sim-options}} \
|
||||||
--without-zlib \
|
--without-zlib \
|
||||||
--with-expat \
|
--with-expat \
|
||||||
%{!?without_python:--with-python} \
|
%{!?without_python:--with-python} \
|
||||||
|
@ -531,7 +531,7 @@ class file:
|
|||||||
log.warning('malformed expand macro, no colon found')
|
log.warning('malformed expand macro, no colon found')
|
||||||
else:
|
else:
|
||||||
e = self._expand(m[colon + 1:-1].strip())
|
e = self._expand(m[colon + 1:-1].strip())
|
||||||
s = s.replace(m, e)
|
s = s.replace(m, self._label(e))
|
||||||
expanded = True
|
expanded = True
|
||||||
mn = None
|
mn = None
|
||||||
elif m.startswith('%{with '):
|
elif m.startswith('%{with '):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user