]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
utils: enhance readelf command call with llvm
authorlixiaoyong <lixiaoyong19@huawei.com>
Sat, 30 Mar 2024 06:41:10 +0000 (14:41 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 30 Mar 2024 22:25:17 +0000 (22:25 +0000)
commitdaecdd577213da0c045e45c47e7acbd279956d41
tree6a892210f8e93a3b06a00e25b1c8db1dd5c856af
parent22174e5b64cc46e3e5b9f45d0b7796e92f20a48c
utils: enhance readelf command call with llvm

Replace `${HOST_PREFIX}readelf` with `${READELF}`.

When utilizing llvm for compiling packages, the invocation of GNU readelf
will consistently occur if the oe_soinstall and oe_libinstall functions,
which are defined in utils.bbclass, are called. This behavior is unfriendly
to llvm. So prefer `${READELF}` over `${HOST_PREFIX}readelf`.

Signed-off-by: lixiaoyong <lixiaoyong19@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/utils.bbclass