From dacb350992e5a23cb5a0c5783afef85872ddc9cb Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Fri, 13 Jul 2018 13:18:47 +0100 Subject: [PATCH] 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. --- wa/framework/target/info.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wa/framework/target/info.py b/wa/framework/target/info.py index 689ce5b0..69d19009 100644 --- a/wa/framework/target/info.py +++ b/wa/framework/target/info.py @@ -177,6 +177,7 @@ def get_target_info(target): info.target = target.__class__.__name__ info.os = target.os info.os_version = target.os_version + info.system_id = target.system_id info.abi = target.abi info.is_rooted = target.is_rooted 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.os = pod['os'] instance.os_version = pod['os_version'] + instance.system_id = pod['system_id'] instance.hostid = pod['hostid'] instance.hostname = pod['hostname'] instance.abi = pod['abi'] @@ -255,6 +257,7 @@ class TargetInfo(object): self.cpus = [] self.os = None self.os_version = None + self.system_id = None self.hostid = None self.hostname = None self.abi = None @@ -273,6 +276,7 @@ class TargetInfo(object): pod['cpus'] = [c.to_pod() for c in self.cpus] pod['os'] = self.os pod['os_version'] = self.os_version + pod['system_id'] = self.system_id pod['hostid'] = self.hostid pod['hostname'] = self.hostname pod['abi'] = self.abi