mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
d6c45f0f11
commit
d2febcce2b
@@ -96,6 +96,13 @@ def siteinfo_get_files(d):
|
||||
if os.path.exists(fname):
|
||||
sitefiles += fname + " "
|
||||
|
||||
# Now check for siteconfig cache files
|
||||
path_siteconfig = os.path.join(bb.data.getVar('STAGING_DATADIR', d, 1), bb.data.getVar('TARGET_SYS', d, 1) + "_config_site.d")
|
||||
if os.path.isdir(path_siteconfig):
|
||||
for i in os.listdir(path_siteconfig):
|
||||
fname = os.path.join(path_siteconfig, i)
|
||||
sitefiles += fname + " "
|
||||
|
||||
bb.debug(1, "SITE files " + sitefiles);
|
||||
return sitefiles
|
||||
|
||||
|
||||
Reference in New Issue
Block a user