blob: c596497b8e5989018bedb02a112e1fdacff36c33 [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}"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00003LICENSE = "GPL-2.0-or-later"
Brad Bishop316dfdd2018-06-25 12:45:53 -04004LIC_FILES_CHKSUM = "file://../dwarfsrcfiles.c;md5=31483894e453a77acbb67847565f1b5c;beginline=1;endline=8"
5
6SRC_URI = "file://dwarfsrcfiles.c"
7BBCLASSEXTEND = "native"
8DEPENDS = "elfutils"
Patrick Williams213cb262021-08-07 19:21:33 -05009DEPENDS:append:libc-musl = " argp-standalone"
Brad Bishop316dfdd2018-06-25 12:45:53 -040010
11do_compile () {
12 ${CC} ${CFLAGS} ${LDFLAGS} -o dwarfsrcfiles ../dwarfsrcfiles.c -lelf -ldw
13}
14
Patrick Williams213cb262021-08-07 19:21:33 -050015do_compile:libc-musl () {
Brad Bishop316dfdd2018-06-25 12:45:53 -040016 ${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