summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/icecc.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass
index 095518115f..78a2f7602d 100644
--- a/meta/classes/icecc.bbclass
+++ b/meta/classes/icecc.bbclass
@@ -243,7 +243,11 @@ def icecc_get_external_tool(bb, d, tool):
243 243
244def icecc_get_tool_link(tool, d): 244def icecc_get_tool_link(tool, d):
245 import subprocess 245 import subprocess
246 return subprocess.check_output("readlink -f %s" % tool, shell=True).decode("utf-8")[:-1] 246 try:
247 return subprocess.check_output("readlink -f %s" % tool, shell=True).decode("utf-8")[:-1]
248 except subprocess.CalledProcessError as e:
249 bb.note("icecc: one of the tools probably disappeared during recipe parsing, cmd readlink -f %s returned %d:\n%s" % (tool, e.returncode, e.output.decode("utf-8")))
250 return tool
247 251
248def icecc_get_path_tool(tool, d): 252def icecc_get_path_tool(tool, d):
249 # This is a little ugly, but we want to make sure we add an actual 253 # This is a little ugly, but we want to make sure we add an actual