summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--buildconf/local.conf6
1 files changed, 4 insertions, 2 deletions
diff --git a/buildconf/local.conf b/buildconf/local.conf
index 630885c..17cc8ca 100644
--- a/buildconf/local.conf
+++ b/buildconf/local.conf
@@ -293,8 +293,10 @@ INHERIT += "rm_work"
# Add Toradex bbclasses
INHERIT += "toradex-mirrors toradex-sanity"
-# Use this distro by default
-DISTRO ?= "tdx-xwayland"
+# Use the upstream distro for modules based on i.MX 6/6ULL/7, downstream is no longer supported.
+# For i.MX 8/8X/8MM/8MP the downstream distro is used.
+MACHINES_UPSTREAM_DISTRO_DEFAULT = "apalis-imx6 colibri-imx6 colibri-imx6ull colibri-imx6ull-emmc colibri-imx7 colibri-imx7-emmc"
+DISTRO ?= "${@bb.utils.contains("MACHINES_UPSTREAM_DISTRO_DEFAULT", d.getVar('MACHINE') or '', "tdx-xwayland-upstream", "tdx-xwayland", d)}"
# Don't generate the mirror tarball for SCM repos, the snapshot is enough
# BB_GENERATE_MIRROR_TARBALLS = "0"