From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8AFD7E00796 for ; Wed, 11 Dec 2013 13:10:18 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.14.5/8.14.5) with ESMTP id rBBLA7kR003275 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 11 Dec 2013 13:10:07 -0800 (PST) Received: from [128.224.146.67] (128.224.146.67) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.2.347.0; Wed, 11 Dec 2013 13:10:06 -0800 Message-ID: <52A8D4A7.5000807@windriver.com> Date: Wed, 11 Dec 2013 16:09:59 -0500 From: Bruce Ashfield User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: Sudhangathan B S , "Gumstix users." References: <52A8109A.50705@windriver.com> In-Reply-To: Cc: "yocto@yoctoproject.org" Subject: Re: Compiling kernel from external source in Yocto X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Dec 2013 21:10:18 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit On 13-12-11 06:30 AM, Sudhangathan B S wrote: > Thanks Bruce, I now understood a little more..! > > So if I put the defconfig file in the place it is looking for (kindly > note, it is looking for defconfig within yocto folders, it is is not > looking for defconfig in my external src directory), it then throws this > error: > > NOTE: Executing RunQueue Tasks > ERROR: Function failed: do_configure (see > /home/desen555/yocto/build/tmp/work/overo-poky-linux-gnueabi/linux-omap-khilmanpm/3.5-r0/temp/log.do_configure.683 > for further information) > ERROR: Logfile of failure stored in: > /home/desen555/yocto/build/tmp/work/overo-poky-linux-gnueabi/linux-omap-khilmanpm/3.5-r0/temp/log.do_configure.683 > Log data follows: > | DEBUG: Executing python function sysroot_cleansstate > | DEBUG: Python function sysroot_cleansstate finished > | DEBUG: Executing shell function do_configure > | NOTE: make oldconfig > | make: *** No rule to make target `oldconfig'. Stop. > | ERROR: oe_runmake failed > | ERROR: Function failed: do_configure (see > /home/desen555/yocto/build/tmp/work/overo-poky-linux-gnueabi/linux-omap-khilmanpm/3.5-r0/temp/log.do_configure.683 > for further information) > ERROR: Task 2 > (/home/desen555/yocto/poky/meta-dese_iisc/recipes-kernel/linux/linux-omap-khilmanpm_3.5.bb > , do_configure) failed with exit > code '1' > NOTE: Tasks Summary: Attempted 545 tasks of which 544 didn't need to be > rerun and 1 failed. > No currently running tasks (264 of 559) > > Summary: 1 task failed: > > /home/desen555/yocto/poky/meta-dese_iisc/recipes-kernel/linux/linux-omap-khilmanpm_3.5.bb > , do_configure > Summary: There was 1 ERROR message shown, returning a non-zero exit code. > desen555@Xeon-S5000XVN:~/yocto/build$ > > Now I hope you have more information...!! > My external src directory has got the .config file. I need to launch a test build to see if there's been some breakage recently. I didn't quite get to that today .. but will have a go at it ASAP. Bruce > > --------------------------------- > Sudhangathan BS > Ph:(+91) 9731-905-205 > --------------------------------- > > > On Wed, Dec 11, 2013 at 12:43 PM, Bruce Ashfield > > wrote: > > On 12/11/2013, 2:00 AM, Sudhangathan B S wrote: > > Hi, I'm having this issue, I'm not able to compile a kernel > source which > I have in my system, locally. > > This is my recipe, after following instructions at > http://www.yoctoproject.org/__docs/1.4/dev-manual/dev-__manual.html#building-software-__from-an-external-source > > > require linux.inc > #THIS TEMPLATE COPIED FROM linux-sakoman_3.5.bb > > > > DESCRIPTION = "Linux kernel for OMAP processors" > LIC_FILES_CHKSUM = > "file://COPYING;md5=__d7810fab7487fb0aad327b76f1be7c__d7" > KERNEL_IMAGETYPE = "uImage" > COMPATIBLE_MACHINE = "overo" > FILESEXTRAPATHS_prepend := "${THISDIR}/linux-omap-__khilmanpm:" > PV = "3.5" > inherit externalsrc > S = > "/home/desen555/suan_work/__kernel_work/khilman35-src-__mods/linux-omap-khilmanpm" > B = "${WORKDIR}/git" > SRC_URI = "file://defconfig \ > file://omap2plus_defconfig \ > file://usb_off.patch \ > " > > As you can see the kernel source directory is in S variable. > > When the command "bitbake virtual/kernel" is run, i get this output > > ERROR: Function failed: do_configure (see > /home/desen555/yocto/build/__tmp/work/overo-poky-linux-__gnueabi/linux-omap-khilmanpm/__3.5-r0/temp/log.do_configure.__28505 > for further information) > ERROR: Logfile of failure stored in: > /home/desen555/yocto/build/__tmp/work/overo-poky-linux-__gnueabi/linux-omap-khilmanpm/__3.5-r0/temp/log.do_configure.__28505 > Log data follows: > | DEBUG: Executing python function sysroot_cleansstate > | DEBUG: Python function sysroot_cleansstate finished > | DEBUG: Executing shell function do_configure > | sed: can't read > /home/desen555/yocto/build/__tmp/work/overo-poky-linux-__gnueabi/linux-omap-khilmanpm/__3.5-r0/*defconfig: > No such file or directory* > > | ERROR: Function failed: do_configure (see > /home/desen555/yocto/build/__tmp/work/overo-poky-linux-__gnueabi/linux-omap-khilmanpm/__3.5-r0/temp/log.do_configure.__28505 > for further information) > ERROR: Task 2 > (/home/desen555/yocto/poky/__meta-dese_iisc/recipes-kernel/__linux/linux-omap-khilmanpm_3.__5.bb > > >, do_configure) failed with > exit > > code '1' > NOTE: Tasks Summary: Attempted 545 tasks of which 543 didn't > need to be > rerun and 1 failed. > Waiting for 0 running tasks to finish: > > Summary: 1 task failed: > > /home/desen555/yocto/poky/__meta-dese_iisc/recipes-kernel/__linux/linux-omap-khilmanpm_3.__5.bb > > >, do_configure > > Summary: There was 1 ERROR message shown, returning a non-zero > exit code. > > If at all I put my defconfig file in the place it is looking > for, then > it throws other errors, so I guess that is not the right way.. > > > What other errors ? You are on the right track. When using externalsrc, > you need to ensure the kernel is configured before the build starts, > since the actual build skips steps to not modify your source tree. > > If you ensure that a full .config is in your kernel's build > directory, and that defconfig is in place, what errors do you get then ? > > Also note: you can have tasks skipped by adding them to > SRCTREECOVEREDTASKS > in your recipe. > > Bruce > > > Anybody compiled kernel as an external source in yocto..?? > ------------------------------__--- > *Sudhangathan BS* > Ph:(+91) 9731-905-205 > ------------------------------__--- > > > _________________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.__org/listinfo/yocto > > > >