From 28ebd3b0254e006d5a0a9df1824a0e9d6e3980f8 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Tue, 18 Jun 2019 10:23:32 +0200 Subject: 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 --- conf/distro/include/arm-defaults.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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' -- cgit v1.2.3