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