Using meta-clang for llvm kernel compilation previously defaulted to the gcc 
objcopy tool.
To improve flexibility and compatibility, $OBJCOPY is preferred over 
$HOST_PREFIXobjcopy
in the kernel-module-split.bbclass.

With $OBJCOPY already defined in bitbake.conf, the empty condition has been 
removed,
simplifying the invocation process.

Signed-off-by: lixiaoyong <lxy204...@163.com>
---
 meta/classes-recipe/kernel-module-split.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes-recipe/kernel-module-split.bbclass 
b/meta/classes-recipe/kernel-module-split.bbclass
index c1208d5..9487365 100644
--- a/meta/classes-recipe/kernel-module-split.bbclass
+++ b/meta/classes-recipe/kernel-module-split.bbclass
@@ -67,9 +67,9 @@ python split_kernel_module_packages () {
             else:
                 msg = "Cannot decompress '%s'" % file
                 raise msg
-            cmd = "%sobjcopy -j .modinfo -O binary %s %s" % 
(d.getVar("HOST_PREFIX") or "", tmpkofile, tmpfile)
+            cmd = "%s -j .modinfo -O binary %s %s" % (d.getVar("OBJCOPY"), 
tmpkofile, tmpfile)
         else:
-            cmd = "%sobjcopy -j .modinfo -O binary %s %s" % 
(d.getVar("HOST_PREFIX") or "", file, tmpfile)
+            cmd = "%s -j .modinfo -O binary %s %s" % (d.getVar("OBJCOPY"), 
file, tmpfile)
         subprocess.check_call(cmd, shell=True)
         # errors='replace': Some old kernel versions contain invalid utf-8 
characters in mod descriptions (like 0xf6, 'รถ')
         with open(tmpfile, errors='replace') as f:
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197481): 
https://lists.openembedded.org/g/openembedded-core/message/197481
Mute This Topic: https://lists.openembedded.org/mt/105133783/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to