Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yocto bitbake configuration for MACHINE variable via shell environment variable

Tags:

yocto

bitbake

Building via Yocto Project,Which variable will be preferred or picked by bitbake for MACHINE ,environment variable or as set in local.conf

like image 804
Mohit Avatar asked Aug 13 '26 12:08

Mohit


1 Answers

The answer as usual with bitbake is "it depends" but usually in the case of MACHINE, the environment variable wins.

The preference depends on how the configuration file sets the variable. Typically MACHINE is set with soft assignment (e.g. MACHINE ?= "intel-corei7-64") and soft assignment will not override a environment variable. A normal assignment (MACHINE = "intel-corei7-64") would not respect the environment variable.

like image 122
Jussi Kukkonen Avatar answered Aug 16 '26 21:08

Jussi Kukkonen