mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
scripts/bitbake-prserv-tool: Fix to work with memres bitbake
Deleting data files whilst bitbake is running isn't a great idea. Make sure memory resident bitbake is stopped if present and make the file deletions a little more specific and safer too while we're here. Note: The cache directory layout is different on older releases (some are split level) so this won't be a direct backport to some. (From OE-Core rev: fa3f1f67abae1d90bede2e98bf7293603fd1307c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -17,8 +17,11 @@ help ()
|
|||||||
clean_cache()
|
clean_cache()
|
||||||
{
|
{
|
||||||
s=`bitbake -e | grep ^CACHE= | cut -f2 -d\"`
|
s=`bitbake -e | grep ^CACHE= | cut -f2 -d\"`
|
||||||
|
# Stop any active memory resident server
|
||||||
|
bitbake -m
|
||||||
|
# Remove cache entries since we want to trigger a full reparse
|
||||||
if [ "x${s}" != "x" ]; then
|
if [ "x${s}" != "x" ]; then
|
||||||
rm -rf ${s}
|
rm -f ${s}/bb_cache*.dat.*
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,7 +65,7 @@ do_migrate_localcount ()
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf $df
|
rm -f $df
|
||||||
clean_cache
|
clean_cache
|
||||||
echo "Exporting LOCALCOUNT to AUTOINCs..."
|
echo "Exporting LOCALCOUNT to AUTOINCs..."
|
||||||
bitbake -R conf/migrate_localcount.conf -p
|
bitbake -R conf/migrate_localcount.conf -p
|
||||||
|
|||||||
Reference in New Issue
Block a user