Skip to content

Instantly share code, notes, and snippets.

@kergoth
Last active August 29, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kergoth/10510368 to your computer and use it in GitHub Desktop.
Save kergoth/10510368 to your computer and use it in GitHub Desktop.
Working on splitting up meta-sourcery
total 560K
-rw-r--r-- 2 clarson esd_ea 240K Apr 11 16:12 gdbserver_7.7.50.20140217-cvs-r0_i586.ipk
-rw-r--r-- 2 clarson esd_ea 306K Apr 11 16:12 gdbserver-dbg_7.7.50.20140217-cvs-r0_i586.ipk
-rw-r--r-- 2 clarson esd_ea 758 Apr 11 16:12 gdbserver-dev_7.7.50.20140217-cvs-r0_i586.ipk
-rw-r--r-- 2 clarson esd_ea 5.7K Apr 11 16:12 gdbserver-doc_7.7.50.20140217-cvs-r0_i586.ipk
Package: gdbserver
Version: 7.7.50.20140217-cvs-r0
Description: gdb - GNU debugger
gdb - GNU debugger
Section: devel
Priority: optional
Maintainer: Poky <poky@yoctoproject.org>
License: GPLv3+
Architecture: i586
OE: gdbserver-external
Homepage: http://www.gnu.org/software/gdb/
Source: None
SUMMARY = "gdb - GNU debugger"
HOMEPAGE = "http://www.gnu.org/software/gdb/"
SECTION = "devel"
PV = "${@external_run(d, 'gdb', '-v').splitlines()[0].split()[-1]}"
PV[vardepvalue] = "${PV}"
inherit external-toolchain
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}"
FILES_${PN} = "${bindir}/gdbserver ${datadir}/gdb"
FILES_${PN}-dbg = "${bindir}/.debug/gdbserver.debug"
FILES_${PN}-doc = "${mandir}/man1/gdbserver.1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment