* do_kernel_configme error when patches create directories
@ 2015-03-10 13:49 Jeff Melville
2015-03-10 13:57 ` Bruce Ashfield
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Melville @ 2015-03-10 13:49 UTC (permalink / raw)
To: yocto
I'm using a Yocto flow to build for the Zynq with the meta-xilinx with
some customizations:
- I'm using a bbappend to replace the linux-xlnx 3.14 kernel with one
that has had mainline changes from 3.14.17 merged in.
- I added a task between patch and configure for applying the Xenomai
kernel patches and running the Xenomai prepare_kernel script.
All layers are on the dizzy branch. The linux-xlnx recipe inherits
from linux-yocto but obtains the metadeta from an out of tree source
using a SRC_URI append with type=kmeta. This ends up getting copied
into the kernel tree with during the kernel_configme task. This is my
first time working with a kernel recipe in the linux-yocto style so
I'm still coming up to speed a bit.
The problem arises because the Xenomai patch process creates
additional directories in the Linux tree. As part of the
kernel_configme task, the kgit-meta script will attempt to use the
last unversioned directory returned by 'git ls-files -o --directory'
as the metadata directory, which does not work.
Two questions:
1) What is the best short term way for me to work around this?
2) Is there a way to patch the meta directory detection in kgit-meta
to make it more robust against false detections?
Thanks,
Jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: do_kernel_configme error when patches create directories
2015-03-10 13:49 do_kernel_configme error when patches create directories Jeff Melville
@ 2015-03-10 13:57 ` Bruce Ashfield
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2015-03-10 13:57 UTC (permalink / raw)
To: Jeff Melville, yocto
On 15-03-10 09:49 AM, Jeff Melville wrote:
> I'm using a Yocto flow to build for the Zynq with the meta-xilinx with
> some customizations:
> - I'm using a bbappend to replace the linux-xlnx 3.14 kernel with one
> that has had mainline changes from 3.14.17 merged in.
> - I added a task between patch and configure for applying the Xenomai
> kernel patches and running the Xenomai prepare_kernel script.
>
> All layers are on the dizzy branch. The linux-xlnx recipe inherits
> from linux-yocto but obtains the metadeta from an out of tree source
> using a SRC_URI append with type=kmeta. This ends up getting copied
> into the kernel tree with during the kernel_configme task. This is my
> first time working with a kernel recipe in the linux-yocto style so
> I'm still coming up to speed a bit.
>
> The problem arises because the Xenomai patch process creates
> additional directories in the Linux tree. As part of the
> kernel_configme task, the kgit-meta script will attempt to use the
> last unversioned directory returned by 'git ls-files -o --directory'
> as the metadata directory, which does not work.
>
> Two questions:
> 1) What is the best short term way for me to work around this?
Write a _append to the do_kernel_checkout that removes the extra
directories. But since I have no idea what the directories are
used for .. that may or may not be a good thing.
> 2) Is there a way to patch the meta directory detection in kgit-meta
> to make it more robust against false detections?
Its software, so everything is possible :) But that code was written to
free ourselves from being locked to the meta-data directory needing
to match the meta-data repo/branch name, and to not introduce yet
another arcane variable to the build process.
If I tweak this yet again, other use cases will potentially break, so
it has to be carefully done.
I have some ideas on how to do this though .. can you open an
enhancement request in the yocto bugzilla and assign it to me ?
Cheers,
Bruce
>
> Thanks,
> Jeff
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-10 13:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-10 13:49 do_kernel_configme error when patches create directories Jeff Melville
2015-03-10 13:57 ` Bruce Ashfield
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.