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:
Chris Johns 2019-10-27 08:20:38 +11:00
parent 9b5017f898
commit 3e22fc45d2
2 changed files with 2 additions and 1 deletions

View File

@ -114,7 +114,7 @@
%else
%define gdb-python-lib-check %(%{_sbdir}/sb/rtems-build-dep -c %{__cc} %{gdb-host-libs} -l %{gdb-python-ver-lib})
%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"
%endif
%endif

View File

@ -281,6 +281,7 @@ class buildset:
self.macros = copy.copy(opts.defaults)
else:
self.macros = copy.copy(macros)
self.macros.define('_rsb_get_source')
log.trace('_bset: %s: macro defaults' % (bset))
log.trace(str(self.macros))
self.bset = bset