diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
commit | 1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e (patch) | |
tree | a21a5fc103bb3bd65ecd85ed22be5228fc54e447 /meta-oe/classes/breakpad.bbclass | |
download | meta-openembedded-1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/classes/breakpad.bbclass')
-rw-r--r-- | meta-oe/classes/breakpad.bbclass | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-oe/classes/breakpad.bbclass b/meta-oe/classes/breakpad.bbclass new file mode 100644 index 000000000..e4d6808a6 --- /dev/null +++ b/meta-oe/classes/breakpad.bbclass | |||
@@ -0,0 +1,33 @@ | |||
1 | # Class to inherit when you want to build against Breakpad. | ||
2 | # Apart from inheriting this class, you need to set BREAKPAD_BIN in | ||
3 | # your recipe, and make sure that you link against libbreakpad_client.a. | ||
4 | |||
5 | DEPENDS += "breakpad breakpad-native" | ||
6 | |||
7 | CFLAGS += "-I${STAGING_DIR_TARGET}${includedir}/breakpad " | ||
8 | CXXFLAGS += "-I${STAGING_DIR_TARGET}${includedir}/breakpad " | ||
9 | |||
10 | BREAKPAD_BIN ?= "" | ||
11 | |||
12 | python () { | ||
13 | breakpad_bin = d.getVar("BREAKPAD_BIN", True) | ||
14 | |||
15 | if not breakpad_bin: | ||
16 | PN = d.getVar("PN", True) | ||
17 | FILE = os.path.basename(d.getVar("FILE", True)) | ||
18 | bb.error("To build %s, see breakpad.bbclass for instructions on \ | ||
19 | setting up your Breakpad configuration" % PN) | ||
20 | raise ValueError('BREAKPAD_BIN not defined in %s' % PN) | ||
21 | } | ||
22 | |||
23 | # Add creation of symbols here | ||
24 | PACKAGE_PREPROCESS_FUNCS += "breakpad_package_preprocess" | ||
25 | breakpad_package_preprocess () { | ||
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}.syms" \; | ||
28 | } | ||
29 | |||
30 | PACKAGES =+ "${PN}-breakpad" | ||
31 | |||
32 | FILES_${PN}-breakpad = "/usr/share/breakpad-syms" | ||
33 | |||