Files
meta-external-toolchain/recipes-external/gdb/gdbserver-external.bb
Christopher Larson bfc86fd9c4 oe.external: move common functions here
Also provide external-common.bbclass to wrap its inclusion and setup
associated metadata. This will make easier to search sysroots for files
without pulling in the rest of the external toolchain class.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2015-07-29 13:10:51 -07:00

37 lines
1.0 KiB
BlitzBasic

SUMMARY = "gdb - GNU debugger"
HOMEPAGE = "http://www.gnu.org/software/gdb/"
SECTION = "devel"
PV := "${@oe.external.run(d, 'gdb', '-v').splitlines()[0].split()[-1]}"
inherit external-toolchain
def get_gdb_license(d):
output = oe.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/guile \
${datadir}/gdb/python/gdb \
${datadir}/gdb/syscalls \
${datadir}/gdb/system-gdbinit \
${libdir}/libinproctrace.so \
"
INSANE_SKIP_${PN} += "dev-so"
FILES_${PN}-doc = "${mandir}/man1/gdbserver.1"
# Ensure that our rdeps are able to be set by shlibs processing
do_package[depends] += "\
virtual/libc:do_packagedata \
virtual/${TARGET_PREFIX}compilerlibs:do_packagedata \
"