From b145a013cbbcdc11832d0d9c6a3a71a52d91a5c3 Mon Sep 17 00:00:00 2001 From: Ting Liu Date: Thu, 10 Jul 2014 04:23:50 -0500 Subject: 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 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 classes/qoriq_build_64bit_kernel.bbclass (limited to 'classes') diff --git a/classes/qoriq_build_64bit_kernel.bbclass b/classes/qoriq_build_64bit_kernel.bbclass new file mode 100644 index 0000000..562afd1 --- /dev/null +++ b/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', '')) +} + -- cgit v1.2.3-54-g00ecf