Return-Path: Received: from va3outboundpool.messaging.microsoft.com (va3ehsobe001.messaging.microsoft.com [216.32.180.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 946A2E01458 for ; Thu, 6 Dec 2012 05:38:21 -0800 (PST) Received: from mail147-va3-R.bigfish.com (10.7.14.235) by VA3EHSOBE006.bigfish.com (10.7.40.26) with Microsoft SMTP Server id 14.1.225.23; Thu, 6 Dec 2012 13:38:21 +0000 Received: from mail147-va3 (localhost [127.0.0.1]) by mail147-va3-R.bigfish.com (Postfix) with ESMTP id 1AFF426012F for ; Thu, 6 Dec 2012 13:38:21 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: VS0(zzzz1de0h1202h1d1ah1d2ahzz8275bhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1155h) Received: from mail147-va3 (localhost.localdomain [127.0.0.1]) by mail147-va3 (MessageSwitch) id 1354801099664271_3249; Thu, 6 Dec 2012 13:38:19 +0000 (UTC) Received: from VA3EHSMHS025.bigfish.com (unknown [10.7.14.250]) by mail147-va3.bigfish.com (Postfix) with ESMTP id 9EA84C0048 for ; Thu, 6 Dec 2012 13:38:19 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by VA3EHSMHS025.bigfish.com (10.7.99.35) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 6 Dec 2012 13:38:18 +0000 Received: from az84smr01.freescale.net (10.64.34.197) by 039-SN1MMR1-004.039d.mgd.msft.net (10.84.1.14) with Microsoft SMTP Server (TLS) id 14.2.318.3; Thu, 6 Dec 2012 13:38:18 +0000 Received: from b28495.ap.freescale.net (udp143739uds.ap.freescale.net [10.192.208.202]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id qB6Dc20U012179; Thu, 6 Dec 2012 06:38:16 -0700 From: To: Date: Thu, 6 Dec 2012 22:10:55 +0800 Message-ID: <1354803056-12793-8-git-send-email-b28495@freescale.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1354803056-12793-1-git-send-email-b28495@freescale.com> References: <1354803056-12793-1-git-send-email-b28495@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com Cc: b29882@freescale.com Subject: [PATCH 8/9] cryptodev: skip arch QA since kernel might not match for 64-bit kernels on 32-bit rfs X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2012 13:38:21 -0000 Content-Type: text/plain From: Yashpal Dutta Signed-off-by: Yashpal Dutta --- recipes-kernel/cryptodev/cryptodev_1.5.bb | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/recipes-kernel/cryptodev/cryptodev_1.5.bb b/recipes-kernel/cryptodev/cryptodev_1.5.bb index 0696e2a..636bb54 100644 --- a/recipes-kernel/cryptodev/cryptodev_1.5.bb +++ b/recipes-kernel/cryptodev/cryptodev_1.5.bb @@ -15,3 +15,21 @@ SRC_URI = "git://repo.or.cz/cryptodev-linux.git;protocol=git \ EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"' 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', '')) +} -- 1.7.3.4