mirror of
https://git.yoctoproject.org/poky
synced 2026-09-18 06:49:33 +02:00
base.bbclass: Update to work with systems where install won't overwrite files
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -342,6 +342,7 @@ oe_libinstall() {
|
|||||||
__runcmd install -d $destpath/
|
__runcmd install -d $destpath/
|
||||||
dota=$libname.a
|
dota=$libname.a
|
||||||
if [ -f "$dota" -o -n "$require_static" ]; then
|
if [ -f "$dota" -o -n "$require_static" ]; then
|
||||||
|
rm -f $destpath/$dota
|
||||||
__runcmd install -m 0644 $dota $destpath/
|
__runcmd install -m 0644 $dota $destpath/
|
||||||
fi
|
fi
|
||||||
if [ -f "$dotlai" -a -n "$libtool" ]; then
|
if [ -f "$dotlai" -a -n "$libtool" ]; then
|
||||||
@@ -355,6 +356,7 @@ oe_libinstall() {
|
|||||||
-e "/^dependency_libs=/s,\([[:space:]']\)${libdir},\1${STAGING_LIBDIR},g" \
|
-e "/^dependency_libs=/s,\([[:space:]']\)${libdir},\1${STAGING_LIBDIR},g" \
|
||||||
$dotlai >$destpath/$libname.la
|
$dotlai >$destpath/$libname.la
|
||||||
else
|
else
|
||||||
|
rm -f $destpath/$libname.la
|
||||||
__runcmd install -m 0644 $dotlai $destpath/$libname.la
|
__runcmd install -m 0644 $dotlai $destpath/$libname.la
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -370,6 +372,7 @@ oe_libinstall() {
|
|||||||
__runcmd cp -P "$f" $destpath/
|
__runcmd cp -P "$f" $destpath/
|
||||||
elif [ ! -L "$f" ]; then
|
elif [ ! -L "$f" ]; then
|
||||||
libfile="$f"
|
libfile="$f"
|
||||||
|
rm -f $destpath/$libfile
|
||||||
__runcmd install -m 0755 $libfile $destpath/
|
__runcmd install -m 0755 $libfile $destpath/
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user