]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
go: skip recipe instead of throwing fatal error on unknown architectures
authorPeter Marko <peter.marko@siemens.com>
Wed, 15 Apr 2026 12:43:06 +0000 (14:43 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 20 Apr 2026 16:58:37 +0000 (17:58 +0100)
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 <peter.marko@siemens.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/lib/oe/go.py

index 4559dc63b285d383f6024a7ad1013e0a040143d3..cbcf80f0b11ec46189be47bb2a6cfecefbc49249 100644 (file)
@@ -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}")