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

target: Expose hostid as target property

This commit is contained in:
Marc Bonnici 2021-04-07 17:23:26 +01:00 committed by setrofim
parent b6d1863e77
commit 2a633b783a

View File

@ -135,6 +135,10 @@ class Target(object):
def kernel_version(self):
return KernelVersion(self.execute('{} uname -r -v'.format(quote(self.busybox))).strip())
@property
def hostid(self):
return int(self.execute('{} hostid'.format(self.busybox)).strip(), 16)
@property
def os_version(self): # pylint: disable=no-self-use
return {}