blob: 2c843a9342b9dc6065788b8e3ccab8d776090bae [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "A small utility for printing debug source file locations embedded in binaries"
Brad Bishop316dfdd2018-06-25 12:45:53 -04002LICENSE = "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