[dts] [PATCH V2] fix yocto init core list failed issue
Liu, Yong
yong.liu at intel.com
Fri Dec 4 01:47:55 CET 2015
Applied. Thanks.
On 12/02/2015 03:18 PM, xu,huilong wrote:
> 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
More information about the dts
mailing list