From b02d95a61faf59d27911c7580c0c8e76e426b729 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 19 Mar 2008 17:53:44 +0000 Subject: autotools.bbclass: Add handling binary staging capability to autotools_stage_all for compatible binaries fixing various -native package issues git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4075 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/classes/autotools.bbclass | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'meta') diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 7a87cc0bf..004ac79f0 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass @@ -177,6 +177,18 @@ autotools_stage_all() { mkdir -p ${STAGING_INCDIR} cp -fpPR -t ${STAGING_INCDIR} ${STAGE_TEMP}/${includedir}/* fi + if [ "${BUILD_SYS}" = "${HOST_SYS}" ]; then + if [ -d ${STAGE_TEMP}/${bindir} ]; then + echo "here 1" + mkdir -p ${STAGING_DIR_HOST}${bindir} + cp -fpPR -t ${STAGING_DIR_HOST}/${layout_bindir} ${STAGE_TEMP}/${bindir}/* + fi + if [ -d ${STAGE_TEMP}/${sbindir} ]; then + echo "here 2" + mkdir -p ${STAGING_DIR_HOST}${sbindir} + cp -fpPR -t ${STAGING_DIR_HOST}/${layout_sbindir} ${STAGE_TEMP}/${bindir}/* + fi + fi if [ -d ${STAGE_TEMP}/${libdir} ] then olddir=`pwd` -- cgit v1.2.3