Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bitbake: d.getVar("X", True) what does True mean?

I find the following:

http://www.yoctoproject.org/docs/2.1/bitbake-user-manual/bitbake-user-manual.html#accessing-datastore-variables-using-python

It said that: Using "expand=True" expands the value. What does the "expand" means?

like image 939
dudengke Avatar asked May 05 '16 02:05

dudengke


1 Answers

Great that you are reading BitBake user manual, it helps a lot in understanding the recipe syntax.

Returning to your question the 'expand' means that in case when this particular variable value depends on some other variables, e.g:

B = "architecture_${A}"

and A is equal to "x86", calling:

d.getVar("B", expand=True)

will return you: "architecture_x86" as the variable A has been expanded.

Some other examples can be found in BitBake User Manual Chapter 3.

like image 200
iksajotien Avatar answered Sep 19 '22 15:09

iksajotien