core: split variables definition related to in/out-of-tree build from O itself
authorSamuel Martin <s.martin49@gmail.com>
Mon, 17 Oct 2016 21:05:41 +0000 (23:05 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 19 Oct 2016 21:04:39 +0000 (23:04 +0200)
commit0b1b2c47ba2bc3f41797fb8c21229bb437e5879e
treeb8c9dd4b2e079f62a583d2096cb0c48258c4c25c
parentfa6feffa0def0ee88c7c1ac05e7d14deec0e2db1
core: split variables definition related to in/out-of-tree build from O itself

This change uncorrolates the CONFIG_DIR and NEED_WRAPPER definition from
the presence of the O variable in the command line.

Now, the condition used to set these variables is the value of O itself.

This change is a preparatory work since the O definition will need to
be moved around when we will make Buildroot run with absolute canonical
paths for both its root directory and the output location.
This will be addressed in a follow-up patch.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Makefile