mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
sstate-cache-management.sh: don't hardcode available sstate_suffixes
Don't hardcode available sstate_suffixes(it misses `packagedata'), find them dynamically in $sstate_list. [YOCTO #3635] (From OE-Core rev: 26adfcb8c33fe62f5e15c3591efc670d70cbb5b7) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
2032301ef4
commit
a18e02b01f
@@ -185,11 +185,16 @@ remove_duplicated () {
|
|||||||
| sed -e 's/-/_/g' -e 's/ /\n/g' | sort -u)
|
| sed -e 's/-/_/g' -e 's/ /\n/g' | sort -u)
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
|
||||||
sstate_suffixes="deploy-rpm deploy-ipk deploy-deb deploy package populate-lic populate-sysroot"
|
|
||||||
|
|
||||||
# Save all the sstate files in a file
|
# Save all the sstate files in a file
|
||||||
sstate_list=`mktemp` || exit 1
|
sstate_list=`mktemp` || exit 1
|
||||||
find $cache_dir -name 'sstate-*.tgz' >$sstate_list
|
find $cache_dir -name 'sstate-*.tgz' >$sstate_list
|
||||||
|
|
||||||
|
echo -n "Figuring out the suffixes in the sstate cache dir ... "
|
||||||
|
sstate_suffixes="`sed 's/.*_\([^_]*\)\.tgz$/\1/g' $sstate_list | sort -u`"
|
||||||
|
echo "Done"
|
||||||
|
echo "The following suffixes have been found in the cache dir:"
|
||||||
|
echo $sstate_suffixes
|
||||||
|
|
||||||
echo -n "Figuring out the archs in the sstate cache dir ... "
|
echo -n "Figuring out the archs in the sstate cache dir ... "
|
||||||
for arch in $all_archs; do
|
for arch in $all_archs; do
|
||||||
grep -q "\-$arch-" $sstate_list
|
grep -q "\-$arch-" $sstate_list
|
||||||
|
|||||||
Reference in New Issue
Block a user