[yocto] bbappend - FILESEXTRAPATHS
Joshua Watt
jpewhacker at gmail.com
Fri Oct 20 07:10:01 PDT 2017
On Fri, 2017-10-20 at 13:30 +0000, Koehler, Yannick wrote:
> Hi,
>
> I have been using Yocto for over 2 years now, and whenever I create a
> new bbappend file, I always have to remember that FILESEXTRAPATHS
> variable, often typing it wrong, EXTRAFILESPATHS or FILEEXTRAPATHS or
> FILESEXTRAPATH, etc…
>
> I did a quick check on my setup and on 102 bbappend recipe found,
> there are 73 that uses the FILESEXTRAPATHS variable, so that is
> around 71% of them.
>
> I was wondering if the team would enhance the user/dev experience
> here and modify bitbake behavior as to not require this variable and
> be able to “override” any FILESPATH that already exists with the
> bbappend location. So that for example the FILESPATH “files” would
> be looked up in the bbappend folder location before the initial bb
> recipe folder location automatically without having to manually enter
> a FILESEXTRAPATHS statement.
>
> Or alternatively, a script or command to create an initial skeleton
> bbappend with the initial .bb in comment
>
> bbappend mylayer recipename.bb
> # Create a file under mylayer/recipes-*/*.bbappend
> (using % for version when not specified on cmd line) with the
> original .bb in comment and a section containing FILESEXTRAPATHS
kergoth has some really good vim plugins for bitbake files at https://g
ithub.com/kergoth/vim-bitbake (if you like vim). I supplemented it to
pre-populate FILESEXTRAPATHS for bbpappend files, pull request pending:
https://github.com/kergoth/vim-bitbake/pull/14
>
> I think this would greatly help when creating those files.
>
> --
> Yannick Koehler
> HPE Aruba
More information about the yocto
mailing list