summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/binconfig.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/binconfig.bbclass b/classes/binconfig.bbclass
index ad33c0e498..317e080fc5 100644
--- a/classes/binconfig.bbclass
+++ b/classes/binconfig.bbclass
@@ -29,6 +29,8 @@ BINCONFIG_GLOB ?= "*-config"
do_install_append() {
+ #the 'if' protects native packages, since we can't easily check for bb.data.inherits_class('native', d) in shell
+ if [ -e ${D}${bindir} ] ; then
for config in `find ${S} -name '${BINCONFIG_GLOB}'`; do
cat $config | sed \
-e 's:${STAGING_LIBDIR}:${libdir}:g;' \
@@ -36,6 +38,7 @@ do_install_append() {
-e 's:${STAGING_DATADIR}:${datadir}:' \
-e 's:${STAGING_LIBDIR}/..:${prefix}:' > ${D}${bindir}/`basename $config`
done
+ fi
for lafile in `find ${D} -name *.la` ; do
sed -i \
@@ -45,7 +48,6 @@ do_install_append() {
-e 's:${STAGING_LIBDIR}/..:${prefix}:' \
$lafile
done
-
}
do_stage_append() {