From a215c2f283476776567506c2e3f969c48f7e5e3d Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Tue, 9 Mar 2010 16:54:57 -0700 Subject: Don't inherit siteinfo in base.bbclass Acked-by: Richard Purdie Acked-by: Marcin Juszkiewicz Signed-off-by: Chris Larson --- classes/autotools.bbclass | 6 ++++++ classes/base.bbclass | 4 ---- classes/siteinfo.bbclass | 10 ---------- 3 files changed, 6 insertions(+), 14 deletions(-) (limited to 'classes') diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass index c53583b8b6..31d357892a 100644 --- a/classes/autotools.bbclass +++ b/classes/autotools.bbclass @@ -28,6 +28,12 @@ DEPENDS_prepend = "${@autotools_dep_prepend(d)}" DEPENDS_virtclass-native_prepend = "${@autotools_dep_prepend(d)}" DEPENDS_virtclass-nativesdk_prepend = "${@autotools_dep_prepend(d)}" +inherit siteinfo + +# Space separated list of shell scripts with variables defined to supply test +# results for autoconf tests we cannot run at build time. +export CONFIG_SITE = "${@siteinfo_get_files(d)}" + acpaths = "default" EXTRA_AUTORECONF = "--exclude=autopoint" diff --git a/classes/base.bbclass b/classes/base.bbclass index 09eb70989a..76f97d865f 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -1355,10 +1355,6 @@ def check_app_exists(app, d): # Patch handling inherit patch -# Configuration data from site files -# Move to autotools.bbclass? -inherit siteinfo - EXPORT_FUNCTIONS do_setscene do_clean do_mrproper do_distclean do_fetch do_unpack do_configure do_compile do_install do_package do_populate_pkgs do_rebuild do_fetchall MIRRORS[func] = "0" diff --git a/classes/siteinfo.bbclass b/classes/siteinfo.bbclass index 93cee4f890..d7f27054b0 100644 --- a/classes/siteinfo.bbclass +++ b/classes/siteinfo.bbclass @@ -112,14 +112,6 @@ def siteinfo_get_files(d): bb.debug(1, "SITE files " + sitefiles); return sitefiles -# -# Export CONFIG_SITE to the enviroment. The autotools will make use -# of this to determine where to load in variables from. This is a -# space seperate list of shell scripts processed in the order listed. -# -export CONFIG_SITE = "${@siteinfo_get_files(d)}" - - def siteinfo_get_endianess(d): info = get_siteinfo_list(d) if 'endian-little' in info: @@ -141,5 +133,3 @@ def siteinfo_get_bits(d): # SITEINFO_ENDIANESS = "${@siteinfo_get_endianess(d)}" SITEINFO_BITS = "${@siteinfo_get_bits(d)}" - - -- cgit v1.2.3