summaryrefslogtreecommitdiff
path: root/meta/classes/siteinfo.bbclass
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2011-08-16 11:15:36 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-24 19:25:33 -0700
commit9e87f1347788beed181476dc4563085db14a4729 (patch)
treeae4c8eaaa02a2fa2f465d82829e80beb7a99b9cc /meta/classes/siteinfo.bbclass
parent19fb07bf337e1d724798e2eb4479c35fc45b1941 (diff)
downloadopenembedded-core-9e87f1347788beed181476dc4563085db14a4729.tar.gz
openembedded-core-9e87f1347788beed181476dc4563085db14a4729.tar.bz2
openembedded-core-9e87f1347788beed181476dc4563085db14a4729.zip
toolchain-script.bbclass: Collected cached site config in runtime.
[YOCTO #892] Modify the function toolchain_create_sdk_siteconfig to collect the cached site config files which are specified by TOOLCHAIN_NEED_CONFIGSITE_CACHE in runtime. Also added task dependency to ensure the cached site config files are generated. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Diffstat (limited to 'meta/classes/siteinfo.bbclass')
-rw-r--r--meta/classes/siteinfo.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/siteinfo.bbclass b/meta/classes/siteinfo.bbclass
index a61b5e50cd..02294c4d2e 100644
--- a/meta/classes/siteinfo.bbclass
+++ b/meta/classes/siteinfo.bbclass
@@ -118,7 +118,7 @@ python () {
bb.fatal("Please add your architecture to siteinfo.bbclass")
}
-def siteinfo_get_files(d):
+def siteinfo_get_files(d, no_cache = False):
sitedata = siteinfo_data(d)
sitefiles = ""
for path in d.getVar("BBPATH", True).split(":"):
@@ -127,6 +127,8 @@ def siteinfo_get_files(d):
if os.path.exists(filename):
sitefiles += filename + " "
+ if no_cache: return sitefiles
+
# Now check for siteconfig cache files
path_siteconfig = bb.data.getVar('SITECONFIG_SYSROOTCACHE', d, 1)
if os.path.isdir(path_siteconfig):