Return-Path: Received: from db9outboundpool.messaging.microsoft.com (mail-db9lp0248.outbound.messaging.microsoft.com [213.199.154.248]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2874BE007D8 for ; Thu, 12 Dec 2013 23:48:01 -0800 (PST) Received: from mail38-db9-R.bigfish.com (10.174.16.243) by DB9EHSOBE025.bigfish.com (10.174.14.88) with Microsoft SMTP Server id 14.1.225.22; Fri, 13 Dec 2013 07:47:59 +0000 Received: from mail38-db9 (localhost [127.0.0.1]) by mail38-db9-R.bigfish.com (Postfix) with ESMTP id B7ED5601D4 for ; Fri, 13 Dec 2013 07:47:59 +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(zzzz1f42h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h2189h1d1ah1d2ah1fc6hzz1de098h8275bh1de097hz2dh2a8h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1b2fh2222h224fh1fb3h1d0ch1d2eh1d3fh1dc1h1dfeh1dffh1e23h1fe8h1ff5h2218h2216h226dh22d0h2327h2336h1155h) Received: from mail38-db9 (localhost.localdomain [127.0.0.1]) by mail38-db9 (MessageSwitch) id 1386920876785391_14205; Fri, 13 Dec 2013 07:47:56 +0000 (UTC) Received: from DB9EHSMHS015.bigfish.com (unknown [10.174.16.246]) by mail38-db9.bigfish.com (Postfix) with ESMTP id BA93B460062; Fri, 13 Dec 2013 07:47:56 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by DB9EHSMHS015.bigfish.com (10.174.14.25) with Microsoft SMTP Server (TLS) id 14.16.227.3; Fri, 13 Dec 2013 07:47:56 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server (TLS) id 14.3.158.2; Fri, 13 Dec 2013 07:47:55 +0000 Received: from sbuilder136.ap.freescale.net (sun.ap.freescale.net [10.192.208.136]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id rBD7lqvd011379; Fri, 13 Dec 2013 00:47:53 -0700 From: To: Date: Fri, 13 Dec 2013 15:47:44 +0800 Message-ID: <1386920864-10198-1-git-send-email-b40290@freescale.com> X-Mailer: git-send-email 1.7.5.4 MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% X-FOPE-CONNECTOR: Id%0$Dn%FREESCALE.MAIL.ONMICROSOFT.COM$RO%1$TLS%0$FQDN%$TlsDn% Subject: [meta-fsl-ppc][PATCH] lttng-modules: build as 64-bit kernel module on e6500 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: Fri, 13 Dec 2013 07:48:02 -0000 Content-Type: text/plain From: Chunrong Guo *e6500 is built with 32b rootfs/64b kernel, build asf as 64bit too. *Fix the below build issue on e6500 core: | DEBUG: Executing shell function do_make_scripts | make: Entering directory `.../tmp/sysroots/t4240qds/usr/src/kernel' | CC scripts/mod/empty.o | scripts/mod/empty.c:1:0: error: -mcmodel not supported in this configuration | make[2]: *** [scripts/mod/empty.o] Error 1 | make[1]: *** [scripts/mod] Error 2 | make: *** [scripts] Error 2 Signed-off-by: Chunrong Guo --- recipes-kernel/lttng/lttng-modules_2.3.3.bbappend | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 recipes-kernel/lttng/lttng-modules_2.3.3.bbappend diff --git a/recipes-kernel/lttng/lttng-modules_2.3.3.bbappend b/recipes-kernel/lttng/lttng-modules_2.3.3.bbappend new file mode 100644 index 0000000..0452d7c --- /dev/null +++ b/recipes-kernel/lttng/lttng-modules_2.3.3.bbappend @@ -0,0 +1,21 @@ +PRINC := "${@int(PRINC) + 1}" + +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', '')) +} + -- 1.7.5.4