diff mbox series

[oe,meta-oe,07/10] Copy breakpad .sym file in appropriate folder.

Message ID 20181120203814.11500-7-raj.khem@gmail.com
State Accepted
Commit fbc8c468c299089fa3f3c036f3eb4ebc894e636f
Headers show
Series [oe,meta-oe,01/10] openwsman: Upgrade to 2.6.8 | expand

Commit Message

Khem Raj Nov. 20, 2018, 8:38 p.m. UTC
From: Tristan Ramseyer <t@ramseyer.email>


Google breakpad requires a very specific folder structure which is only known after dump_syms has been executed.
Therefore the .sym file's first line has to be parsed in order to move the file where breakpad wants it.

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta-oe/classes/breakpad.bbclass | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.19.1

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/meta-oe/classes/breakpad.bbclass b/meta-oe/classes/breakpad.bbclass
index 36f11ff480..cebe559a7f 100644
--- a/meta-oe/classes/breakpad.bbclass
+++ b/meta-oe/classes/breakpad.bbclass
@@ -25,6 +25,9 @@  PACKAGE_PREPROCESS_FUNCS += "breakpad_package_preprocess"
 breakpad_package_preprocess () {
     mkdir -p ${PKGD}/usr/share/breakpad-syms
     find ${D} -name ${BREAKPAD_BIN} -exec sh -c "dump_syms {} > ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}.sym" \;
+    HASH=$(head -n1 ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}.sym | rev | cut -d ' ' -f2 | rev)
+    mkdir -p ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}/${HASH}
+    mv ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}.sym ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}/${HASH}
 }
 
 PACKAGES =+ "${PN}-breakpad"