diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2017-11-10 17:38:59 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-21 16:26:55 +0000 |
commit | f2e6e1d3bfd4c92ef0f5ed4721fd9050c59dafca (patch) | |
tree | d0684cfc7b1a5013b7e9c3a3fc3913d36a3464b1 /meta/recipes-devtools/dwarfsrcfiles/dwarfsrcfiles.bb | |
parent | 3cf8bda5e4d4a345793aa72be97e94c41520ec01 (diff) | |
download | openembedded-core-contrib-f2e6e1d3bfd4c92ef0f5ed4721fd9050c59dafca.tar.gz |
package.bbclass: replace rpm/debugedit with dwarfsrcfiles
Debugedit provided by rpm 4.14 is rewriting binaries in-place, and was
found to produce broken output at least for grub:
http://lists.openembedded.org/pipermail/openembedded-core/2017-November/143989.html
A replacement utility was suggested via private mail:
https://lists.fedorahosted.org/archives/list/elfutils-devel@lists.fedorahosted.org/message/VZP4G5N2ELYZEDAB3QYLXYHDGX4WMCUF/
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/dwarfsrcfiles/dwarfsrcfiles.bb')
-rw-r--r-- | meta/recipes-devtools/dwarfsrcfiles/dwarfsrcfiles.bb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-devtools/dwarfsrcfiles/dwarfsrcfiles.bb b/meta/recipes-devtools/dwarfsrcfiles/dwarfsrcfiles.bb new file mode 100644 index 0000000000..c59a006eda --- /dev/null +++ b/meta/recipes-devtools/dwarfsrcfiles/dwarfsrcfiles.bb @@ -0,0 +1,22 @@ +SUMMARY = "A small utility for printing debig source file locations embedded in binaries" +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://../dwarfsrcfiles.c;md5=31483894e453a77acbb67847565f1b5c;beginline=1;endline=8" + +SRC_URI = "file://dwarfsrcfiles.c" +BBCLASSEXTEND = "native" +DEPENDS = "elfutils" +DEPENDS_append_libc-musl = " argp-standalone" + +do_compile () { + ${CC} ${CFLAGS} ${LDFLAGS} -o dwarfsrcfiles ../dwarfsrcfiles.c -lelf -ldw +} + +do_compile_libc-musl () { + ${CC} ${CFLAGS} ${LDFLAGS} -o dwarfsrcfiles ../dwarfsrcfiles.c -lelf -ldw -largp +} + +do_install () { + install -d ${D}${bindir} + install -t ${D}${bindir} dwarfsrcfiles +} + |