* Kernel customized do_fetch issue
@ 2015-04-29 17:39 Joel (Xi Zhou) Zhou
2015-04-29 17:52 ` Bruce Ashfield
0 siblings, 1 reply; 5+ messages in thread
From: Joel (Xi Zhou) Zhou @ 2015-04-29 17:39 UTC (permalink / raw)
To: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 811 bytes --]
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.
Any suggestion?
Thanks,
Joel
[-- Attachment #2: Type: text/html, Size: 3686 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Kernel customized do_fetch issue
2015-04-29 17:39 Kernel customized do_fetch issue Joel (Xi Zhou) Zhou
@ 2015-04-29 17:52 ` Bruce Ashfield
2015-04-29 18:08 ` Joel (Xi Zhou) Zhou
0 siblings, 1 reply; 5+ messages in thread
From: Bruce Ashfield @ 2015-04-29 17:52 UTC (permalink / raw)
To: Joel (Xi Zhou) Zhou, yocto@yoctoproject.org
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
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Kernel customized do_fetch issue
2015-04-29 17:52 ` Bruce Ashfield
@ 2015-04-29 18:08 ` Joel (Xi Zhou) Zhou
2015-04-29 19:22 ` Bruce Ashfield
0 siblings, 1 reply; 5+ messages in thread
From: Joel (Xi Zhou) Zhou @ 2015-04-29 18:08 UTC (permalink / raw)
To: Bruce Ashfield, yocto@yoctoproject.org
> But the question has to be asked. Why exactly are you manually fetching
> the kernel ? The fetcher can take care of most everything.
The whole story is starting at the url of our git repo. We have a git URL like:
ssh://svcswgit@git-ccxsw.inhouse.com/linux-lsk
So the SRC_URI like this, but the fetcher try to apply "scp" over it.
KBRANCH= 3.14_common_dev
SRC_URI = "ssh://svcswgit@git-ccxsw.inhouse.com/linux-lsk;bareclone=1;branch=${KBRANCH}"
Error:
ERROR: Fetcher failure: Fetch command failed with exit code 1, output:
FATAL: unknown git/gitolite command: 'scp -r -f linux-lsk'
Then I change it according the suggestion in this mailing list:
SRC_URI = "git://svcswgit@git-ccxsw.inhouse.com/linux-lsk;bareclone=1;branch=${KBRANCH};protocol=ssh"
This time "bitbake linux-lsk -c fetch" return no error, but the source folder in working directory is empty.
In log.do_fetch
DEBUG: Fetcher failure: Fetch command failed with exit code 8, output:
http://downloads.yoctoproject.org/mirror/sources/git2_git-ccxsw.rtp. inhouse.com. linux-lsk.tar.gz:
2015-04-29 12:49:36 ERROR 404: Not Found.
Thanks,
Joel
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Kernel customized do_fetch issue
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
0 siblings, 1 reply; 5+ messages in thread
From: Bruce Ashfield @ 2015-04-29 19:22 UTC (permalink / raw)
To: Joel (Xi Zhou) Zhou, yocto@yoctoproject.org
On 2015-04-29 02:08 PM, Joel (Xi Zhou) Zhou wrote:
>> But the question has to be asked. Why exactly are you manually fetching
>> the kernel ? The fetcher can take care of most everything.
>
> The whole story is starting at the url of our git repo. We have a git URL like:
> ssh://svcswgit@git-ccxsw.inhouse.com/linux-lsk
>
> So the SRC_URI like this, but the fetcher try to apply "scp" over it.
> KBRANCH= 3.14_common_dev
> SRC_URI = "ssh://svcswgit@git-ccxsw.inhouse.com/linux-lsk;bareclone=1;branch=${KBRANCH}"
> Error:
> ERROR: Fetcher failure: Fetch command failed with exit code 1, output:
> FATAL: unknown git/gitolite command: 'scp -r -f linux-lsk'
>
> Then I change it according the suggestion in this mailing list:
> SRC_URI = "git://svcswgit@git-ccxsw.inhouse.com/linux-lsk;bareclone=1;branch=${KBRANCH};protocol=ssh"
>
> This time "bitbake linux-lsk -c fetch" return no error, but the source folder in working directory is empty.
> In log.do_fetch
> DEBUG: Fetcher failure: Fetch command failed with exit code 8, output:
> http://downloads.yoctoproject.org/mirror/sources/git2_git-ccxsw.rtp. inhouse.com. linux-lsk.tar.gz:
> 2015-04-29 12:49:36 ERROR 404: Not Found.
I'd expect that it part of the log, since obviously the mirrors aren't
going to have a copy of your kernel.
You really aren't seeing anything land in the build/downloads/git2/
directory structure ? ssh fetches seem to work here.
You'd be better of working through the issues and getting the right
SRC_URI specification for the fetcher, since taking the fetch into a
custom routine is going to short circuit parts of the build .. and you'll
have to take care of them yourself.
Cheers,
Bruce
>
> Thanks,
> Joel
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-04-29 19:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-29 17:39 Kernel customized do_fetch issue Joel (Xi Zhou) Zhou
2015-04-29 17:52 ` Bruce Ashfield
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
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.