When I open bitbake files (ending with .bb extension), most of the files are using the WORKDIR variable as shown below.
S = "${WORKDIR}/git"
can you please tell me where this WORKDIR is defined.
The default value of ${WORKDIR}
is defined in bitbake variables. But you can change it in the recipe. It points toward the directory where bitbake unpacks the package
You can get the value of ${WORKDIR}
from the bitbake environment
bitbake -e <recipe-name> | grep ^WORKDIR=
For a specific recipe, you can get all the variables' value by getting an environment file as:
bitbake -e recipe_name > env