diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-01-15 16:33:18 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-01-20 13:38:59 +0000 |
| commit | 9902db8e99f619abfa8fcd93eaa075b5416acf43 (patch) | |
| tree | 4fb82272426d80a301acd60c22544591123980de /meta | |
| parent | ee6e5105f7948174dd0002233e9e8eafcf7be97f (diff) | |
| download | poky-9902db8e99f619abfa8fcd93eaa075b5416acf43.tar.gz | |
autoconf: rename autotools_aclocals and only run in do_configure
Despite the name, autotools_aclocals() doesn't actually do anything with
aclocal. Instead it reads all of the available autoconf site default
files[1] and sets CONFIG_SITE appropriately. Rename the function to
autotools_sitefiles to make this clear.
Also there's no need to do this before do_configure or do_install, as
the variable is only checked when configure runs.
[1] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Site-Defaults.html
(From OE-Core rev: 05080b48a9607e19a251c7396c1b06f08d98ed3b)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes-recipe/autotools.bbclass | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/meta/classes-recipe/autotools.bbclass b/meta/classes-recipe/autotools.bbclass index 99d3cb7583..b1829e83e2 100644 --- a/meta/classes-recipe/autotools.bbclass +++ b/meta/classes-recipe/autotools.bbclass | |||
| @@ -134,12 +134,11 @@ EXTRACONFFUNCS ??= "" | |||
| 134 | 134 | ||
| 135 | EXTRA_OECONF:append = " ${PACKAGECONFIG_CONFARGS}" | 135 | EXTRA_OECONF:append = " ${PACKAGECONFIG_CONFARGS}" |
| 136 | 136 | ||
| 137 | do_configure[prefuncs] += "autotools_preconfigure autotools_aclocals ${EXTRACONFFUNCS}" | 137 | do_configure[prefuncs] += "autotools_preconfigure autotools_sitefiles ${EXTRACONFFUNCS}" |
| 138 | do_compile[prefuncs] += "autotools_aclocals" | ||
| 139 | do_install[prefuncs] += "autotools_aclocals" | ||
| 140 | do_configure[postfuncs] += "autotools_postconfigure" | 138 | do_configure[postfuncs] += "autotools_postconfigure" |
| 141 | 139 | ||
| 142 | python autotools_aclocals () { | 140 | # Tell autoconf to load the site defaults from siteinfo |
| 141 | python autotools_sitefiles () { | ||
| 143 | sitefiles, searched = siteinfo_get_files(d, sysrootcache=True) | 142 | sitefiles, searched = siteinfo_get_files(d, sysrootcache=True) |
| 144 | d.setVar("CONFIG_SITE", " ".join(sitefiles)) | 143 | d.setVar("CONFIG_SITE", " ".join(sitefiles)) |
| 145 | } | 144 | } |
