summaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk_ext.bbclass
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-08-11 16:45:01 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-17 10:35:40 +0100
commit37b81968bb74b2ea06c317fce68deb9739dba666 (patch)
treed7cef43f0dde5820fec0639fb73974086824ec32 /meta/classes/populate_sdk_ext.bbclass
parent53b79353eac604f1a9c13b727de6470cb479a034 (diff)
downloadpoky-37b81968bb74b2ea06c317fce68deb9739dba666.tar.gz
classes/populate_sdk_ext: sstate filtering fixes
A couple of fixes for the recent sstate filtering implemented in OE-Core revision 4b7b48fcb9b39fccf8222650c2608325df2a4507: * We shouldn't be deleting the downloads directory here, since it contains the uninative tarball that we will need * TMPDIR might not be named "tmp" - in OE-Core the default is tmp-glibc so use the actual name of TMPDIR here instead. (From OE-Core rev: 71ecd3bea680ef8c589257844512a14b65e979d3) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/populate_sdk_ext.bbclass')
-rw-r--r--meta/classes/populate_sdk_ext.bbclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index c16e228e7e..a075a0930a 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -85,10 +85,11 @@ SDK_EXT_HOST_MANIFEST = "${SDK_DEPLOY}/${TOOLCHAINEXT_OUTPUTNAME}.host.manifest"
85 85
86SDK_TITLE_task-populate-sdk-ext = "${@d.getVar('DISTRO_NAME', True) or d.getVar('DISTRO', True)} Extensible SDK" 86SDK_TITLE_task-populate-sdk-ext = "${@d.getVar('DISTRO_NAME', True) or d.getVar('DISTRO', True)} Extensible SDK"
87 87
88def clean_esdk_builddir(sdkbasepath): 88def clean_esdk_builddir(d, sdkbasepath):
89 """Clean up traces of the fake build for create_filtered_tasklist()""" 89 """Clean up traces of the fake build for create_filtered_tasklist()"""
90 import shutil 90 import shutil
91 cleanpaths = 'tmp cache conf/sanity_info conf/templateconf.cfg downloads'.split() 91 cleanpaths = 'cache conf/sanity_info conf/templateconf.cfg'.split()
92 cleanpaths.append(os.path.basename(d.getVar('TMPDIR', True)))
92 for pth in cleanpaths: 93 for pth in cleanpaths:
93 fullpth = os.path.join(sdkbasepath, pth) 94 fullpth = os.path.join(sdkbasepath, pth)
94 if os.path.isdir(fullpth): 95 if os.path.isdir(fullpth):
@@ -140,7 +141,7 @@ def create_filtered_tasklist(d, sdkbasepath, tasklistfile, conf_initpath):
140 os.rename(temp_sdkbasepath, sdkbasepath) 141 os.rename(temp_sdkbasepath, sdkbasepath)
141 # Clean out residue of running bitbake, which check_sstate_task_list() 142 # Clean out residue of running bitbake, which check_sstate_task_list()
142 # will effectively do 143 # will effectively do
143 clean_esdk_builddir(sdkbasepath) 144 clean_esdk_builddir(d, sdkbasepath)
144 finally: 145 finally:
145 os.replace(sdkbasepath + '/conf/local.conf.bak', sdkbasepath + '/conf/local.conf') 146 os.replace(sdkbasepath + '/conf/local.conf.bak', sdkbasepath + '/conf/local.conf')
146 147