From f1204894470e72800bcb7654ba5d346066fd6a1a Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Wed, 19 Mar 2008 19:39:28 +0000 Subject: autotools, native bbclass: try harder to stage native binaries --- classes/autotools.bbclass | 6 ++++++ classes/native.bbclass | 1 + 2 files changed, 7 insertions(+) diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass index 7a87cc0bf8..ae9b108279 100644 --- a/classes/autotools.bbclass +++ b/classes/autotools.bbclass @@ -204,6 +204,12 @@ autotools_stage_all() { install -d ${STAGING_DATADIR}/aclocal cp -fpPR ${STAGE_TEMP}/${datadir}/aclocal/* ${STAGING_DATADIR}/aclocal fi + + if [ "${AUTOTOOLS_NATIVE_STAGE_BINARIES}" = "1"] ; then + install -d ${STAGING_BINDIR_NATIVE} + cp -fpPR ${STAGE_TEMP}/*bin/* ${STAGING_BINDIR_NATIVE}/ + cp -fpPR ${STAGE_TEMP}/usr/*bin/* ${STAGING_BINDIR_NATIVE}/ + fi rm -rf ${STAGE_TEMP} } diff --git a/classes/native.bbclass b/classes/native.bbclass index ddbbc04e19..aa1d4b6510 100644 --- a/classes/native.bbclass +++ b/classes/native.bbclass @@ -80,6 +80,7 @@ do_stage () { then oe_runmake install else + AUTOTOOLS_NATIVE_STAGE_BINARIES = "1" autotools_stage_all fi fi -- cgit v1.2.3