mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-05-12 20:35:20 +01:00
fw/target: add system_id to TargetInfo
Add target's system_id to TargetInfo. This ID is intended to be unique of the combination of hardware and software on the target.
This commit is contained in:
parent
039758948e
commit
dacb350992
@ -177,6 +177,7 @@ def get_target_info(target):
|
|||||||
info.target = target.__class__.__name__
|
info.target = target.__class__.__name__
|
||||||
info.os = target.os
|
info.os = target.os
|
||||||
info.os_version = target.os_version
|
info.os_version = target.os_version
|
||||||
|
info.system_id = target.system_id
|
||||||
info.abi = target.abi
|
info.abi = target.abi
|
||||||
info.is_rooted = target.is_rooted
|
info.is_rooted = target.is_rooted
|
||||||
info.kernel_version = target.kernel_version
|
info.kernel_version = target.kernel_version
|
||||||
@ -235,6 +236,7 @@ class TargetInfo(object):
|
|||||||
instance.cpus = [CpuInfo.from_pod(c) for c in pod['cpus']]
|
instance.cpus = [CpuInfo.from_pod(c) for c in pod['cpus']]
|
||||||
instance.os = pod['os']
|
instance.os = pod['os']
|
||||||
instance.os_version = pod['os_version']
|
instance.os_version = pod['os_version']
|
||||||
|
instance.system_id = pod['system_id']
|
||||||
instance.hostid = pod['hostid']
|
instance.hostid = pod['hostid']
|
||||||
instance.hostname = pod['hostname']
|
instance.hostname = pod['hostname']
|
||||||
instance.abi = pod['abi']
|
instance.abi = pod['abi']
|
||||||
@ -255,6 +257,7 @@ class TargetInfo(object):
|
|||||||
self.cpus = []
|
self.cpus = []
|
||||||
self.os = None
|
self.os = None
|
||||||
self.os_version = None
|
self.os_version = None
|
||||||
|
self.system_id = None
|
||||||
self.hostid = None
|
self.hostid = None
|
||||||
self.hostname = None
|
self.hostname = None
|
||||||
self.abi = None
|
self.abi = None
|
||||||
@ -273,6 +276,7 @@ class TargetInfo(object):
|
|||||||
pod['cpus'] = [c.to_pod() for c in self.cpus]
|
pod['cpus'] = [c.to_pod() for c in self.cpus]
|
||||||
pod['os'] = self.os
|
pod['os'] = self.os
|
||||||
pod['os_version'] = self.os_version
|
pod['os_version'] = self.os_version
|
||||||
|
pod['system_id'] = self.system_id
|
||||||
pod['hostid'] = self.hostid
|
pod['hostid'] = self.hostid
|
||||||
pod['hostname'] = self.hostname
|
pod['hostname'] = self.hostname
|
||||||
pod['abi'] = self.abi
|
pod['abi'] = self.abi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user