]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toolchain-scripts: export READELF
authorRoss Burton <ross.burton@intel.com>
Fri, 4 Oct 2019 13:19:48 +0000 (14:19 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 8 Oct 2019 19:47:52 +0000 (20:47 +0100)
The readelf binary is prefixed, so export READELF in the SDKs so that the
correct readelf binary can be used.

This fixes problems with the symbol extractor in Meson with multilib SDKs where
readelf can't be found correctly.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/toolchain-scripts.bbclass

index 1a2ec4f3b290f0c96716b9476fe07f5c5b1a8f51..db1d3215ef7e55e530829ce4aaa3d3ae372dfedf 100644 (file)
@@ -90,6 +90,7 @@ toolchain_shared_env_script () {
        echo 'export RANLIB=${TARGET_PREFIX}ranlib' >> $script
        echo 'export OBJCOPY=${TARGET_PREFIX}objcopy' >> $script
        echo 'export OBJDUMP=${TARGET_PREFIX}objdump' >> $script
+       echo 'export READELF=${TARGET_PREFIX}readelf' >> $script
        echo 'export AR=${TARGET_PREFIX}ar' >> $script
        echo 'export NM=${TARGET_PREFIX}nm' >> $script
        echo 'export M4=m4' >> $script