Re: Best convention for FILES variable
On Fri, Nov 20, 2020 at 6:49 PM <rustyhowell@...> wrote: Hello, Both will work, although you do run the risk of accidentally globbing files that you do not mean to include, but perhaps you know your recipes well enough that that is not a factor. Personally, I find that being explicit makes a lot more sense for a few reasons:
And finally, I have adjusted to using the following pattern, and found that it has improved maintainability a great deal. It applies to DEPENDS and RDEPENDS as well. Yes, it is a bit tedious, but the benefits far outweigh the cost (IMHO). FILES_fooz += " lib/foozlib.so" FILES_fooz += " /usr/lib/foozlib-2.so" FILES_fooz += " /usr/bin/fooz" FILES_fooz += " /bin/fooz" FILES_fooz += " /usr/share/fooz" This pattern is invaluable when you start accumulating a lot of recipes. A recursive grep (grep -r) across a directory tree, will immediately tell you that (for example), /bin/fooz is file in the fooz package and it is referenced in the fooz_1.3.2.bb recipe. ..Ch:W.. -- "Perfection must be reached by degrees; she requires the slow hand of time." - Voltaire
|
|