autotools, native bbclass: try harder to stage native binaries
authorKoen Kooi <koen@openembedded.org>
Wed, 19 Mar 2008 19:39:28 +0000 (19:39 +0000)
committerKoen Kooi <koen@openembedded.org>
Wed, 19 Mar 2008 19:39:28 +0000 (19:39 +0000)
classes/autotools.bbclass
classes/native.bbclass

index 7a87cc0..ae9b108 100644 (file)
@@ -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}
 }
 
index ddbbc04..aa1d4b6 100644 (file)
@@ -80,6 +80,7 @@ do_stage () {
                then
                        oe_runmake install
                else
+                       AUTOTOOLS_NATIVE_STAGE_BINARIES = "1"   
                        autotools_stage_all
                fi
        fi