blob: 56b52d6a478ac1c76d064eeb02ac09ee4578bb84 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "A small utility for printing debug source file locations embedded in binaries"
Andrew Geissler90fd73c2021-03-05 15:25:55 -06002DESCRIPTION = "${SUMMARY}"
Brad Bishop316dfdd2018-06-25 12:45:53 -04003LICENSE = "GPLv2+"
4LIC_FILES_CHKSUM = "file://../dwarfsrcfiles.c;md5=31483894e453a77acbb67847565f1b5c;beginline=1;endline=8"
5
6SRC_URI = "file://dwarfsrcfiles.c"
7BBCLASSEXTEND = "native"
8DEPENDS = "elfutils"
9DEPENDS_append_libc-musl = " argp-standalone"
10
11do_compile () {
12 ${CC} ${CFLAGS} ${LDFLAGS} -o dwarfsrcfiles ../dwarfsrcfiles.c -lelf -ldw
13}
14
15do_compile_libc-musl () {
16 ${CC} ${CFLAGS} ${LDFLAGS} -o dwarfsrcfiles ../dwarfsrcfiles.c -lelf -ldw -largp
17}
18
19do_install () {
20 install -d ${D}${bindir}
21 install -t ${D}${bindir} dwarfsrcfiles
22}
23