diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2019-06-18 10:23:32 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2019-10-09 22:01:37 +0200 |
commit | 28ebd3b0254e006d5a0a9df1824a0e9d6e3980f8 (patch) | |
tree | fa76416489663f91cbfb10ab72e74c7208aeef7e /conf/distro/include/arm-defaults.inc | |
parent | 9ef311dbd7c3b0aa9c1bb160b1a533ea51912156 (diff) |
arm-defaults: don't use cpu specific package feeds and optimization
oe-core commit ac83d22eb removed armv7a or armv7ve from the TUNE_FEATURES.
This made the python logic no longer kicking in and reverted to have
CPU specific package feeds.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'conf/distro/include/arm-defaults.inc')
-rw-r--r-- | conf/distro/include/arm-defaults.inc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/conf/distro/include/arm-defaults.inc b/conf/distro/include/arm-defaults.inc index 87f8adb..0d9f8eb 100644 --- a/conf/distro/include/arm-defaults.inc +++ b/conf/distro/include/arm-defaults.inc @@ -5,9 +5,16 @@ # 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'] features = d.getVar('TUNE_FEATURES', True).split() - if 'armv7a' in features or 'armv7ve' in features: + if at_least_one(armv7athf_tune_features, features): tune = 'armv7athf' if 'bigendian' in features: tune += 'b' |