summaryrefslogtreecommitdiffstats
path: root/meta-oe/classes
diff options
context:
space:
mode:
authorTristan Ramseyer <t@ramseyer.email>2018-08-25 17:50:48 +0200
committerKhem Raj <raj.khem@gmail.com>2018-11-26 09:38:13 -0800
commitfbc8c468c299089fa3f3c036f3eb4ebc894e636f (patch)
tree7519a2498849df484c3e6de941ce3b9a34e4134c /meta-oe/classes
parent59577cb5bd7ba4274b311b1c21fdbd80dd125798 (diff)
downloadmeta-openembedded-fbc8c468c299089fa3f3c036f3eb4ebc894e636f.tar.gz
Copy breakpad .sym file in appropriate folder.
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>
Diffstat (limited to 'meta-oe/classes')
-rw-r--r--meta-oe/classes/breakpad.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-oe/classes/breakpad.bbclass b/meta-oe/classes/breakpad.bbclass
index 36f11ff48..cebe559a7 100644
--- a/meta-oe/classes/breakpad.bbclass
+++ b/meta-oe/classes/breakpad.bbclass
@@ -25,6 +25,9 @@ PACKAGE_PREPROCESS_FUNCS += "breakpad_package_preprocess"
25breakpad_package_preprocess () { 25breakpad_package_preprocess () {
26 mkdir -p ${PKGD}/usr/share/breakpad-syms 26 mkdir -p ${PKGD}/usr/share/breakpad-syms
27 find ${D} -name ${BREAKPAD_BIN} -exec sh -c "dump_syms {} > ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}.sym" \; 27 find ${D} -name ${BREAKPAD_BIN} -exec sh -c "dump_syms {} > ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}.sym" \;
28 HASH=$(head -n1 ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}.sym | rev | cut -d ' ' -f2 | rev)
29 mkdir -p ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}/${HASH}
30 mv ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}.sym ${PKGD}/usr/share/breakpad-syms/${BREAKPAD_BIN}/${HASH}
28} 31}
29 32
30PACKAGES =+ "${PN}-breakpad" 33PACKAGES =+ "${PN}-breakpad"