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