summaryrefslogtreecommitdiff
path: root/classes/autotools.bbclass
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-03-19 20:17:40 +0000
committerKoen Kooi <koen@openembedded.org>2008-03-19 20:17:40 +0000
commite0c07ebd9158c035921040c1641fb7f80427a895 (patch)
tree8b7c077b3acbae1f7b6b014b527b4ce6b5660524 /classes/autotools.bbclass
parentf1204894470e72800bcb7654ba5d346066fd6a1a (diff)
native, autotools bbclass: check if bindir exists before trying to access it
* hardcoded since native.bbclass redefines ${bindir} and friends :(
Diffstat (limited to 'classes/autotools.bbclass')
-rw-r--r--classes/autotools.bbclass19
1 files changed, 15 insertions, 4 deletions
diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass
index ae9b108279..5ef8814259 100644
--- a/classes/autotools.bbclass
+++ b/classes/autotools.bbclass
@@ -205,10 +205,21 @@ autotools_stage_all() {
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}/
+ if [ "${AUTOTOOLS_NATIVE_STAGE_BINARIES}" = "1" ] ; then
+ if [ -d ${STAGE_TEMP}/bin ]; then
+ cp -fpPR ${STAGE_TEMP}/bin/*${STAGING_DIR_HOST}/${layout_bindir}
+ fi
+
+ if [ -d ${STAGE_TEMP}/sbin ]; then
+ cp -fpPR ${STAGE_TEMP}/sbin/* ${STAGING_DIR_HOST}/${layout_bindir}
+ fi
+
+ if [ -d ${STAGE_TEMP}/usr/bin ]; then
+ cp -fpPR ${STAGE_TEMP}/usr/bin/* ${STAGING_DIR_HOST}/${layout_bindir}
+ fi
+ if [ -d ${STAGE_TEMP}/usr/sbin ]; then
+ cp -fpPR ${STAGE_TEMP}/usr/sbin/* ${STAGING_DIR_HOST}/${layout_bindir}
+ fi
fi
rm -rf ${STAGE_TEMP}
}