mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-09-16 12:13:08 +02:00
20 lines
583 B
PHP
20 lines
583 B
PHP
SUMMARY = "GNU debugger"
|
|
HOMEPAGE = "http://www.gnu.org/software/gdb/"
|
|
SECTION = "devel"
|
|
PV := "${@external_run(d, 'gdb', '-v').splitlines()[0].split()[-1]}"
|
|
|
|
gdb_binaries = "gdb gdbserver gdbtiu gcore"
|
|
|
|
def get_gdb_license(d):
|
|
output = external_run(d, 'gdb', '-v')
|
|
if output != 'UNKNOWN':
|
|
for line in output.splitlines():
|
|
if line.startswith('License '):
|
|
lic = line.split(':', 1)[0]
|
|
return lic.replace('License ', '')
|
|
else:
|
|
return output
|
|
|
|
LICENSE := "${@get_gdb_license(d)}"
|
|
LICENSE[vardepvalue] = "${LICENSE}"
|