summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorDan Callaghan <dan.callaghan@opengear.com>2019-08-05 11:13:53 +1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-06 14:58:10 +0100
commit25ed4f7073bade8c46be3eab5092fb7086161af9 (patch)
tree8a222f680eebcc72def0ead3ad6ab14d71344a0b /meta/classes
parent96357a78f43866a588d6ff9955ca5b8639080f94 (diff)
downloadpoky-25ed4f7073bade8c46be3eab5092fb7086161af9.tar.gz
autotools: always include config_site.d files in CONFIG_SITE
Fixes: https://bugzilla.yoctoproject.org/show_bug.cgi?id=13375 (From OE-Core rev: e60c170b451a4aa561d08bfce97dca05508c2106) Signed-off-by: Dan Callaghan <dan.callaghan@opengear.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/autotools.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 8768a6ad68..3d22ad0255 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -25,7 +25,9 @@ inherit siteinfo
25 25
26# Space separated list of shell scripts with variables defined to supply test 26# Space separated list of shell scripts with variables defined to supply test
27# results for autoconf tests we cannot run at build time. 27# results for autoconf tests we cannot run at build time.
28export CONFIG_SITE = "${@siteinfo_get_files(d)}" 28# The value of this variable is filled in in a prefunc because it depends on
29# the contents of the sysroot.
30export CONFIG_SITE
29 31
30acpaths ?= "default" 32acpaths ?= "default"
31EXTRA_AUTORECONF = "--exclude=autopoint" 33EXTRA_AUTORECONF = "--exclude=autopoint"
@@ -132,6 +134,8 @@ EXTRACONFFUNCS ??= ""
132EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}" 134EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}"
133 135
134do_configure[prefuncs] += "autotools_preconfigure autotools_aclocals ${EXTRACONFFUNCS}" 136do_configure[prefuncs] += "autotools_preconfigure autotools_aclocals ${EXTRACONFFUNCS}"
137do_compile[prefuncs] += "autotools_aclocals"
138do_install[prefuncs] += "autotools_aclocals"
135do_configure[postfuncs] += "autotools_postconfigure" 139do_configure[postfuncs] += "autotools_postconfigure"
136 140
137ACLOCALDIR = "${STAGING_DATADIR}/aclocal" 141ACLOCALDIR = "${STAGING_DATADIR}/aclocal"
@@ -140,7 +144,6 @@ ACLOCALEXTRAPATH_class-target = " -I ${STAGING_DATADIR_NATIVE}/aclocal/"
140ACLOCALEXTRAPATH_class-nativesdk = " -I ${STAGING_DATADIR_NATIVE}/aclocal/" 144ACLOCALEXTRAPATH_class-nativesdk = " -I ${STAGING_DATADIR_NATIVE}/aclocal/"
141 145
142python autotools_aclocals () { 146python autotools_aclocals () {
143 # Refresh variable with cache files
144 d.setVar("CONFIG_SITE", siteinfo_get_files(d, sysrootcache=True)) 147 d.setVar("CONFIG_SITE", siteinfo_get_files(d, sysrootcache=True))
145} 148}
146 149