summaryrefslogtreecommitdiff
path: root/scripts/sstate-cache-management.sh
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2012-09-02 13:13:20 +0200
committerSaul Wold <sgw@linux.intel.com>2012-09-03 22:52:55 -0700
commit6faf27b771176ff691c17a2dbfa98ac7b3ed1fc7 (patch)
tree82eaf73b04ad6ac09b0e16c17872bd641f4538de /scripts/sstate-cache-management.sh
parentceeefd964026e11ce0bb3b0285dbf9917533ae5e (diff)
downloadopenembedded-core-6faf27b771176ff691c17a2dbfa98ac7b3ed1fc7.tar.gz
openembedded-core-6faf27b771176ff691c17a2dbfa98ac7b3ed1fc7.tar.bz2
openembedded-core-6faf27b771176ff691c17a2dbfa98ac7b3ed1fc7.zip
sstate-cache-management.sh: look in meta* above oe-core dir when looking for available tunes
* 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>
Diffstat (limited to 'scripts/sstate-cache-management.sh')
-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 (){
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