Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CONF: MACHINE: use weak assignment for PREFERRED_PROVIDER #82

Open
wants to merge 1 commit into
base: scarthgap
Choose a base branch
from

Conversation

lucaceresoli
Copy link

Using the ??= operator allows to override PREFERRED_PROVIDER in local.conf easily.

See the commit message for more details.

By its nature, the PREFERRED_PROVIDER_* variables might be subject to
change in upper layers with a line such as:

  PREFERRED_PROVIDER_virtual/kernel = "linux-foo"

However adding the above line to local.conf to do a local experiment would
not work as users might expect because the meta-st-stm32mp layer uses the
'=' assignment, and local.conf is parsed earlier.

Relying on parsing order is usually not a good idea, thus change all the
PREFERRED_PROVIDER assignments in the machine files to using a weak
assignment, like many other silicon vendor layers do. Using the ??= allows
2 further levels of overriding, e.g. by a board/SoM manufacturer and by a
final integration layer.

Signed-off-by: Luca Ceresoli <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant