summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Puhlman <jpuhlman@mvista.com>2016-08-01 09:02:55 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-04 15:05:47 +0100
commit3442ee423813d547be7899a25ea31efe719e662f (patch)
tree63216396eaa1e4ce0ad4e64c0cfdba6d0d9ed98d
parent25ebd3bbc1f9f4b1b6147d98dd43690c3bf03ee7 (diff)
downloadopenembedded-core-3442ee423813d547be7899a25ea31efe719e662f.tar.gz
openembedded-core-3442ee423813d547be7899a25ea31efe719e662f.tar.bz2
openembedded-core-3442ee423813d547be7899a25ea31efe719e662f.zip
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@mvista.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/conf/bitbake.conf1
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"
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}"