summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-qoriq.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-qoriq.inc')
-rw-r--r--recipes-kernel/linux/linux-qoriq.inc25
1 files changed, 1 insertions, 24 deletions
diff --git a/recipes-kernel/linux/linux-qoriq.inc b/recipes-kernel/linux/linux-qoriq.inc
index 00fe526..9e463dd 100644
--- a/recipes-kernel/linux/linux-qoriq.inc
+++ b/recipes-kernel/linux/linux-qoriq.inc
@@ -1,4 +1,4 @@
1inherit kernel 1inherit kernel qoriq_build_64bit_kernel
2require recipes-kernel/linux/linux-dtb.inc 2require recipes-kernel/linux/linux-dtb.inc
3 3
4DESCRIPTION = "Linux kernel for Freescale platforms" 4DESCRIPTION = "Linux kernel for Freescale platforms"
@@ -9,29 +9,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
9KSRC ?= "" 9KSRC ?= ""
10S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}' 10S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}'
11 11
12python () {
13 ma = d.getVar("DISTRO_FEATURES", True)
14 arch = d.getVar("OVERRIDES", True)
15
16 # the : after the arch is to skip the message on 64b
17 if not "multiarch" in ma and ("e5500:" in arch or "e6500:" in arch):
18 raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES")
19
20 promote_kernel = d.getVar('BUILD_64BIT_KERNEL')
21
22 if promote_kernel == "1":
23 d.setVar('KERNEL_CC_append', ' -m64')
24 d.setVar('KERNEL_LD_append', ' -melf64ppc')
25
26 error_qa = d.getVar('ERROR_QA', True)
27 if 'arch' in error_qa:
28 d.setVar('ERROR_QA', error_qa.replace(' arch', ''))
29
30 all_qa = d.getVar('ALL_QA', True)
31 if 'arch' in all_qa:
32 d.setVar('ALL_QA', all_qa.replace(' arch', ''))
33}
34
35DEPENDS_append = " libgcc" 12DEPENDS_append = " libgcc"
36KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}" 13KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
37KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}" 14KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"