Skip to contentSkip to conversation

config.json: Add default MACHINE qemux86-64

PATCH New Yi Fan Yu 1 participant 2 messages Apr 20, 2021

lore
Share & tools
lore

Yi Fan Yu

author
#0 lore raw

PATCH 1/2 config.json: Add default MACHINE qemux86-64

This is the default oe-core MACHINE value.

Prevent error-reporting tool to report simply False. It was seen in check-layer where the MACHINE wasn't specified.

[YOCTO #14208]

---
 config.json | 1 +
 1 file changed, 1 insertion(+)
config.json +1 -0
index 962d8ae..2d1a698 100644
@@ -26,6 +26,7 @@
     "defaults" : {
         "NEEDREPOS" : ["poky"],
         "DISTRO" : "poky",
+        "MACHINE" : "qemux86-64",
         "SDKMACHINE" : "i686",
         "PACKAGE_CLASSES" : "package_rpm package_deb package_ipk",
         "DLDIR" : "DL_DIR = '${BASE_SHAREDDIR}/current_sources'",
Signature · 1 line
2.29.2
author
#1 lore raw

PATCH 2/2 scripts/utils.py: Add reporting for yocto-check-layer

The default behavior is to look for a bitbake command, which fails and produces a confusing output of [-1:].

[YOCTO #14208]

---
 scripts/utils.py | 3 +++
 1 file changed, 3 insertions(+)
scripts/utils.py +3 -0
index bf1d989..4c73f81 100644
@@ -330,6 +330,9 @@ class ErrorReport(object):
         elif  'oe-selftest' in command:
             report['error_type'] = 'oe-selftest'
             failure['task'] = command[command.find('oe-selftest'):]
+        elif 'yocto-check-layer' in command:
+            report['error_type'] = 'check-layer'
+            failure['task'] = command[command.find('yocto-check-layer'):]
         else:
             report['error_type'] = 'core'
             failure['task'] = command[command.find('bitbake'):]
Signature · 1 line
2.29.2