[poky] Strange file names

Tom Zanussi tom.zanussi at intel.com
Tue Mar 27 07:52:53 PDT 2012


On Tue, 2012-03-27 at 08:40 -0600, Gary Thomas wrote:
> I just did a pull on poky master and now have a lot of files
> with strange names like these:
>    poky/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.0": }} linux-yocto-rt_3.0.bbappend
>    poky/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto-rt_3.2": }} linux-yocto-rt_3.2.bbappend
>    poky/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.0": }} linux-yocto_3.0.bbappend
>    poky/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/{{ if kernel_choice == "linux-yocto_3.2": }} linux-yocto_3.2.bbappend
> 
> Is this right?  What are they all about?
> 

These are part of the new Yocto BSP Tools (yocto-bsp) and all the files
under 'scripts/lib/bsp/substrate' are template files for the tool.

The template files can contain inline Python between {{ tags }} that
gets used as logic when generating the BSP.  The inline Python can also
be used in the filne names themselves for that purpose.  In this case,
it's used to only include one of the .bbappend files depending on the
value of the kernel_choice variable.

It may seem strange, but filenames are just text after all, and I wanted
to avoid having separate 'meta-files' describing that same logic that
would also have to be kept in sync, so decided it would be less
error-prone to keep that information in the filenames themselves.

I'm in the process of writing all this up to put in the BSP manual, but
not quite there yet...

Tom






More information about the poky mailing list