]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate-cache-management.sh: look in meta* above oe-core dir when looking for availabl...
authorMartin Jansa <martin.jansa@gmail.com>
Sun, 2 Sep 2012 11:13:20 +0000 (13:13 +0200)
committerSaul Wold <sgw@linux.intel.com>
Tue, 4 Sep 2012 05:52:55 +0000 (22:52 -0700)
* many layouts have other layers on the same level as oe-core checkout

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
scripts/sstate-cache-management.sh

index 0f774a3f4e1ee55404e291ddde93977479ce7189..e569487a8a02fcf83f1caf1c1b7c7a6d1e6e3ec2 100755 (executable)
@@ -153,6 +153,7 @@ gen_rmlist (){
 remove_duplicated () {
 
   local topdir
+  local oe_core_dir
   local tunedirs
   local all_archs
   local ava_archs
@@ -164,8 +165,9 @@ remove_duplicated () {
 
   # Find out the archs in all the layers
   echo -n "Figuring out the archs in the layers ... "
-  topdir=$(dirname $(dirname $(readlink -e $0)))
-  tunedirs="`find $topdir/meta* $layers -path '*/meta*/conf/machine/include'`"
+  oe_core_dir=$(dirname $(dirname $(readlink -e $0)))
+  topdir=$(dirname $oe_core_dir)
+  tunedirs="`find $topdir/meta* ${oe_core_dir}/meta* $layers -path '*/meta*/conf/machine/include'`"
   [ -n "$tunedirs" ] || echo_error "Can't find the tune directory"
   all_archs=`grep -r -h "^AVAILTUNES .*=" $tunedirs | sed -e 's/.*=//' -e 's/\"//g'`
   # Add the qemu and native archs