From ba0cd7f842a53848a5685dbbe2eeb3a01b0c5fd5 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Tue, 26 Feb 2019 14:50:24 +0000 Subject: [PATCH] fw/target/info: Bump target info version Due to mismatches in WA and devlib versions this previous upgrade method could have been trigger before it was needed and would not be called a second time. Now we can be sure that WA and devlib are updated together bump the version number again to ensure the upgrade method is called a second time to ensure the POD is upgraded correctly. --- wa/framework/target/info.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wa/framework/target/info.py b/wa/framework/target/info.py index 52b214c8..4baab132 100644 --- a/wa/framework/target/info.py +++ b/wa/framework/target/info.py @@ -313,7 +313,7 @@ def cache_target_info(target_info, overwrite=False): class TargetInfo(Podable): - _pod_serialization_version = 3 + _pod_serialization_version = 4 @staticmethod def from_pod(pod): @@ -409,3 +409,7 @@ class TargetInfo(Podable): config[key.upper()] = value pod['kernel_config'] = config return pod + + @staticmethod + def _pod_upgrade_v4(pod): + return TargetInfo._pod_upgrade_v3(pod)