]> code.ossystems Code Review - openembedded-core.git/commitdiff
autoconf: Override config.guess/.sub in source tree
authorNathan Rossi <nathan@nathanrossi.com>
Wed, 6 Dec 2017 09:51:57 +0000 (19:51 +1000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Dec 2017 18:00:23 +0000 (18:00 +0000)
autoconf has not been released in a number of years. However many
changes have been made to the gnu-config config.guess/.sub since 2.69,
including new architectures, OS variants, etc. In order to enable these
targets without creating patches for the source itself populate the
gnu-config files from the sysroot as is done with autotools recipes.
Whilst it is not possible for the autoconf recipe to bootstrap its
configure task (using the autotools_do_configure), the files can be
manually copied into the target location.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/autoconf/autoconf.inc

index ea62df8fb64e3ee3d2eae2a95249194ba2fa5e04..df81bc610795653399dbf959f26a29c1b2217e79 100644 (file)
@@ -41,6 +41,10 @@ PERL_class-nativesdk = "/usr/bin/env perl"
 CACHED_CONFIGUREVARS += "ac_cv_path_PERL='${PERL}'"
 
 do_configure() {
+       # manually install a newer config.guess/.sub
+       install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/build-aux
+       install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/build-aux
+
        oe_runconf
 }