diff options
author | Jeremy Puhlman <jpuhlman@mvista.com> | 2016-08-01 09:02:55 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-04 15:22:22 +0100 |
commit | 2d565fae46125d2d4016e7eead1a9043808d0cf9 (patch) | |
tree | 7e5bbf4d31ccf97c94e65c6587fd0fb5784844f3 /meta/conf | |
parent | 8b5f369726de3ac354a68a48080eb532b5ec2b53 (diff) | |
download | poky-2d565fae46125d2d4016e7eead1a9043808d0cf9.tar.gz |
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
(From OE-Core rev: 3442ee423813d547be7899a25ea31efe719e662f)
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/bitbake.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 900d2fe259..c32a3f8a66 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -471,6 +471,7 @@ export OBJCOPY = "${HOST_PREFIX}objcopy" | |||
471 | export OBJDUMP = "${HOST_PREFIX}objdump" | 471 | export OBJDUMP = "${HOST_PREFIX}objdump" |
472 | export STRINGS = "${HOST_PREFIX}strings" | 472 | export STRINGS = "${HOST_PREFIX}strings" |
473 | export NM = "${HOST_PREFIX}nm" | 473 | export NM = "${HOST_PREFIX}nm" |
474 | export READELF = "${HOST_PREFIX}readelf" | ||
474 | PYTHON = "${@sys.executable}" | 475 | PYTHON = "${@sys.executable}" |
475 | 476 | ||
476 | export BUILD_CC = "${CCACHE}${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}" | 477 | export BUILD_CC = "${CCACHE}${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}" |