mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
siteinfo: fix siteinfo_get_files to work with RSS
The siteconfig cache files in ACLOCALDIR setup by autotools.bbclass has been dropped after switching to RSS, so change the siteconfig search path back to SITECONFIG_SYSROOTCACHE and the parameter name changed from aclocalcache to sysrootcache. (From OE-Core rev: 5b1454304483a0bc725b32fd5458e5281c68112f) Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a88d33f47f
commit
e925d9b9cc
@@ -141,7 +141,7 @@ ACLOCALEXTRAPATH_class-nativesdk = " -I ${STAGING_DATADIR_NATIVE}/aclocal/"
|
|||||||
|
|
||||||
python autotools_aclocals () {
|
python autotools_aclocals () {
|
||||||
# Refresh variable with cache files
|
# Refresh variable with cache files
|
||||||
d.setVar("CONFIG_SITE", siteinfo_get_files(d, aclocalcache=True))
|
d.setVar("CONFIG_SITE", siteinfo_get_files(d, sysrootcache=True))
|
||||||
}
|
}
|
||||||
|
|
||||||
CONFIGURE_FILES = "${S}/configure.in ${S}/configure.ac ${S}/config.h.in ${S}/acinclude.m4 Makefile.am"
|
CONFIGURE_FILES = "${S}/configure.in ${S}/configure.ac ${S}/config.h.in ${S}/acinclude.m4 Makefile.am"
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ python () {
|
|||||||
bb.fatal("Please add your architecture to siteinfo.bbclass")
|
bb.fatal("Please add your architecture to siteinfo.bbclass")
|
||||||
}
|
}
|
||||||
|
|
||||||
def siteinfo_get_files(d, aclocalcache = False):
|
def siteinfo_get_files(d, sysrootcache = False):
|
||||||
sitedata = siteinfo_data(d)
|
sitedata = siteinfo_data(d)
|
||||||
sitefiles = ""
|
sitefiles = ""
|
||||||
for path in d.getVar("BBPATH").split(":"):
|
for path in d.getVar("BBPATH").split(":"):
|
||||||
@@ -162,18 +162,11 @@ def siteinfo_get_files(d, aclocalcache = False):
|
|||||||
if os.path.exists(filename):
|
if os.path.exists(filename):
|
||||||
sitefiles += filename + " "
|
sitefiles += filename + " "
|
||||||
|
|
||||||
if not aclocalcache:
|
if not sysrootcache:
|
||||||
return sitefiles
|
return sitefiles
|
||||||
|
|
||||||
# Now check for siteconfig cache files in the directory setup by autotools.bbclass to
|
# Now check for siteconfig cache files in sysroots
|
||||||
# avoid races.
|
path_siteconfig = d.getVar('SITECONFIG_SYSROOTCACHE')
|
||||||
#
|
|
||||||
# ACLOCALDIR may or may not exist so cache should only be set to True from autotools.bbclass
|
|
||||||
# after files have been copied into this location. To do otherwise risks parsing/signature
|
|
||||||
# issues and the directory being created/removed whilst this code executes. This can happen
|
|
||||||
# when a multilib recipe is parsed along with its base variant which may be running at the time
|
|
||||||
# causing rare but nasty failures
|
|
||||||
path_siteconfig = d.getVar('ACLOCALDIR')
|
|
||||||
if path_siteconfig and os.path.isdir(path_siteconfig):
|
if path_siteconfig and os.path.isdir(path_siteconfig):
|
||||||
for i in os.listdir(path_siteconfig):
|
for i in os.listdir(path_siteconfig):
|
||||||
if not i.endswith("_config"):
|
if not i.endswith("_config"):
|
||||||
|
|||||||
Reference in New Issue
Block a user