From be2f69556bc35885454bb51b7fbc1b188b9e7e27 Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Fri, 3 Mar 2017 14:28:34 +0100 Subject: Splice out distro configuration in own layer for compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upstream is working on guidelines for DISTRO and BSP layers. One outcome is the yocto-compat-layer tool. A requirement for BSP and DISTRO layers is that they are single-purpose aka just defining the distro and only defining the BSP. To comply with this, move the distro out into meta-agl-distro and adapt the templates. Bug-AGL: SPEC-472 Change-Id: I921127edc78e677bd75d42a793f0b3708a54dd79 Signed-off-by: Jan-Simon Möller --- .../conf/distro/include/arm-default-tune.inc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 meta-agl-distro/conf/distro/include/arm-default-tune.inc (limited to 'meta-agl-distro/conf/distro/include/arm-default-tune.inc') diff --git a/meta-agl-distro/conf/distro/include/arm-default-tune.inc b/meta-agl-distro/conf/distro/include/arm-default-tune.inc new file mode 100644 index 000000000..5a6f44fe5 --- /dev/null +++ b/meta-agl-distro/conf/distro/include/arm-default-tune.inc @@ -0,0 +1,18 @@ +def arm_tune_handler(d): + features = d.getVar('TUNE_FEATURES', True).split() + if 'armv7a' in features or 'armv7ve' in 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' + else: + tune = d.getVar('DEFAULTTUNE', True) + return tune +DEFAULTTUNE_agl := "${@arm_tune_handler(d)}" -- cgit 1.2.3-korg