Skip to contentSkip to conversation

steps: Handle wrynose mixin special case in non-wrynose builds

PATCH New Richard Purdie 1 participant 1 message Sep 9

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 steps: Handle wrynose mixin special case in non-wrynose builds

We don't want the wrynose mixin for qcom leaking into our other builds. This workaround is horrible but the least worst solution I could find.

---
 steps/writebbsetupjson.py | 4 ++++
 steps/writelayerinfo.py   | 3 +++
 2 files changed, 7 insertions(+)
steps/writebbsetupjson.py +4 -0
index e1f14634..68a8b2db 100644
@@ -39,6 +39,10 @@ class WriteBBSetupJson(steps.StringDownload):
             branch = self.getProperty("branch_{}".format(repo))
             revision = self.getProperty("commit_{}".format(repo))
 
+            # Skip mixin-wrynose-linux-firmware for non wrynose builds
+            if "wrynose" in repo and "wrynose" not in branch:
+                continue
+
             if revision and revision != "HEAD":
                 rev = revision
             else:
steps/writelayerinfo.py +3 -0
index 741888b1..cdfd0657 100644
@@ -29,6 +29,9 @@ class WriteLayerInfo(steps.StringDownload):
             location = self.getProperty("location_{}".format(repo))
             if location:
                 repodict["location"] = location
+            # Skip mixin-wrynose-linux-firmware for non wrynose builds
+            if "wrynose" in repo and "wrynose" not in repodict["branch"]:
+                continue
             layerinfo[repo] = repodict
 
         return json.dumps(layerinfo, sort_keys=True, indent=4,