Skip to contentSkip to conversation

go: skip recipe instead of throwing fatal error on unknown architectures

PATCH New Peter Marko 1 participant 1 message Apr 15

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 go: skip recipe instead of throwing fatal error on unknown architectures

From: Peter Marko <[email protected]>

Current code means that layer which contains a golang recipe cannot be even parsed for machine which is not in supported golang architectures.

Skipping the golang recipes instead of throwing fatal error is much friendlier and let machines without golang support co-exist in a layer with golang recipes.

---
 meta/lib/oe/go.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/go.py +1 -1
index 4559dc63b2..cbcf80f0b1 100644
@@ -35,4 +35,4 @@ def map_arch(a):
         return 'riscv64'
     elif a == 'loongarch64':
         return 'loong64'
-    raise KeyError(f"Cannot map architecture {a}")
+    raise bb.parse.SkipRecipe(f"Cannot map architecture {a}")