From 4f980553868ff8f99acf61eba3a1c578c7a1c02b 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 --- meta-fsl-ppc/recipes-kernel/ceetm/ceetm_git.bb | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'meta-fsl-ppc/recipes-kernel/ceetm') diff --git a/meta-fsl-ppc/recipes-kernel/ceetm/ceetm_git.bb b/meta-fsl-ppc/recipes-kernel/ceetm/ceetm_git.bb index 7620cdbc..266261eb 100644 --- a/meta-fsl-ppc/recipes-kernel/ceetm/ceetm_git.bb +++ b/meta-fsl-ppc/recipes-kernel/ceetm/ceetm_git.bb @@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b5881ecf398da8a03a3f4c501e29d287" DEPENDS="virtual/kernel" -inherit module +inherit module qoriq_build_64bit_kernel SRC_URI = "git://git.freescale.com/ppc/sdk/ceetm.git;nobranch=1" SRCREV = "ecf55c9ca0cd42a212653e1f99c19cd611e3a008" @@ -14,25 +14,6 @@ S = "${WORKDIR}/git" EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} SYSROOT=${STAGING_DIR_TARGET}" export KERNEL_PATH = "${STAGING_KERNEL_DIR}" -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 "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_install(){ mkdir -p ${D}/usr/driver/ceetm mkdir -p ${D}/${libdir}/tc -- cgit v1.2.3-54-g00ecf