summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/sstate-cache-management.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/sstate-cache-management.sh b/scripts/sstate-cache-management.sh
index 0f774a3f4e..e569487a8a 100755
--- a/scripts/sstate-cache-management.sh
+++ b/scripts/sstate-cache-management.sh
@@ -153,6 +153,7 @@ gen_rmlist (){
153remove_duplicated () { 153remove_duplicated () {
154 154
155 local topdir 155 local topdir
156 local oe_core_dir
156 local tunedirs 157 local tunedirs
157 local all_archs 158 local all_archs
158 local ava_archs 159 local ava_archs
@@ -164,8 +165,9 @@ remove_duplicated () {
164 165
165 # Find out the archs in all the layers 166 # Find out the archs in all the layers
166 echo -n "Figuring out the archs in the layers ... " 167 echo -n "Figuring out the archs in the layers ... "
167 topdir=$(dirname $(dirname $(readlink -e $0))) 168 oe_core_dir=$(dirname $(dirname $(readlink -e $0)))
168 tunedirs="`find $topdir/meta* $layers -path '*/meta*/conf/machine/include'`" 169 topdir=$(dirname $oe_core_dir)
170 tunedirs="`find $topdir/meta* ${oe_core_dir}/meta* $layers -path '*/meta*/conf/machine/include'`"
169 [ -n "$tunedirs" ] || echo_error "Can't find the tune directory" 171 [ -n "$tunedirs" ] || echo_error "Can't find the tune directory"
170 all_archs=`grep -r -h "^AVAILTUNES .*=" $tunedirs | sed -e 's/.*=//' -e 's/\"//g'` 172 all_archs=`grep -r -h "^AVAILTUNES .*=" $tunedirs | sed -e 's/.*=//' -e 's/\"//g'`
171 # Add the qemu and native archs 173 # Add the qemu and native archs