Makefile: internally use absolute paths to BR2_EXTERNAL
authorYann E. MORIN <yann.morin.1998@free.fr>
Fri, 21 Feb 2014 22:17:52 +0000 (23:17 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 22 Feb 2014 20:56:57 +0000 (21:56 +0100)
commit5f5e5f2919c631ead7aee4e3546e9680d3e63ace
tree25f0146a78b5e74d4b3827c7b95fd7d05b3434a6
parentf0862592b3caf5bc9cd347fd29634673cfbbabd7
Makefile: internally use absolute paths to BR2_EXTERNAL

Using a relative path for BR2_EXTERNAL, and using an external defconfig,
such as in (from a Buildroot top-dir):
    make O=.. BR2_EXTERNAL=.. foo_defconfig

is broken. It is unclear why the %_defconfig rule recurses in that case.

This patch internaly makes BR2_EXTERNAL canonical (ie. makes it an absolute
path), and checks the directory exists.

[Peter: s/relatively/relative/ as suggested by Thomas]
Reported-by: Jérémy Rosen <jeremy.rosen@openwide.fr>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Cc: Romain Naour <romain.naour@openwide.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Makefile