Skip to content

DEFAULT_PREFERENCE shouldn't be set in recipe? #14

@skycaptain

Description

@skycaptain

Running latest oelint-adv over my metalayer gives me:

[...]warning:oelint.vars.bbvars.DEFAULT_PREFERENCE:Variable 'DEFAULT_PREFERENCE' should be set on a disto/layer or local.conf level, not in a recipe

However, the current docs state:

The most common usage of this is variable is to set it to "-1" within a recipe for a development version of a piece of software.

Also, multiple openembedded recipes are using DEFAULT_PREFERENCE in recipe files, but I havn't seen any example of usage in distro or layer conf. How would I set DEFAULT_PREFERENCE here for a specific version only? Could you please explain pros and cons of setting DEFAULT_PREFERENCE in distro or layer conf and maybe provide example code?

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions