From: Bruce Ashfield <bruce.ashfield@windriver.com>
To: "Joel (Xi Zhou) Zhou" <joel.zhou@broadcom.com>,
"yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Kernel customized do_fetch issue
Date: Wed, 29 Apr 2015 13:52:16 -0400 [thread overview]
Message-ID: <55411A50.3030304@windriver.com> (raw)
In-Reply-To: <9F136EE5FB53D64397ED1089A0E760E0162CD671@SJEXCHMB12.corp.ad.broadcom.com>
On 2015-04-29 01:39 PM, Joel (Xi Zhou) Zhou wrote:
> Hi all,
>
> I created a do_fetch() for checkout in-house git repo, which is working
> fine with OE.
>
> do_fetch() {
>
> cd ${WORKDIR}
>
> rm -rf ${PN}-${PV}
>
> git clone ssh://svcswgit@git-ccxsw.inhouse.com/linux-lsk ${PN}-${PV}
>
> cd ${PN}-${PV}
>
> git checkout ${KBRANCH}
>
> }
>
> With Yocto, the do_fetch() does its job, but do_configure create an issue.
>
> do_configure_prepend() {
>
> cp ${WORKDIR}/${KERNEL_CONFIG_FILE} ${S}/.config
>
> oe_runmake oldconfig
>
> }
>
> The do_configure error message:
>
> | make: *** No rule to make target `oldconfig'. Stop.
>
> Basically, the kernel source checkout by do_fetch() is delete/erase
> while running do_configure().
>
> I suspect some tasks between do_fetch and do_configure are doing some
> magic work of moving the kernel source around.
It's better if you can post your entire kernel recipe, and what
branch/release you are using.
There are steps that move the kernel source into work-shared, so that
may be impacting your flow.
But the question has to be asked. Why exactly are you manually fetching
the kernel ? The fetcher can take care of most everything.
If you need to modify the source directory later, have a look at the
steps that I'm taking in kernel-yocto.bbclass, since that works properly
within the fetcher and build infrastructure.
Bruce
>
> Any suggestion?
>
> Thanks,
>
> Joel
>
>
>
next prev parent reply other threads:[~2015-04-29 17:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-29 17:39 Kernel customized do_fetch issue Joel (Xi Zhou) Zhou
2015-04-29 17:52 ` Bruce Ashfield [this message]
2015-04-29 18:08 ` Joel (Xi Zhou) Zhou
2015-04-29 19:22 ` Bruce Ashfield
2015-04-29 19:44 ` Joel (Xi Zhou) Zhou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55411A50.3030304@windriver.com \
--to=bruce.ashfield@windriver.com \
--cc=joel.zhou@broadcom.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.