summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-05-19 12:09:21 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-05-19 12:09:21 +0100
commita811131e69de69b2bd57cf1f637b28b507ef1e2a (patch)
treee5b4dd9cffbbe385dd29a72b9b710ab6206f7b5e
parent514afcbb8251ce0bf9a30163fa70ef822cc2bc7b (diff)
downloadopenembedded-core-a811131e69de69b2bd57cf1f637b28b507ef1e2a.tar.gz
openembedded-core-a811131e69de69b2bd57cf1f637b28b507ef1e2a.tar.bz2
openembedded-core-a811131e69de69b2bd57cf1f637b28b507ef1e2a.zip
base.bbclass: Update to work with systems where install won't overwrite files
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--meta/classes/base.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index e801fd12a9..3704cce01a 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -342,6 +342,7 @@ oe_libinstall() {
__runcmd install -d $destpath/
dota=$libname.a
if [ -f "$dota" -o -n "$require_static" ]; then
+ rm -f $destpath/$dota
__runcmd install -m 0644 $dota $destpath/
fi
if [ -f "$dotlai" -a -n "$libtool" ]; then
@@ -355,6 +356,7 @@ oe_libinstall() {
-e "/^dependency_libs=/s,\([[:space:]']\)${libdir},\1${STAGING_LIBDIR},g" \
$dotlai >$destpath/$libname.la
else
+ rm -f $destpath/$libname.la
__runcmd install -m 0644 $dotlai $destpath/$libname.la
fi
fi
@@ -370,6 +372,7 @@ oe_libinstall() {
__runcmd cp -P "$f" $destpath/
elif [ ! -L "$f" ]; then
libfile="$f"
+ rm -f $destpath/$libfile
__runcmd install -m 0755 $libfile $destpath/
fi
done