summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2006-11-04 15:49:36 +0000
committerKoen Kooi <koen@openembedded.org>2006-11-04 15:49:36 +0000
commitd05d3f991cfbd3c4af619fe87cfdcde0bc5da868 (patch)
tree9ac588b3d73c513096dfcf41bf3682c886c47e93
parent094a6a9532567eac85934a2712f2adddefaae9c8 (diff)
binconfig.bbclass: protect foo-native stuff from do_install
-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() {