[oe-commits] Ross Burton : autotools.bbclass: remove autotools_set_crosscompiling

git at git.openembedded.org git at git.openembedded.org
Thu Jul 3 16:47:10 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: adaa0568390d0dfef1c4d87809601aab85299e97
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=adaa0568390d0dfef1c4d87809601aab85299e97

Author: Ross Burton <ross.burton at intel.com>
Date:   Wed Jul  2 11:24:11 2014 +0100

autotools.bbclass: remove autotools_set_crosscompiling

The only reference to this function is a commented-out assignment, and nothing
in oe-core nor meta-oe uses autotools_set_crosscompiling directly.  As it's
unused, remove it.

Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/autotools.bbclass | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 0dc1e6b..19edc54 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -49,19 +49,12 @@ export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
 export LD_FOR_BUILD = "${BUILD_LD}"
 export LDFLAGS_FOR_BUILD = "${BUILD_LDFLAGS}"
 
-def autotools_set_crosscompiling(d):
-    if not bb.data.inherits_class('native', d):
-        return " cross_compiling=yes"
-    return ""
-
 def append_libtool_sysroot(d):
     # Only supply libtool sysroot option for non-native packages
     if not bb.data.inherits_class('native', d):
         return '--with-libtool-sysroot=${STAGING_DIR_HOST}'
     return ""
 
-# EXTRA_OECONF_append = "${@autotools_set_crosscompiling(d)}"
-
 CONFIGUREOPTS = " --build=${BUILD_SYS} \
 		  --host=${HOST_SYS} \
 		  --target=${TARGET_SYS} \



More information about the Openembedded-commits mailing list