blob: cc46ab9ea79b35edd127c531bf5e5b5f603a02dd [file] [log] [blame]
require crash.inc
PR = "${INC_PR}.0"
BBCLASSEXTEND = "native cross"
EXTRA_OEMAKE:class-cross = 'RPMPKG="${PV}" \
GDB_TARGET="${BUILD_SYS} --target=${TARGET_SYS}" \
GDB_HOST="${BUILD_SYS}" \
GDB_MAKE_JOBS="${PARALLEL_MAKE}" \
'
EXTRA_OEMAKE:append:class-native = " LDFLAGS='${BUILD_LDFLAGS}'"
EXTRA_OEMAKE:append:class-cross = " LDFLAGS='${BUILD_LDFLAGS}'"
do_install:class-target () {
oe_runmake DESTDIR=${D} install
}
do_install:class-native () {
oe_runmake DESTDIR=${D}${STAGING_DIR_NATIVE} install
}
do_install:class-cross () {
install -m 0755 ${S}/crash ${D}/${bindir}
}
RDEPENDS:${PN}:class-native = ""
RDEPENDS:${PN}:class-cross = ""