diff mbox series

[meta-oe] libspdm: skip unsupported architectures instead of erroring

Message ID 20260817142005.1005693-1-kory.maincent@bootlin.com
State New
Headers show
Series [meta-oe] libspdm: skip unsupported architectures instead of erroring | expand

Commit Message

Kory Maincent Aug. 17, 2026, 2:20 p.m. UTC
Change bb.error to bb.parse.SkipRecipe so the recipe is skipped at parse
time for unsupported architectures, rather than raising a fatal error
that breaks parsing even when the recipe is not in use.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
---
 meta-oe/recipes-support/libspdm/libspdm_3.8.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/libspdm/libspdm_3.8.2.bb b/meta-oe/recipes-support/libspdm/libspdm_3.8.2.bb
index 7d227d4148..f77057d9fd 100644
--- a/meta-oe/recipes-support/libspdm/libspdm_3.8.2.bb
+++ b/meta-oe/recipes-support/libspdm/libspdm_3.8.2.bb
@@ -43,7 +43,7 @@  def get_spdm_multiarch(bb, d):
     if target_arch in multiarch_options :
         return multiarch_options[target_arch]
 
-    bb.error("unsupported architecture '%s'" % target_arch)
+    raise bb.parse.SkipRecipe("unsupported architecture '%s'" % target_arch)
 
 EXTRA_OECMAKE += "\
     -DARCH=${@get_spdm_multiarch(bb, d)} \