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