Search code examples
bitbake

What is the difference between ":=" and ".=" assignment in BitBake?


I saw in a BitBake .conf file:

BBPATH := "${TOPDIR}"  

and

BBPATH .= ":${LAYERDIR}"  

What is the difference between := and .=?


Solution

  • According to the BitBake manual:

    The := operator results in a variable's contents being expanded immediately.
    If you want to append or prepend values without an inserted space, use the .= and =. operators.