From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 08330E00757; Thu, 8 Jan 2015 21:38:00 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from smtp.webfaction.com (mail6.webfaction.com [74.55.86.74]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id BB088E004D6 for ; Thu, 8 Jan 2015 21:37:56 -0800 (PST) Received: from [192.168.1.10] (c-73-194-208-34.hsd1.nj.comcast.net [73.194.208.34]) by smtp.webfaction.com (Postfix) with ESMTP id 0F19C2097E2A; Fri, 9 Jan 2015 05:37:54 +0000 (UTC) Message-ID: <54AF6930.4020009@mindchasers.com> Date: Fri, 09 Jan 2015 00:37:52 -0500 From: Bob Cochran User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: ting.liu@freescale.com, meta-freescale@yoctoproject.org, Zhenhua Luo References: <1420429043-9190-1-git-send-email-ting.liu@freescale.com> In-Reply-To: <1420429043-9190-1-git-send-email-ting.liu@freescale.com> Subject: Re: [meta-fsl-ppc][PATCH] linux-qoriq: fix building using out-of-tree 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, 09 Jan 2015 05:38:00 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 01/04/2015 10:37 PM, ting.liu@freescale.com wrote: > From: Ting Liu > > Signed-off-by: Ting Liu > --- > recipes-kernel/linux/linux-qoriq.inc | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/recipes-kernel/linux/linux-qoriq.inc b/recipes-kernel/linux/linux-qoriq.inc > index 9e463dd..a832b46 100644 > --- a/recipes-kernel/linux/linux-qoriq.inc > +++ b/recipes-kernel/linux/linux-qoriq.inc > @@ -36,8 +36,8 @@ do_configure_prepend() { > if [ -n "${SDK_VERSION}" ]; then > sdkversion="-${SDK_VERSION}" > fi > - head=`git rev-parse --verify --short HEAD 2> /dev/null` > - printf "%s%s%s" $sdkversion +g $head > ${S}/.scmversion > + head=`git --git-dir=${S}/.git rev-parse --verify --short HEAD 2> /dev/null` > + printf "%s%s%s" $sdkversion +g $head > ${B}/.scmversion > fi > } > > Hi Ting, I'm having a problem forcing a compile after allowing the kernel to finish baking all the way. The problem that I see is that $ bitbake virtual/kernel -c compile -f will fail due to the sysroot not being clean (e.g., having a .config file under usr/src/kernel It seems that do_populate_sysroot is being called when I initially bake the kernel ($ bitbake virtual/kernel), and this task copies the .config file into the sysroot. Below is a log of the error I see when I try forcing a compile (note the prepare3 error, which alerted me to the problem of having a .config file present. | DEBUG: Executing shell function do_compile | NOTE: make -j 4 uImage CC=powerpc64-poky-linux-gcc --sysroot=/build/yocto/t1040_1/tmp/sysroots/t1040rdb-64b LD=powerpc64-poky-linux-ld.bfd --sysroot=/build/yocto/t1040_1/tmp/sysroots/t1040rdb-64b | CHK include/config/kernel.release | GEN /build/yocto/t1040_1/tmp/work/t1040rdb_64b-poky-linux/linux-qoriq/3.12-r0/build/Makefile | CHK include/generated/uapi/linux/version.h | Using /build/yocto/t1040_1/tmp/sysroots/t1040rdb-64b/usr/src/kernel as source for kernel | /build/yocto/t1040_1/tmp/sysroots/t1040rdb-64b/usr/src/kernel is not clean, please run 'make mrproper' | in the '/build/yocto/t1040_1/tmp/sysroots/t1040rdb-64b/usr/src/kernel' directory. | CHK include/generated/utsrelease.h | make[2]: *** [prepare3] Error 1 | make[2]: *** Waiting for unfinished jobs.... | CC scripts/mod/empty.o | CC scripts/mod/devicetable-offsets.s | MKELF scripts/mod/elfconfig.h | HOSTCC scripts/mod/modpost.o | HOSTCC scripts/mod/sumversion.o | GEN scripts/mod/devicetable-offsets.h | HOSTCC scripts/mod/file2alias.o | HOSTLD scripts/mod/modpost | make[1]: *** [sub-make] Error 2 | make: *** [all] Error 2 | ERROR: oe_runmake failed If I manually rm .config and include/config in my sysroot, I can then force a recompile. Thanks Bob