Return-Path: Received: from va3outboundpool.messaging.microsoft.com (va3ehsobe006.messaging.microsoft.com [216.32.180.16]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 072ACE00802 for ; Sun, 15 Dec 2013 22:46:50 -0800 (PST) Received: from mail166-va3-R.bigfish.com (10.7.14.229) by VA3EHSOBE001.bigfish.com (10.7.40.21) with Microsoft SMTP Server id 14.1.225.22; Mon, 16 Dec 2013 06:46:48 +0000 Received: from mail166-va3 (localhost [127.0.0.1]) by mail166-va3-R.bigfish.com (Postfix) with ESMTP id 943A720116 for ; Mon, 16 Dec 2013 06:46:48 +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 mail166-va3 (localhost.localdomain [127.0.0.1]) by mail166-va3 (MessageSwitch) id 1387176406325647_27777; Mon, 16 Dec 2013 06:46:46 +0000 (UTC) Received: from VA3EHSMHS040.bigfish.com (unknown [10.7.14.248]) by mail166-va3.bigfish.com (Postfix) with ESMTP id 4A0521A0082; Mon, 16 Dec 2013 06:46:46 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by VA3EHSMHS040.bigfish.com (10.7.99.50) with Microsoft SMTP Server (TLS) id 14.16.227.3; Mon, 16 Dec 2013 06:46:46 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-001.039d.mgd.msft.net (10.84.1.13) with Microsoft SMTP Server (TLS) id 14.3.158.2; Mon, 16 Dec 2013 06:46:45 +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 rBG6kg42011773; Sun, 15 Dec 2013 23:46:43 -0700 From: To: Date: Mon, 16 Dec 2013 14:46:39 +0800 Message-ID: <1387176399-21249-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 v2] 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 06:46:51 -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 | 13 +++++++++++++ 1 files changed, 13 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..6742afe --- /dev/null +++ b/recipes-kernel/lttng/lttng-modules_2.3.3.bbappend @@ -0,0 +1,13 @@ +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') + +} -- 1.7.5.4