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 ACB48E007E6 for ; Mon, 16 Dec 2013 00:21:31 -0800 (PST) Received: from mail1-db9-R.bigfish.com (10.174.16.242) by DB9EHSOBE012.bigfish.com (10.174.14.75) with Microsoft SMTP Server id 14.1.225.22; Mon, 16 Dec 2013 08:21:30 +0000 Received: from mail1-db9 (localhost [127.0.0.1]) by mail1-db9-R.bigfish.com (Postfix) with ESMTP id 01B6BB01522 for ; Mon, 16 Dec 2013 08:21:30 +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 mail1-db9 (localhost.localdomain [127.0.0.1]) by mail1-db9 (MessageSwitch) id 1387182088173958_14257; Mon, 16 Dec 2013 08:21:28 +0000 (UTC) Received: from DB9EHSMHS026.bigfish.com (unknown [10.174.16.253]) by mail1-db9.bigfish.com (Postfix) with ESMTP id 22905D00040; Mon, 16 Dec 2013 08:21:28 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by DB9EHSMHS026.bigfish.com (10.174.14.36) with Microsoft SMTP Server (TLS) id 14.16.227.3; Mon, 16 Dec 2013 08:21:27 +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; Mon, 16 Dec 2013 08:21:26 +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 rBG8LN70000738; Mon, 16 Dec 2013 01:21:24 -0700 From: To: Date: Mon, 16 Dec 2013 16:21:20 +0800 Message-ID: <1387182080-9203-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 v3] 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: Mon, 16 Dec 2013 08:21:34 -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 | 18 ++++++++++++++++++ 1 files changed, 18 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..bdde402 --- /dev/null +++ b/recipes-kernel/lttng/lttng-modules_2.3.3.bbappend @@ -0,0 +1,18 @@ +inherit distro_features_check + +REQUIRED_DISTRO_FEATURES ?= "multiarch" + +python () { + + promote_kernel = d.getVar('BUILD_64BIT_KERNEL') + + if promote_kernel == "1": + d.appendVar('KERNEL_CC', ' -m64') + d.appendVar('KERNEL_LD', ' -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