mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 10:10:46 +00:00
uname: Fixed calls to uname to use busybox
Not all devices have uname, since devlib deploys its own busybox binary the most portable way to use uname is to use it via busybox.
This commit is contained in:
parent
f5b7c82f52
commit
bdbf474023
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user