[meta-freescale] [meta-fsl-ppc]t4240qds yocto build

ting.liu at freescale.com ting.liu at freescale.com
Mon Jan 27 07:23:35 PST 2014

Note that t4240qds works with 32bit rootfs/64bit kernel. So you may need add an anonymous python function, like this: http://git.freescale.com/git/cgit.cgi/ppc/sdk/meta-fsl-ppc.git/tree/recipes-kernel/linux/linux-qoriq-sdk.inc?h=dylan-sdk1.5

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', ''))

                all_qa = d.getVar('ALL_QA', True)
                if 'arch' in all_qa:
                                d.setVar('ALL_QA', all_qa.replace(' arch', ''))

From: meta-freescale-bounces at yoctoproject.org [mailto:meta-freescale-bounces at yoctoproject.org] On Behalf Of Vigneshwaren Sankaran
Sent: Monday, January 27, 2014 11:07 PM
To: meta-freescale at yoctoproject.org
Subject: [meta-freescale] [meta-fsl-ppc]t4240qds yocto build

I am trying to write my own kernel recipes (basically builidng the image with a different kernel source). The machine is a Freescale T4240qds board. I have the meta-fsl-ppc layer required to provide support and in the recipes-kernel folder, I wrote the following bb file (linux-t4240qds.bb<http://linux-t4240qds.bb/>):

inherit kernel
require recipes-kernel/linux/linux-yocto.inc
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;protocol=git;nocheckout=1;branch=${KBRANCH};name=machine<http://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;protocol=git;nocheckout=1;branch=$%7BKBRANCH%7D;name=machine>"
SRC_URI += "file://defconfig<file:///\\defconfig>"
LINUX_VERSION ?= "3.12.9"
DEPENDS_append = " libgcc"
SRCREV = "4a5804b8c293b23786b0743fc9c64b64f5099048"
PR = "r1"
KMETA = ""

The defconfig file was the .config file from a previous t4240 build, that I had used.

The error that I got was:
during the do_compile() stage
/home/usernsl/poky-dora-10.0.0/build/tmp/work/t4240qds-poky-linux/linux-t4240qds/3.12.9+gitAUTOINC+4a5804b8c2-r1/linux/scripts/mod/empty.c:1:0: error: -mcmodel not supported in this configuration
/home/usernsl/poky-dora-10.0.0/build/tmp/work/t4240qds-poky-linux/linux-t4240qds/3.12.9+gitAUTOINC+4a5804b8c2-r1/linux/kernel/bounds.c:1:0: error: -mcmodel not supported in this configuration

I have shown only a section of the error screen. What is it that I am doing that is wrong? Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20140127/54b4b971/attachment.html>

More information about the meta-freescale mailing list