BBFILES_DYNAMIC doesn't come with a default value bitbake-getvar BBFILES_DYNAMIC NOTE: Starting bitbake server... The variable 'BBFILES_DYNAMIC' is not defined unless it used by any of the layers in the setup. As it's a builtin feature of bitbake, it should come with an empty default value.
I don't see why just because it is a variable bitbake can use, it needs to have an empty value...
Because there is currently no way to determine if a variable is supported, but by an intensive code grep, for variables that could be used. Unfortunately the documentation is not always up to date, so the easiest would be to use bitbake-getvar <VAR>, and if it has a history entry, support is still given. Because all the variables are reported the same way, as they would be haven been removed entirely from the code base with the available tooling, so there is no way to get the information (without grepping the code). In my opinion it won't hurt to define an empty value (as it will not have any technical implications) but open up this use case, which could also be used to automatically check the consistency of the documentation, in case there needs to be a use case just within core.
(In reply to kweihmann from comment #2) > Because there is currently no way to determine if a variable is supported, > but by an intensive code grep, for variables that could be used. > > Unfortunately the documentation is not always up to date, so the easiest > would be to > use bitbake-getvar <VAR>, and if it has a history entry, support is still > given. > Because all the variables are reported the same way, as they would be haven > been removed entirely from the code base with the available tooling, so > there is no way to get the information (without grepping the code). > > In my opinion it won't hurt to define an empty value (as it will not have > any technical implications) but open up this use case, which could also be > used to automatically check the consistency of the documentation, in case > there needs to be a use case just within core. I very strongly disagree. If things are missing in the documentation lets fix them but I do not want to add pointless defaults for all possible variables, it will clutter the code more that helping anything.