diff options
author | Lianhao Lu <lianhao.lu@intel.com> | 2011-08-16 11:15:36 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-24 19:26:08 -0700 |
commit | c6b808413d5ff1dbfdc4d615917345503029a282 (patch) | |
tree | 8aea6f97547e1e2c5e62ae79b1b666e4224426f1 /meta/classes/siteinfo.bbclass | |
parent | 4c2baa237f925543ae5c87009ca74d75529e51a6 (diff) | |
download | poky-c6b808413d5ff1dbfdc4d615917345503029a282.tar.gz |
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.
(From OE-Core rev: 9e87f1347788beed181476dc4563085db14a4729)
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/siteinfo.bbclass')
-rw-r--r-- | meta/classes/siteinfo.bbclass | 4 |
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 () { | |||
118 | bb.fatal("Please add your architecture to siteinfo.bbclass") | 118 | bb.fatal("Please add your architecture to siteinfo.bbclass") |
119 | } | 119 | } |
120 | 120 | ||
121 | def siteinfo_get_files(d): | 121 | def siteinfo_get_files(d, no_cache = False): |
122 | sitedata = siteinfo_data(d) | 122 | sitedata = siteinfo_data(d) |
123 | sitefiles = "" | 123 | sitefiles = "" |
124 | for path in d.getVar("BBPATH", True).split(":"): | 124 | for path in d.getVar("BBPATH", True).split(":"): |
@@ -127,6 +127,8 @@ def siteinfo_get_files(d): | |||
127 | if os.path.exists(filename): | 127 | if os.path.exists(filename): |
128 | sitefiles += filename + " " | 128 | sitefiles += filename + " " |
129 | 129 | ||
130 | if no_cache: return sitefiles | ||
131 | |||
130 | # Now check for siteconfig cache files | 132 | # Now check for siteconfig cache files |
131 | path_siteconfig = bb.data.getVar('SITECONFIG_SYSROOTCACHE', d, 1) | 133 | path_siteconfig = bb.data.getVar('SITECONFIG_SYSROOTCACHE', d, 1) |
132 | if os.path.isdir(path_siteconfig): | 134 | if os.path.isdir(path_siteconfig): |