go does not support microblaze.  We need to skip all recipe that use go
otherwise a recent change to Poky/Oe-core triggers are parse error that
looks like:

  WARNING: <recipe>: Exception during build_dependencies for GOARCH
  WARNING: <recipe>: Error during finalise of mc:<multiconfig>:<recipe>
  ERROR: ExpansionError during parsing <recipe>
  bb.data_smart.ExpansionError: Failure expanding variable TARGET_GOARCH, 
expression was ${@go_map_arch(d.getVar('TARGET_ARCH'), d)} which triggered 
exception KeyError: 'Cannot map architecture microblazeel'
  The variable dependency chain for the failure is: TARGET_GOARCH -> GOARCH

  ERROR: Parsing halted due to errors, see error messages above

Signed-off-by: Mark Hatle <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Mark Hatle <[email protected]>
---
 meta-microblaze/classes/go_microblaze.bbclass | 5 +++++
 meta-microblaze/conf/layer.conf               | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 meta-microblaze/classes/go_microblaze.bbclass

diff --git a/meta-microblaze/classes/go_microblaze.bbclass 
b/meta-microblaze/classes/go_microblaze.bbclass
new file mode 100644
index 000000000..2a84f33e4
--- /dev/null
+++ b/meta-microblaze/classes/go_microblaze.bbclass
@@ -0,0 +1,5 @@
+python __anonymous() {
+    if bb.data.inherits_class('goarch', d):
+        if d.getVar('TARGET_ARCH') in ['microblaze', 'microblazeel', 
'microblazeeb']:
+            raise bb.parse.SkipRecipe("Go does not support microblaze.")
+}
diff --git a/meta-microblaze/conf/layer.conf b/meta-microblaze/conf/layer.conf
index 1ca643c05..ad7c72209 100644
--- a/meta-microblaze/conf/layer.conf
+++ b/meta-microblaze/conf/layer.conf
@@ -23,7 +23,7 @@ SECURITY_STACK_PROTECTOR:microblaze = ""
 
 OLDEST_KERNEL:microblaze = "3.15"
 
-INHERIT += "rust_microblaze"
+INHERIT += "rust_microblaze go_microblaze"
 
 MICROBLAZE_SKIP_MSG = ""
 MICROBLAZE_SKIP_MSG:microblaze = "This recipe does not currently work on 
microblaze."
-- 
2.50.1 (Apple Git-155)

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#5801): 
https://lists.yoctoproject.org/g/meta-xilinx/message/5801
Mute This Topic: https://lists.yoctoproject.org/mt/116714504/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to