From fd33606c05d47616f96d284564e989a176bb002c Mon Sep 17 00:00:00 2001 From: Ting Liu Date: Fri, 11 Jul 2014 02:49:10 -0500 Subject: 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 --- recipes-bsp/ipc/ipc-modules.inc | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'recipes-bsp/ipc') 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" require ipc.inc -inherit module +inherit module qoriq_build_64bit_kernel S = "${WORKDIR}/git" -python () { - ma = d.getVar("DISTRO_FEATURES", True) - arch = d.getVar("OVERRIDES", True) - - # the : after the arch is to skip the message on 64b - if not "multiarch" in ma and ("e5500:" in arch or "e6500:" in arch): - raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES") - - 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', '')) -} do_compile_prepend () { cd ${S}/kernel -- cgit v1.2.3-54-g00ecf