1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

Merge pull request #23 from ep1cman/fixes

uname: Fixed calls to uname to use busybox
This commit is contained in:
setrofim 2016-02-24 14:30:46 +00:00
commit 3f804a42fe

View File

@ -82,7 +82,7 @@ class Target(object):
@property @property
@memoized @memoized
def kernel_version(self): def kernel_version(self):
return KernelVersion(self.execute('uname -r -v').strip()) return KernelVersion(self.execute('{} uname -r -v'.format(self.busybox)).strip())
@property @property
def os_version(self): # pylint: disable=no-self-use def os_version(self): # pylint: disable=no-self-use
@ -515,7 +515,7 @@ class LinuxTarget(Target):
@property @property
@memoized @memoized
def abi(self): def abi(self):
value = self.execute('uname -m').strip() value = self.execute('{} uname -m'.format(self.busybox)).strip()
for abi, architectures in ABI_MAP.iteritems(): for abi, architectures in ABI_MAP.iteritems():
if value in architectures: if value in architectures:
result = abi result = abi