blob: cc46ab9ea79b35edd127c531bf5e5b5f603a02dd [file] [log] [blame]
Patrick Williams169d7bc2024-01-05 11:33:25 -06001require crash.inc
2
3PR = "${INC_PR}.0"
4
5BBCLASSEXTEND = "native cross"
6
7EXTRA_OEMAKE:class-cross = 'RPMPKG="${PV}" \
8 GDB_TARGET="${BUILD_SYS} --target=${TARGET_SYS}" \
9 GDB_HOST="${BUILD_SYS}" \
10 GDB_MAKE_JOBS="${PARALLEL_MAKE}" \
11 '
12
13EXTRA_OEMAKE:append:class-native = " LDFLAGS='${BUILD_LDFLAGS}'"
14EXTRA_OEMAKE:append:class-cross = " LDFLAGS='${BUILD_LDFLAGS}'"
15
16do_install:class-target () {
17 oe_runmake DESTDIR=${D} install
18}
19
20do_install:class-native () {
21 oe_runmake DESTDIR=${D}${STAGING_DIR_NATIVE} install
22}
23
24do_install:class-cross () {
25 install -m 0755 ${S}/crash ${D}/${bindir}
26}
27
28RDEPENDS:${PN}:class-native = ""
29RDEPENDS:${PN}:class-cross = ""