Makefile.legacy: fix recursive invocation with BUILDROOT_DL_DIR and _CONFIG
authorArnout Vandecappelle <arnout@mind.be>
Mon, 10 Feb 2014 21:48:55 +0000 (22:48 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 11 Feb 2014 07:14:57 +0000 (08:14 +0100)
commitaf97c94b70eee6388f1902864ec248e2817323be
tree131e877da50690d876fc9b1555b6428bcb7434e3
parent28f427ddb94b44ccef0af514c49e40727247df21
Makefile.legacy: fix recursive invocation with BUILDROOT_DL_DIR and _CONFIG

The legacy support for the old BUILDROOT_DL_DIR and BUILDROOT_CONFIG
breaks down when make is invoked recursively - which is done in a few
cases, e.g. silentoldconfig, external-defs, ... These targets always
give a legacy error.

For BUILDROOT_DL_DIR, this is fixed by making sure that the original
value of BR2_DL_DIR taken from the environment is also exported again.

For BUILDROOT_CONFIG, this is fixed with an additional comparison of
the environment variable's value with the fake value that we introduce
ourselves.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Makefile.legacy
package/pkg-download.mk