aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/autotools.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-03-19 17:53:44 +0000
committerRichard Purdie <richard@openedhand.com>2008-03-19 17:53:44 +0000
commitb02d95a61faf59d27911c7580c0c8e76e426b729 (patch)
treeceb4cf281644cb90133d0848f0883788f3c4e5dc /meta/classes/autotools.bbclass
parent498b4af0a68b0d01cdbc57f756cca6e17bba86a7 (diff)
downloadopenembedded-core-contrib-b02d95a61faf59d27911c7580c0c8e76e426b729.tar.gz
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
Diffstat (limited to 'meta/classes/autotools.bbclass')
-rw-r--r--meta/classes/autotools.bbclass12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 7a87cc0bf8..004ac79f03 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`