blob: 1a05a1a38712364290469fb1933c988fc2224095 [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"
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