gdb-external.inc 583 B

12345678910111213141516171819
  1. SUMMARY = "GNU debugger"
  2. HOMEPAGE = "http://www.gnu.org/software/gdb/"
  3. SECTION = "devel"
  4. PV := "${@external_run(d, 'gdb', '-v').splitlines()[0].split()[-1]}"
  5. gdb_binaries = "gdb gdbserver gdbtiu gcore"
  6. def get_gdb_license(d):
  7. output = external_run(d, 'gdb', '-v')
  8. if output != 'UNKNOWN':
  9. for line in output.splitlines():
  10. if line.startswith('License '):
  11. lic = line.split(':', 1)[0]
  12. return lic.replace('License ', '')
  13. else:
  14. return output
  15. LICENSE := "${@get_gdb_license(d)}"
  16. LICENSE[vardepvalue] = "${LICENSE}"