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