diff options
author | lixiaoyong <lixiaoyong19@huawei.com> | 2024-03-30 14:41:11 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-30 22:25:43 +0000 |
commit | 66f2f710e6364093cb16cc67ea0fdf69f4b20843 (patch) | |
tree | 62b54f33da737116e76d62056d6c2cb218632cca /meta/lib | |
parent | f5e084ede60f98ae95319b24c46afdcde52013c9 (diff) | |
download | poky-66f2f710e6364093cb16cc67ea0fdf69f4b20843.tar.gz |
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`.
(From OE-Core rev: fac4d33041d8feb041e617b9b16689c4d3a522cb)
Signed-off-by: lixiaoyong <lixiaoyong19@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/package.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py index 587810bdaf..1511ba47c4 100644 --- a/meta/lib/oe/package.py +++ b/meta/lib/oe/package.py | |||
@@ -1660,7 +1660,7 @@ def process_shlibs(pkgfiles, d): | |||
1660 | 1660 | ||
1661 | if (file.endswith(".dll") or file.endswith(".exe")): | 1661 | if (file.endswith(".dll") or file.endswith(".exe")): |
1662 | # use objdump to search for "DLL Name: .*\.dll" | 1662 | # use objdump to search for "DLL Name: .*\.dll" |
1663 | p = subprocess.Popen([d.expand("${HOST_PREFIX}objdump"), "-p", file], stdout=subprocess.PIPE, stderr=subprocess.PIPE) | 1663 | p = subprocess.Popen([d.expand("${OBJDUMP}"), "-p", file], stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
1664 | out, err = p.communicate() | 1664 | out, err = p.communicate() |
1665 | # process the output, grabbing all .dll names | 1665 | # process the output, grabbing all .dll names |
1666 | if p.returncode == 0: | 1666 | if p.returncode == 0: |