mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
siteconfig: Drop siteconfig class/code/support
The siteconfig code was only used for 5 cache values. The complexity added to sstate to support this code was considerable and the runtime much more significant than any benefit the cache files would have added. Drop the support for this which was only used minimally for ncurses and zlib. (From OE-Core rev: f3766dc038f7ba9780ddaf5eb8d27385ea31d7d0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -254,8 +254,6 @@ autotools_do_install() {
|
||||
fi
|
||||
}
|
||||
|
||||
inherit siteconfig
|
||||
|
||||
EXPORT_FUNCTIONS do_configure do_compile do_install
|
||||
|
||||
B = "${WORKDIR}/build"
|
||||
|
||||
@@ -221,20 +221,6 @@ def siteinfo_get_files(d, sysrootcache=False):
|
||||
# This would show up as breaking sstatetests.SStateTests.test_sstate_32_64_same_hash for example
|
||||
searched = []
|
||||
|
||||
if not sysrootcache:
|
||||
return sitefiles, searched
|
||||
|
||||
# Now check for siteconfig cache files in sysroots
|
||||
path_siteconfig = d.getVar('SITECONFIG_SYSROOTCACHE')
|
||||
if path_siteconfig and os.path.isdir(path_siteconfig):
|
||||
for i in os.listdir(path_siteconfig):
|
||||
if not i.endswith("_config"):
|
||||
continue
|
||||
filename = os.path.join(path_siteconfig, i)
|
||||
sitefiles.append(filename)
|
||||
return sitefiles, searched
|
||||
|
||||
#
|
||||
# Make some information available via variables
|
||||
#
|
||||
SITECONFIG_SYSROOTCACHE = "${STAGING_DATADIR}/${TARGET_SYS}_config_site.d"
|
||||
|
||||
|
||||
@@ -201,7 +201,6 @@ EOF
|
||||
|
||||
#we get the cached site config in the runtime
|
||||
TOOLCHAIN_CONFIGSITE_NOCACHE = "${@' '.join(siteinfo_get_files(d)[0])}"
|
||||
TOOLCHAIN_CONFIGSITE_SYSROOTCACHE = "${STAGING_DIR}/${MLPREFIX}${MACHINE}/${target_datadir}/${TARGET_SYS}_config_site.d"
|
||||
TOOLCHAIN_NEED_CONFIGSITE_CACHE ??= "virtual/${MLPREFIX}libc ncurses"
|
||||
DEPENDS += "${TOOLCHAIN_NEED_CONFIGSITE_CACHE}"
|
||||
|
||||
@@ -223,14 +222,8 @@ toolchain_create_sdk_siteconfig () {
|
||||
sitefile=`echo $sitefile | tr / _`
|
||||
sitefile=`cat ${STAGING_DIR_TARGET}/sysroot-providers/$sitefile`
|
||||
esac
|
||||
|
||||
if [ -r ${TOOLCHAIN_CONFIGSITE_SYSROOTCACHE}/${sitefile}_config ]; then
|
||||
cat ${TOOLCHAIN_CONFIGSITE_SYSROOTCACHE}/${sitefile}_config >> $siteconfig
|
||||
fi
|
||||
done
|
||||
}
|
||||
# The immediate expansion above can result in unwanted path dependencies here
|
||||
toolchain_create_sdk_siteconfig[vardepsexclude] = "TOOLCHAIN_CONFIGSITE_SYSROOTCACHE"
|
||||
|
||||
python __anonymous () {
|
||||
import oe.classextend
|
||||
|
||||
Reference in New Issue
Block a user