Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] package: split strip cmd when ccache is used
@ 2023-10-31  4:27 Javier Tia
  2023-10-31 12:26 ` [OE-core] " Richard Purdie
  0 siblings, 1 reply; 6+ messages in thread
From: Javier Tia @ 2023-10-31  4:27 UTC (permalink / raw)
  To: openembedded-core; +Cc: Javier Tia

Using ccache stopped to work after 77497dbdca with following error:

  FileNotFoundError: [Errno 2] No such file or directory: 'ccache aarch64-trs-linux-strip'

Signed-off-by: Javier Tia <javier.tia@linaro.org>
---
 meta/lib/oe/package.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py
index 1dd20f85eb..2685da0af9 100644
--- a/meta/lib/oe/package.py
+++ b/meta/lib/oe/package.py
@@ -39,7 +39,7 @@ def runstrip(arg):
         newmode = origmode | stat.S_IWRITE | stat.S_IREAD
         os.chmod(file, newmode)
 
-    stripcmd = [strip]
+    stripcmd = strip.split() if "ccache" in strip else [strip]
     skip_strip = False
     # kernel module
     if elftype & 16:
-- 
2.42.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-11-21 13:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-31  4:27 [PATCH] package: split strip cmd when ccache is used Javier Tia
2023-10-31 12:26 ` [OE-core] " Richard Purdie
2023-10-31 15:29   ` Christopher Larson
2023-11-20 15:28   ` Javier Tia
2023-11-20 16:06     ` Martin Jansa
2023-11-21 13:14       ` Javier Tia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox