summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnest Van Hoecke <ernest.vanhoecke@toradex.com>2026-08-13 19:34:34 +0200
committerErnest Van Hoecke <ernest.vanhoecke@toradex.com>2026-08-18 15:46:35 +0200
commit1e6a0f30d3b54480bf68378f543dc04aa46fc53c (patch)
tree663f02ba8ad160103040dafe92016cd2a133d2ac
parent1a5789de8ebf4e84fbc76609f75a5af9572e234a (diff)
tdx-xwayland: drop stale ARM tune override
arm-defaults.inc was added to avoid CPU-specific package feeds by collapsing ARM tunes in the distro. It used to set DEFAULTTUNE through a distro override, and distro overrides win over the machine overrides used by meta-freescale's imx-base.inc. Since bd5e07c4c108 ("tdx-base/arm-defaults.inc: remove tdx-distro override"), the include only makes an unqualified DEFAULTTUNE assignment. The active SoC DEFAULTTUNE overrides now take precedence, so this migrated include no longer changes the reference distro output. It has essentially been non-functional for a year already, drop it completely. Related-to: ELB-7009 Signed-off-by: Ernest Van Hoecke <ernest.vanhoecke@toradex.com>
-rw-r--r--conf/distro/include/arm-defaults.inc37
-rw-r--r--conf/distro/tdx-xwayland.conf1
2 files changed, 0 insertions, 38 deletions
diff --git a/conf/distro/include/arm-defaults.inc b/conf/distro/include/arm-defaults.inc
deleted file mode 100644
index 6381188..0000000
--- a/conf/distro/include/arm-defaults.inc
+++ /dev/null
@@ -1,37 +0,0 @@
-# This function changes the default tune for machines which
-# are based on armv7a or armv7ve to use common tune value, note
-# that we enforce hard-float which is default on Linux microPlatform.
-# If you have one of those machines which are armv7a or armv7ve but
-# can't support hard-float, please change tune = 'armv7athf' to
-# tune = 'armv7at' below but then this is for your own distro.
-
-def at_least_one(elements, list):
- for i in list:
- if i in elements:
- return True
- return False
-
-def arm_tune_handler(d):
- armv7athf_tune_features = ['armv7a', 'armv7ve', 'cortexa5', 'cortexa7', 'cortexa9', 'cortexa15']
- armv8a_tune_features = ['armv8a', 'crc']
- features = d.getVar('TUNE_FEATURES').split()
- if at_least_one(armv7athf_tune_features, features):
- tune = 'armv7athf'
- if 'bigendian' in features:
- tune += 'b'
- if 'vfpv3' in features:
- tune += '-vfpv3'
- if 'vfpv3d16' in features:
- tune += '-vfpv3d16'
- if 'neon' in features:
- tune += '-neon'
- if 'vfpv4' in features:
- tune += '-vfpv4'
- elif at_least_one(armv8a_tune_features, features):
- # all currently used i.MX 8 members support the following
- tune = 'armv8a-crypto'
- else:
- tune = d.getVar('DEFAULTTUNE')
- return tune
-
-DEFAULTTUNE := "${@arm_tune_handler(d)}"
diff --git a/conf/distro/tdx-xwayland.conf b/conf/distro/tdx-xwayland.conf
index 49b9c8a..f49183f 100644
--- a/conf/distro/tdx-xwayland.conf
+++ b/conf/distro/tdx-xwayland.conf
@@ -5,7 +5,6 @@
PACKAGE_CLASSES ?= "package_ipk"
require conf/distro/poky.conf
-require conf/distro/include/arm-defaults.inc
DISTRO = "tdx-xwayland"
DISTRO_NAME = "TDX Wayland with XWayland"