summaryrefslogtreecommitdiffstats
path: root/classes/qoriq_build_64bit_kernel.bbclass
diff options
context:
space:
mode:
authorBogdan Oprescu <bogdan.oprescu@enea.com>2023-10-26 15:04:48 +0300
committerBogdan Oprescu <bogdan.oprescu@enea.com>2023-10-26 15:28:16 +0300
commitf877a1524b36f0e157f2208f58fc5ff04e3670f7 (patch)
tree0a4bc099641efaa616ff9a3b5ab2da96c1dc13bf /classes/qoriq_build_64bit_kernel.bbclass
downloadmeta-fsl-ppc-f877a1524b36f0e157f2208f58fc5ff04e3670f7.tar.gz
Adding the source code from EneaLinux 4.0_6daisy-enea-231026
Signed-off-by: Bogdan Oprescu <bogdan.oprescu@enea.com>
Diffstat (limited to 'classes/qoriq_build_64bit_kernel.bbclass')
-rw-r--r--classes/qoriq_build_64bit_kernel.bbclass18
1 files changed, 18 insertions, 0 deletions
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 @@
1inherit distro_features_check
2REQUIRED_DISTRO_FEATURES_e6500 += "multiarch"
3
4python () {
5 pkgarch = d.getVar("TUNE_PKGARCH", True)
6 if not "ppce6500" == pkgarch:
7 return
8
9 promote_kernel = d.getVar('BUILD_64BIT_KERNEL')
10 if promote_kernel == "1":
11 d.setVar('KERNEL_CC_append', ' -m64')
12 d.setVar('KERNEL_LD_append', ' -melf64ppc')
13
14 error_qa = d.getVar('ERROR_QA', True)
15 if 'arch' in error_qa:
16 d.setVar('ERROR_QA', error_qa.replace(' arch', ''))
17}
18