core/br2-external: export paths and descriptions
authorYann E. MORIN <yann.morin.1998@free.fr>
Wed, 19 Oct 2016 19:53:02 +0000 (21:53 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 19 Oct 2016 21:19:14 +0000 (23:19 +0200)
commit5feff4403833a4aa7cddb99c5da6083c090cd15f
tree183e649f4d5e5d321bd6c52d7763245cc4c2678f
parent092d3e5e0c28f131e1a6bf375273f4d8f7c2f16d
core/br2-external: export paths and descriptions

Now that we support multiple br2-external trees, BR2_EXTERNAL is no
longer exported in the environment.

This means that post-build scripts in a br2-external tree can no longer
find their own files (well, they could re-invent the path by stripping
their known-relative path, but that'd be ugly, especially since we can
very well provide it).

Export the path for each br2-external trees as environment variables.
Do so for the description as well, as a courtesy.

Also, re-order variable definitions to be more logical: first, purely
internal variables, then exported variables.

Reported-by: Benoît Allard <benoit.allard@greenbone.net>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Benoît Allard <benoit.allard@greenbone.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/br2-external