mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02: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:
parent
f3ad36d15c
commit
29afbb5e14
|
@ -17,8 +17,11 @@ help ()
|
|||
clean_cache()
|
||||
{
|
||||
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
|
||||
rm -rf ${s}
|
||||
rm -f ${s}/bb_cache*.dat.*
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -62,7 +65,7 @@ do_migrate_localcount ()
|
|||
return 1
|
||||
fi
|
||||
|
||||
rm -rf $df
|
||||
rm -f $df
|
||||
clean_cache
|
||||
echo "Exporting LOCALCOUNT to AUTOINCs..."
|
||||
bitbake -R conf/migrate_localcount.conf -p
|
||||
|
|
Loading…
Reference in New Issue
Block a user