summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2022-11-10 16:26:43 +0100
committerMax Krummenacher <max.krummenacher@toradex.com>2022-11-10 17:14:55 +0100
commit382211f6e51a72996831949002c8c418f0f55636 (patch)
tree0bd3afa17aaeb14b0c3f6e0af53886a98d65bb9b
parentccb522ca7871d0726eed87ef3e1fea529d999c35 (diff)
local.conf: Select a sane default as DISTRO
Toradex Modules based on i.MX 6/6ULL/7 are only supported with the tdx-xwayland-upstream DISTRO, select it as default in local.conf. Related-to: ELB-4716 Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-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..83c03d3 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'), "tdx-xwayland-upstream", "tdx-xwayland", d)}"
# Don't generate the mirror tarball for SCM repos, the snapshot is enough
# BB_GENERATE_MIRROR_TARBALLS = "0"