Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 1 | require crash.inc |
| 2 | |
| 3 | PR = "${INC_PR}.0" |
| 4 | |
| 5 | BBCLASSEXTEND = "native cross" |
| 6 | |
| 7 | EXTRA_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 | |
| 13 | EXTRA_OEMAKE:append:class-native = " LDFLAGS='${BUILD_LDFLAGS}'" |
| 14 | EXTRA_OEMAKE:append:class-cross = " LDFLAGS='${BUILD_LDFLAGS}'" |
| 15 | |
| 16 | do_install:class-target () { |
| 17 | oe_runmake DESTDIR=${D} install |
| 18 | } |
| 19 | |
| 20 | do_install:class-native () { |
| 21 | oe_runmake DESTDIR=${D}${STAGING_DIR_NATIVE} install |
| 22 | } |
| 23 | |
| 24 | do_install:class-cross () { |
| 25 | install -m 0755 ${S}/crash ${D}/${bindir} |
| 26 | } |
| 27 | |
| 28 | RDEPENDS:${PN}:class-native = "" |
| 29 | RDEPENDS:${PN}:class-cross = "" |