mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb/get-source: Add a macro to indicate the get-source command is running.
- Fix GDB's library checks to ignore errors when getting the source.
This commit is contained in:
parent
9b5017f898
commit
3e22fc45d2
@ -114,7 +114,7 @@
|
|||||||
%else
|
%else
|
||||||
%define gdb-python-lib-check %(%{_sbdir}/sb/rtems-build-dep -c %{__cc} %{gdb-host-libs} -l %{gdb-python-ver-lib})
|
%define gdb-python-lib-check %(%{_sbdir}/sb/rtems-build-dep -c %{__cc} %{gdb-host-libs} -l %{gdb-python-ver-lib})
|
||||||
%endif
|
%endif
|
||||||
%if %{gdb-python-lib-check} == not-found
|
%if %{gdb-python-lib-check} == not-found && !%{_rsb_getting_source}
|
||||||
%error "gdb: python: library file not found: %{gdb-python-ver-lib}, please install"
|
%error "gdb: python: library file not found: %{gdb-python-ver-lib}, please install"
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
@ -281,6 +281,7 @@ class buildset:
|
|||||||
self.macros = copy.copy(opts.defaults)
|
self.macros = copy.copy(opts.defaults)
|
||||||
else:
|
else:
|
||||||
self.macros = copy.copy(macros)
|
self.macros = copy.copy(macros)
|
||||||
|
self.macros.define('_rsb_get_source')
|
||||||
log.trace('_bset: %s: macro defaults' % (bset))
|
log.trace('_bset: %s: macro defaults' % (bset))
|
||||||
log.trace(str(self.macros))
|
log.trace(str(self.macros))
|
||||||
self.bset = bset
|
self.bset = bset
|
||||||
|
Loading…
x
Reference in New Issue
Block a user