go: skip recipe instead of throwing fatal error on unknown architectures
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.
Signed-off-by Peter Marko <[email protected]>
--- meta/lib/oe/go.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/go.py +1 -1
@@ -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}")