]> code.ossystems Code Review - meta-freescale.git/commitdiff
qoriq_build_64bit_kernel.bbclass: add for ppce6500
authorTing Liu <b28495@freescale.com>
Thu, 10 Jul 2014 09:23:50 +0000 (04:23 -0500)
committerZhenhua Luo <zhenhua.luo@freescale.com>
Fri, 11 Jul 2014 05:35:10 +0000 (13:35 +0800)
ppce6500 is a specific core which only support 64bit kernel,
introduce qoriq_build_64bit_kernel.bbclass to do this

Signed-off-by: Ting Liu <b28495@freescale.com>
meta-fsl-ppc/classes/qoriq_build_64bit_kernel.bbclass [new file with mode: 0644]
meta-fsl-ppc/conf/layer.conf

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 (file)
index 0000000..562afd1
--- /dev/null
@@ -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', ''))
+}
+
index 0f81db04a4d7988c1ca552e415b96a5a08873fc9..9c0a4125b6e16f53440591be2fac0c7784253e16 100644 (file)
@@ -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}/"