summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-02-25 14:26:33 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-27 10:55:16 +0000
commita4b1fa2b22794d59fee716afe6e269dae7f87ace (patch)
treedbbec9eafaaf4aa8a7056efc9e0d9bf40bfa62a7
parent510a1fb72b4bbe011948c5dc7918049fb18eaf3b (diff)
downloadpoky-a4b1fa2b22794d59fee716afe6e269dae7f87ace.tar.gz
autotools: don't try and find in-tree macros
autotools has improved a lot since this class was written, and there's now no need to search the source tree for m4 files and add them to the include path. If packages have macros in subdirectories the idiom is to tell aclocal via an assignment in Makefile.am: ACLOCAL_AMFLAGS = -I gl/m4 -I m4 If, for example, a package isn't autoreconfable out of the box (because it has a non-trivial autogen.sh or similar, say) then the required -I statements can be added to EXTRA_AUTORECONF. (From OE-Core rev: e718d1be2c4fb54cf363c23f929358e1be68c724) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-recipe/autotools.bbclass14
1 files changed, 2 insertions, 12 deletions
diff --git a/meta/classes-recipe/autotools.bbclass b/meta/classes-recipe/autotools.bbclass
index e33eae7d48..bffd8a7a05 100644
--- a/meta/classes-recipe/autotools.bbclass
+++ b/meta/classes-recipe/autotools.bbclass
@@ -36,7 +36,6 @@ inherit siteinfo
36# the contents of the sysroot. 36# the contents of the sysroot.
37export CONFIG_SITE 37export CONFIG_SITE
38 38
39acpaths ?= "default"
40EXTRA_AUTORECONF += "--exclude=autopoint" 39EXTRA_AUTORECONF += "--exclude=autopoint"
41 40
42export lt_cv_sys_lib_dlsearch_path_spec = "${libdir} ${base_libdir}" 41export lt_cv_sys_lib_dlsearch_path_spec = "${libdir} ${base_libdir}"
@@ -167,15 +166,6 @@ autotools_do_configure() {
167 cd ${AUTOTOOLS_SCRIPT_PATH} 166 cd ${AUTOTOOLS_SCRIPT_PATH}
168 # aclocal looks in the native sysroot by default, so tell it to also look in the target sysroot. 167 # aclocal looks in the native sysroot by default, so tell it to also look in the target sysroot.
169 ACLOCAL="aclocal --aclocal-path=${STAGING_DATADIR}/aclocal/" 168 ACLOCAL="aclocal --aclocal-path=${STAGING_DATADIR}/aclocal/"
170 if [ x"${acpaths}" = xdefault ]; then
171 acpaths=
172 for i in `find ${AUTOTOOLS_SCRIPT_PATH} -ignore_readdir_race -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \
173 grep -v 'acinclude.m4' | sed -e 's,\(.*/\).*$,\1,'|sort -u`; do
174 acpaths="$acpaths -I $i"
175 done
176 else
177 acpaths="${acpaths}"
178 fi
179 # autoreconf is too shy to overwrite aclocal.m4 if it doesn't look 169 # autoreconf is too shy to overwrite aclocal.m4 if it doesn't look
180 # like it was auto-generated. Work around this by blowing it away 170 # like it was auto-generated. Work around this by blowing it away
181 # by hand, unless the package specifically asked not to run aclocal. 171 # by hand, unless the package specifically asked not to run aclocal.
@@ -212,8 +202,8 @@ autotools_do_configure() {
212 find ${S} -ignore_readdir_race -name $i -delete 202 find ${S} -ignore_readdir_race -name $i -delete
213 done 203 done
214 204
215 bbnote Executing ACLOCAL=\"$ACLOCAL\" autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF} $acpaths 205 bbnote Executing ACLOCAL=\"$ACLOCAL\" autoreconf -Wcross --verbose --install --force ${EXTRA_AUTORECONF}
216 ACLOCAL="$ACLOCAL" autoreconf -Wcross -Wno-obsolete --verbose --install --force ${EXTRA_AUTORECONF} $acpaths || die "autoreconf execution failed." 206 ACLOCAL="$ACLOCAL" autoreconf -Wcross -Wno-obsolete --verbose --install --force ${EXTRA_AUTORECONF} || die "autoreconf execution failed."
217 cd $olddir 207 cd $olddir
218 fi 208 fi
219 if [ -e ${CONFIGURE_SCRIPT} ]; then 209 if [ -e ${CONFIGURE_SCRIPT} ]; then