mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 09:21:52 +00:00
gdb: use the PKGVERSION and BUGURL options
This patch makes gdb benefit from the TOOLCHAIN_PKGVERSION and TOOLCHAIN_BUGURL options. Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
This commit is contained in:
parent
d558bb995d
commit
500ee00f22
@ -72,6 +72,10 @@ endchoice
|
|||||||
|
|
||||||
config GDB_7_0_or_later
|
config GDB_7_0_or_later
|
||||||
bool
|
bool
|
||||||
|
select GDB_HAS_PKGVERSION_BUGURL
|
||||||
|
|
||||||
|
config GDB_HAS_PKGVERSION_BUGURL
|
||||||
|
bool
|
||||||
|
|
||||||
config GDB_VERSION
|
config GDB_VERSION
|
||||||
string
|
string
|
||||||
|
@ -73,7 +73,8 @@ config TOOLCHAIN_PKGVERSION
|
|||||||
help
|
help
|
||||||
Specify a string that identifies your package. You may wish to include
|
Specify a string that identifies your package. You may wish to include
|
||||||
a build number or build date. This version string will be included in
|
a build number or build date. This version string will be included in
|
||||||
the output of gcc --version, and also in binutils, eglibc.
|
the output of gcc --version, and also in binutils, eglibc, gdb and
|
||||||
|
gdbserver.
|
||||||
|
|
||||||
This is passed to the configure flag --with-pkgversion.
|
This is passed to the configure flag --with-pkgversion.
|
||||||
|
|
||||||
|
@ -98,6 +98,11 @@ do_debug_gdb_build() {
|
|||||||
6.2*|6.3) extra_config+=("--disable-gdbmi");;
|
6.2*|6.3) extra_config+=("--disable-gdbmi");;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ "${CT_GDB_HAS_PKGVERSION_BUGURL}" = "y" ]; then
|
||||||
|
[ -n "${CT_TOOLCHAIN_PKGVERSION}" ] && extra_config+=("--with-pkgversion=${CT_TOOLCHAIN_PKGVERSION}")
|
||||||
|
[ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}")
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${CT_GDB_CROSS}" = "y" ]; then
|
if [ "${CT_GDB_CROSS}" = "y" ]; then
|
||||||
local -a cross_extra_config
|
local -a cross_extra_config
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user