summaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
authorTing Liu <b28495@freescale.com>2014-07-11 02:49:10 -0500
committerZhenhua Luo <zhenhua.luo@freescale.com>2014-07-15 14:13:20 +0800
commitfd33606c05d47616f96d284564e989a176bb002c (patch)
treef152963e7fa0a978a478d4a46ee3ba8444f70f35 /recipes-bsp
parentc9bc713332212316f782bb9ae5cc20fdc0856751 (diff)
downloadmeta-fsl-ppc-fd33606c05d47616f96d284564e989a176bb002c.tar.gz
inherit qoriq_build_64bit_kernel for kernel/module recipes
ppce6500 is a specific core which only support 64bit kernel, the duplicate hack codes were packaged into qoriq_build_64bit_kernel.bbclass, use it. Signed-off-by: Ting Liu <b28495@freescale.com>
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/ipc/ipc-modules.inc20
1 files changed, 1 insertions, 19 deletions
diff --git a/recipes-bsp/ipc/ipc-modules.inc b/recipes-bsp/ipc/ipc-modules.inc
index 015a91b..3d7dfa6 100644
--- a/recipes-bsp/ipc/ipc-modules.inc
+++ b/recipes-bsp/ipc/ipc-modules.inc
@@ -5,27 +5,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fa38cd73d71527dc6efb546474f64d10"
5 5
6require ipc.inc 6require ipc.inc
7 7
8inherit module 8inherit module qoriq_build_64bit_kernel
9 9
10S = "${WORKDIR}/git" 10S = "${WORKDIR}/git"
11python () {
12 ma = d.getVar("DISTRO_FEATURES", True)
13 arch = d.getVar("OVERRIDES", True)
14
15 # the : after the arch is to skip the message on 64b
16 if not "multiarch" in ma and ("e5500:" in arch or "e6500:" in arch):
17 raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES")
18
19 promote_kernel = d.getVar('BUILD_64BIT_KERNEL')
20
21 if promote_kernel == "1":
22 d.setVar('KERNEL_CC_append', ' -m64')
23 d.setVar('KERNEL_LD_append', ' -melf64ppc')
24
25 error_qa = d.getVar('ERROR_QA', True)
26 if 'arch' in error_qa:
27 d.setVar('ERROR_QA', error_qa.replace(' arch', ''))
28}
29 11
30do_compile_prepend () { 12do_compile_prepend () {
31 cd ${S}/kernel 13 cd ${S}/kernel