Possible to pass variables to .adef via mkapp?

I can see that .adef and .cdef files have access to export variables and some other defined variables, like ${CURDIR}

I have some dynamically generated folder names (using Conan) that I would like to bundle in my app, and would need to pass them to the .adef. Is there a way to pass variables, just like CURDIR but for a custom variable? I can’t seem to find it in the mkapp documentation.


By looking at the legato source, I found out how to do it.

You can simply do a

export VARIABLE_NAME (for an existing variable)
export VARIABLE_NAME := VALUE (for a new variable)

in the top of your makefile. That variable will then be available in your .adef.