From 59f4f8144766ef1db585e9a7c000721b80eb1c6c Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Tue, 15 Dec 2015 18:07:34 +0000 Subject: [PATCH] Cpuinfo: extract CPU featurs from "flags" entry get_cpu_features() now checks "flags" entry as well as "Features" entries in cpuinfo section. --- devlib/target.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devlib/target.py b/devlib/target.py index 6b9f760..3fb25fc 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -860,8 +860,12 @@ class Cpuinfo(object): continue if 'Features' in section: return section.get('Features').split() + elif 'flags' in section: + return section.get('flags').split() elif 'Features' in section: global_features = section.get('Features').split() + elif 'flags' in section: + global_features = section.get('flags').split() return global_features def parse(self, text):