]> code.ossystems Code Review - openembedded-core.git/commitdiff
autotools.bbclass: Add handling binary staging capability to autotools_stage_all...
authorRichard Purdie <richard@openedhand.com>
Wed, 19 Mar 2008 17:53:44 +0000 (17:53 +0000)
committerRichard Purdie <richard@openedhand.com>
Wed, 19 Mar 2008 17:53:44 +0000 (17:53 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4075 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/autotools.bbclass

index 7a87cc0bf81c1fe94bdcb3180693ae45514a7850..004ac79f03aa49167844c4c15332e25f529b8848 100644 (file)
@@ -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`