[dts] [PATCH V2] fix yocto init core list failed issue
xu,huilong
huilongx.xu at intel.com
Wed Dec 2 08:18:59 CET 2015
Signed-off-by: xu,huilong <huilongx.xu at intel.com>
---
framework/crb.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/framework/crb.py b/framework/crb.py
index 3c158ec..3470ca1 100644
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -464,6 +464,16 @@ class Crb(object):
self.send_expect(
"grep --color=never \"processor\\|physical id\\|core id\\|^$\" /proc/cpuinfo",
"#", alt_session=True)
+
+ if "processor" not in cpuinfo:
+ # yocto not support --color=never, but ubuntu must need --color=never,
+ # so check cpuinfo, before parsing cpuinfo, if cpuifo get error, delete --color=never
+ # and get cpuinfo again
+ cpuinfo = \
+ self.send_expect(
+ r'grep "processor\|physical id\|core id\|^$" /proc/cpuinfo',
+ "#", alt_session=True)
+
cpuinfo = cpuinfo.split('\r\n\r\n')
# haswell cpu on cottonwood core id not correct
# need addtional coremap for haswell cpu
--
1.9.3
More information about the dts
mailing list