diff options
-rw-r--r-- | meta/classes/autotools.bbclass | 7 | ||||
-rw-r--r-- | meta/classes/siteinfo.bbclass | 8 |
2 files changed, 12 insertions, 3 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 402ee1bf01..046e83dc9b 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass | |||
@@ -27,7 +27,7 @@ inherit siteinfo | |||
27 | 27 | ||
28 | # Space separated list of shell scripts with variables defined to supply test | 28 | # Space separated list of shell scripts with variables defined to supply test |
29 | # results for autoconf tests we cannot run at build time. | 29 | # results for autoconf tests we cannot run at build time. |
30 | export CONFIG_SITE = "${@siteinfo_get_files(d)}" | 30 | export CONFIG_SITE = "${@siteinfo_get_files(d, False)}" |
31 | 31 | ||
32 | acpaths = "default" | 32 | acpaths = "default" |
33 | EXTRA_AUTORECONF = "--exclude=autopoint" | 33 | EXTRA_AUTORECONF = "--exclude=autopoint" |
@@ -187,6 +187,7 @@ python autotools_copy_aclocals () { | |||
187 | #bb.warn(str(configuredeps2)) | 187 | #bb.warn(str(configuredeps2)) |
188 | 188 | ||
189 | cp = [] | 189 | cp = [] |
190 | siteconf = [] | ||
190 | for c in configuredeps: | 191 | for c in configuredeps: |
191 | if c.endswith("-native"): | 192 | if c.endswith("-native"): |
192 | manifest = d.expand("${SSTATE_MANIFESTS}/manifest-${BUILD_ARCH}-%s.populate_sysroot" % c) | 193 | manifest = d.expand("${SSTATE_MANIFESTS}/manifest-${BUILD_ARCH}-%s.populate_sysroot" % c) |
@@ -201,6 +202,8 @@ python autotools_copy_aclocals () { | |||
201 | for l in f: | 202 | for l in f: |
202 | if "/aclocal/" in l and l.strip().endswith(".m4"): | 203 | if "/aclocal/" in l and l.strip().endswith(".m4"): |
203 | cp.append(l.strip()) | 204 | cp.append(l.strip()) |
205 | elif "config_site.d/" in l: | ||
206 | cp.append(l.strip()) | ||
204 | except: | 207 | except: |
205 | bb.warn("%s not found" % manifest) | 208 | bb.warn("%s not found" % manifest) |
206 | 209 | ||
@@ -208,6 +211,8 @@ python autotools_copy_aclocals () { | |||
208 | t = os.path.join(aclocaldir, os.path.basename(c)) | 211 | t = os.path.join(aclocaldir, os.path.basename(c)) |
209 | if not os.path.exists(t): | 212 | if not os.path.exists(t): |
210 | os.symlink(c, t) | 213 | os.symlink(c, t) |
214 | |||
215 | d.setVar("CONFIG_SITE", siteinfo_get_files(d, False)) | ||
211 | } | 216 | } |
212 | autotools_copy_aclocals[vardepsexclude] += "MACHINE SDK_ARCH BUILD_ARCH SDK_OS BB_TASKDEPDATA" | 217 | autotools_copy_aclocals[vardepsexclude] += "MACHINE SDK_ARCH BUILD_ARCH SDK_OS BB_TASKDEPDATA" |
213 | 218 | ||
diff --git a/meta/classes/siteinfo.bbclass b/meta/classes/siteinfo.bbclass index b41db46bc0..2c1f9d07fc 100644 --- a/meta/classes/siteinfo.bbclass +++ b/meta/classes/siteinfo.bbclass | |||
@@ -150,9 +150,13 @@ def siteinfo_get_files(d, no_cache = False): | |||
150 | if no_cache: return sitefiles | 150 | if no_cache: return sitefiles |
151 | 151 | ||
152 | # Now check for siteconfig cache files | 152 | # Now check for siteconfig cache files |
153 | path_siteconfig = d.getVar('SITECONFIG_SYSROOTCACHE', True) | 153 | # Use the files copied to the aclocal cache generated by autotools.bbclass |
154 | if os.path.isdir(path_siteconfig): | 154 | # to avoid races |
155 | path_siteconfig = d.getVar('ACLOCALDIR', True) | ||
156 | if path_siteconfig and os.path.isdir(path_siteconfig): | ||
155 | for i in os.listdir(path_siteconfig): | 157 | for i in os.listdir(path_siteconfig): |
158 | if not i.endswith("_config"): | ||
159 | continue | ||
156 | filename = os.path.join(path_siteconfig, i) | 160 | filename = os.path.join(path_siteconfig, i) |
157 | sitefiles += filename + " " | 161 | sitefiles += filename + " " |
158 | 162 | ||