From: lixiaoyong Date: Sat, 30 Mar 2024 06:41:11 +0000 (+0800) Subject: oe/package: enhance objdump command call with llvm X-Git-Tag: yocto-5.0~71 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fac4d33041d8feb041e617b9b16689c4d3a522cb;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git oe/package: enhance objdump command call with llvm Replace `${HOST_PREFIX}objdump` with `${OBJDUMP}`. When utilizing llvm for compiling packages, the invocation of GNU objdump will consistently occur during package precess. This behavior is unfriendly to llvm. So prefer `${OBJDUMP}` over `${HOST_PREFIX}objdump`. Signed-off-by: lixiaoyong Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py index 587810bdafd..1511ba47c42 100644 --- a/meta/lib/oe/package.py +++ b/meta/lib/oe/package.py @@ -1660,7 +1660,7 @@ def process_shlibs(pkgfiles, d): if (file.endswith(".dll") or file.endswith(".exe")): # use objdump to search for "DLL Name: .*\.dll" - p = subprocess.Popen([d.expand("${HOST_PREFIX}objdump"), "-p", file], stdout=subprocess.PIPE, stderr=subprocess.PIPE) + p = subprocess.Popen([d.expand("${OBJDUMP}"), "-p", file], stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() # process the output, grabbing all .dll names if p.returncode == 0: