summaryrefslogtreecommitdiffstats
path: root/meta/classes/siteinfo.bbclass
diff options
context:
space:
mode:
authorJeff Polk <jeff.polk@windriver.com>2010-09-02 15:08:59 -0600
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-03 10:50:02 +0100
commitd2febcce2b584e634a664bf128359c69a70a811f (patch)
tree4e7a3d85d5b489e91a914dc1ba57b793a4c82aea /meta/classes/siteinfo.bbclass
parentd6c45f0f1184e94a45381af9813f831aaa9052ef (diff)
downloadpoky-d2febcce2b584e634a664bf128359c69a70a811f.tar.gz
siteconfig: generate configuration data caches for autoconf
siteinfo: Use configuration caches when available Generate cached configuration data for autoconf for the package based on a list of header, types, and functions to eliminate the need for all subesequent package builds to do the actual tests via the cross compiler and sysroot. The cache files are stored in the sysroot in ${STAGING_DATADIR}/${TARGET_SYS}_config_site.d. Siteinfo appends any files it finds in that directory to the normal CONFIG_SITE. All of the cache values set the variables only if not already set so they may be overridden by any of the normal site files. Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
Diffstat (limited to 'meta/classes/siteinfo.bbclass')
-rw-r--r--meta/classes/siteinfo.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/siteinfo.bbclass b/meta/classes/siteinfo.bbclass
index c4206c2d85..130fdc4cfb 100644
--- a/meta/classes/siteinfo.bbclass
+++ b/meta/classes/siteinfo.bbclass
@@ -96,6 +96,13 @@ def siteinfo_get_files(d):
96 if os.path.exists(fname): 96 if os.path.exists(fname):
97 sitefiles += fname + " " 97 sitefiles += fname + " "
98 98
99 # Now check for siteconfig cache files
100 path_siteconfig = os.path.join(bb.data.getVar('STAGING_DATADIR', d, 1), bb.data.getVar('TARGET_SYS', d, 1) + "_config_site.d")
101 if os.path.isdir(path_siteconfig):
102 for i in os.listdir(path_siteconfig):
103 fname = os.path.join(path_siteconfig, i)
104 sitefiles += fname + " "
105
99 bb.debug(1, "SITE files " + sitefiles); 106 bb.debug(1, "SITE files " + sitefiles);
100 return sitefiles 107 return sitefiles
101 108