diff options
Diffstat (limited to 'recipes-kernel/linux/linux-qoriq.inc')
-rw-r--r-- | recipes-kernel/linux/linux-qoriq.inc | 25 |
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 @@ | |||
1 | inherit kernel | 1 | inherit kernel qoriq_build_64bit_kernel |
2 | require recipes-kernel/linux/linux-dtb.inc | 2 | require recipes-kernel/linux/linux-dtb.inc |
3 | 3 | ||
4 | DESCRIPTION = "Linux kernel for Freescale platforms" | 4 | DESCRIPTION = "Linux kernel for Freescale platforms" |
@@ -9,29 +9,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | |||
9 | KSRC ?= "" | 9 | KSRC ?= "" |
10 | S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}' | 10 | S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}' |
11 | 11 | ||
12 | python () { | ||
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 | |||
35 | DEPENDS_append = " libgcc" | 12 | DEPENDS_append = " libgcc" |
36 | KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}" | 13 | KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}" |
37 | KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}" | 14 | KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}" |