From 53d64ed665d482eeaf642523523800071624f1c6 Mon Sep 17 00:00:00 2001 From: Ting Liu Date: Thu, 10 Jul 2014 04:23:50 -0500 Subject: [PATCH] qoriq_build_64bit_kernel.bbclass: add for ppce6500 ppce6500 is a specific core which only support 64bit kernel, introduce qoriq_build_64bit_kernel.bbclass to do this Signed-off-by: Ting Liu --- .../classes/qoriq_build_64bit_kernel.bbclass | 18 ++++++++++++++++++ meta-fsl-ppc/conf/layer.conf | 1 + 2 files changed, 19 insertions(+) create mode 100644 meta-fsl-ppc/classes/qoriq_build_64bit_kernel.bbclass diff --git a/meta-fsl-ppc/classes/qoriq_build_64bit_kernel.bbclass b/meta-fsl-ppc/classes/qoriq_build_64bit_kernel.bbclass new file mode 100644 index 00000000..562afd14 --- /dev/null +++ b/meta-fsl-ppc/classes/qoriq_build_64bit_kernel.bbclass @@ -0,0 +1,18 @@ +inherit distro_features_check +REQUIRED_DISTRO_FEATURES_e6500 += "multiarch" + +python () { + pkgarch = d.getVar("TUNE_PKGARCH", True) + if not "ppce6500" == pkgarch: + return + + promote_kernel = d.getVar('BUILD_64BIT_KERNEL') + if promote_kernel == "1": + d.setVar('KERNEL_CC_append', ' -m64') + d.setVar('KERNEL_LD_append', ' -melf64ppc') + + error_qa = d.getVar('ERROR_QA', True) + if 'arch' in error_qa: + d.setVar('ERROR_QA', error_qa.replace(' arch', '')) +} + diff --git a/meta-fsl-ppc/conf/layer.conf b/meta-fsl-ppc/conf/layer.conf index 0f81db04..9c0a4125 100644 --- a/meta-fsl-ppc/conf/layer.conf +++ b/meta-fsl-ppc/conf/layer.conf @@ -3,6 +3,7 @@ BBPATH .= ":${LAYERDIR}" BBFILES += "${LAYERDIR}/recipes-*/*/*.bb*" BBFILES += "${LAYERDIR}/images/*.bb*" +BBFILES += "${LAYERDIR}/classes/*.bb*" BBFILE_COLLECTIONS += "fsl-ppc" BBFILE_PATTERN_fsl-ppc = "^${LAYERDIR}/" -- 2.40.1