Skip to contentSkip to conversation

xvisor: Remove bb.error when builing for non-supported arch

PATCH In review [email protected] 3 participants 3 messages Feb 15, 2022 – Feb 24, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xvisor: Remove bb.error when builing for non-supported arch

From: Kasper Revsbech <[email protected]>

Change bb.error to bb.note when getting config and arch of target/host as it is not an error if arch is not supported that should flag when parsing the recipe.
It is an error if trying to include in image and that is already handled in COMPATIBLE_HOST

---
 recipes-extended/xvisor/xvisor-configs.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-extended/xvisor/xvisor-configs.inc +2 -2
index f53bba2..cd873cb 100644
@@ -9,7 +9,7 @@ def get_oemake_config(a, d):
     elif re.match('riscv32(eb|)$', a):        return 'generic-32b-defconfig'
     elif re.match('riscv64(eb|)$', a):        return 'generic-64b-defconfig'
     else:
-        bb.error("cannot map '%s' to a Xvisor defconfig" % a)
+        bb.note("cannot map '%s' to a Xvisor defconfig" % a)
 
 def map_xvisor_arch(a, d):
     import re
@@ -22,4 +22,4 @@ def map_xvisor_arch(a, d):
     elif re.match('aarch64_be_ilp32$', a):      return 'arm'
     elif re.match('riscv(32|64|)(eb|)$', a):    return 'riscv'
     else:
-        bb.error("cannot map '%s' to a Xvisor architecture" % a)
+        bb.note("cannot map '%s' to a Xvisor architecture" % a)
Signature · 1 line
2.32.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Kasper

From: Kasper Revsbech <[email protected]>

Change bb.error to bb.note when getting config and arch of target/host as it is not an error if arch is not supported that should flag when parsing the recipe.
It is an error if trying to include in image and that is already handled in COMPATIBLE_HOST

Alistair

Quoted 35 lines
---
 recipes-extended/xvisor/xvisor-configs.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-extended/xvisor/xvisor-configs.inc +2 -3
index f53bba2..cd873cb 100644
@@ -9,7 +9,7 @@ def get_oemake_config(a, d):
     elif re.match('riscv32(eb|)$', a):        return 'generic-32b-defconfig'
     elif re.match('riscv64(eb|)$', a):        return 'generic-64b-defconfig'
     else:
-        bb.error("cannot map '%s' to a Xvisor defconfig" % a)
+        bb.note("cannot map '%s' to a Xvisor defconfig" % a)
 
 def map_xvisor_arch(a, d):
     import re
@@ -22,4 +22,4 @@ def map_xvisor_arch(a, d):
     elif re.match('aarch64_be_ilp32$', a):      return 'arm'
     elif re.match('riscv(32|64|)(eb|)$', a):    return 'riscv'
     else:
-        bb.error("cannot map '%s' to a Xvisor architecture" % a)
+        bb.note("cannot map '%s' to a Xvisor architecture" % a)
--

2.32.0

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

#2 lore raw
In reply to [email protected]

merged!

Bruce

In message: [meta-virtualization] [PATCH] xvisor: Remove bb.error when builing for non-supported arch

Quoted 45 lines · on 15/02/2022 Kasper wrote:

From: Kasper Revsbech <[email protected]>

Change bb.error to bb.note when getting config and arch of target/host as it is not an error if arch is not supported that should flag when parsing the recipe.
It is an error if trying to include in image and that is already handled in COMPATIBLE_HOST

---
 recipes-extended/xvisor/xvisor-configs.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-extended/xvisor/xvisor-configs.inc +2 -2
index f53bba2..cd873cb 100644
@@ -9,7 +9,7 @@ def get_oemake_config(a, d):
     elif re.match('riscv32(eb|)$', a):        return 'generic-32b-defconfig'
     elif re.match('riscv64(eb|)$', a):        return 'generic-64b-defconfig'
     else:
-        bb.error("cannot map '%s' to a Xvisor defconfig" % a)
+        bb.note("cannot map '%s' to a Xvisor defconfig" % a)
 
 def map_xvisor_arch(a, d):
     import re
@@ -22,4 +22,4 @@ def map_xvisor_arch(a, d):
     elif re.match('aarch64_be_ilp32$', a):      return 'arm'
     elif re.match('riscv(32|64|)(eb|)$', a):    return 'riscv'
     else:
-        bb.error("cannot map '%s' to a Xvisor architecture" % a)
+        bb.note("cannot map '%s' to a Xvisor architecture" % a)
Signature · 11 lines
2.32.0



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