From f877a1524b36f0e157f2208f58fc5ff04e3670f7 Mon Sep 17 00:00:00 2001 From: Bogdan Oprescu Date: Thu, 26 Oct 2023 15:04:48 +0300 Subject: Adding the source code from EneaLinux 4.0_6 Signed-off-by: Bogdan Oprescu --- 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