[meta-xilinx] Overwriting kmeta-based config options in own layer
Nathan Rossi
nathan at nathanrossi.com
Mon Aug 24 23:56:38 PDT 2015
On Tue, Aug 25, 2015 at 6:58 AM, Andreas Galauner <andreas at galauner.de> wrote:
> Hi,
> I have my own project-specific layer on top of meta-xilinx with my own
> kernel recipes based on the ones in meta-xilinx. I basically copied
> everything (recipes and the kmeta config directories) and changed all
> the names, but it's a nightmare to maintain on a regular basis.
>
> Does anybody of you guys have an example recipe how I can overwrite
> specific config options in the kmeta folders for my own kernel builds in
> my overlay but inherit all the rest of the configured kernel config
> options from meta xilinx?
>
> Can I just add another kmeta-directory to the SRC_URI and create my own
> machine in these directories and specify it using the KMACHINE variable
> in my recipe?
That's exactly what you can do, have a look at the difference between
the linux-yocto recipes in meta-xilinx and the linux-xlnx recipes, you
will notice that an additional meta config source is added for
linux-xlnx.
But you probably don't need to create a separate KMACHINE, that is
just more to manage and maintain (especially if something changes in
meta-xilinx). Using KERNEL_FEATURES to enable things for your machine
is probably a simpler option.
> Anybody here who has experience with this? Is this even advisable to do
> so or are there better ways?
Sort of depends on your goals, is your goal to overlay the
linux-xlnx/yocto kernels with additional configuration? if so than
using the meta directories works well. However if it is just a small
set of configs you may be able to get away with just adding the files
to the SRC_URI, see the meta-virtualization layer for an example of
that: http://git.yoctoproject.org/cgit/cgit.cgi/meta-virtualization/tree/recipes-kernel/linux
Regards,
Nathan
>
> Thanks,
> - Andy
> --
> _______________________________________________
> meta-xilinx mailing list
> meta-xilinx at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-xilinx
More information about the meta-xilinx
mailing list