[oe-commits] [openembedded-core] 02/28: bitbake.conf: set READELF for cross compilation

git at git.openembedded.org git at git.openembedded.org
Wed Aug 3 15:00:06 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit df0a04e898a61db7a0d9ee7bae57e174c989726e
Author: Jeremy Puhlman <jpuhlman at mvista.com>
AuthorDate: Mon Aug 1 09:02:55 2016 -0700

    bitbake.conf: set READELF for cross compilation
    
    In the case of using an external toolchain that supports multilib
    compilation with a single binary, TARGET_PREFIX is the same for both main
    and multilib abis. Without READELF exported, python3 assumes it is
    either the readelf for ${BUILD_SYS}-readelf. Exporting cross readelf
    fixes the build issue.
    
    checking LDLIBRARY... libpython$(LDVERSION).so
    checking for i586-montavistamllib32-linux-ranlib...
    x86_64-montavista-linux-ranlib
    checking for i586-montavistamllib32-linux-ar...
    x86_64-montavista-linux-ar
    checking for i586-montavistamllib32-linux-readelf... no
    checking for readelf... readelf
    configure: WARNING: using cross tools not prefixed with host triplet
    
    Signed-off-by: Jeremy Puhlman <jpuhlman at mvista.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/conf/bitbake.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 900d2fe..c32a3f8 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -471,6 +471,7 @@ export OBJCOPY = "${HOST_PREFIX}objcopy"
 export OBJDUMP = "${HOST_PREFIX}objdump"
 export STRINGS = "${HOST_PREFIX}strings"
 export NM = "${HOST_PREFIX}nm"
+export READELF = "${HOST_PREFIX}readelf"
 PYTHON = "${@sys.executable}"
 
 export BUILD_CC = "${CCACHE}${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list