Makefile: Forbid out-of-tree build from a source tree that has been built in
commitd1bd2423a90a144576cd140dc84b1fe8c7c8fda0
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 19 Oct 2012 13:54:23 +0000 (19 14:54 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 27 Oct 2012 14:41:13 +0000 (27 14:41 +0000)
tree1a5464003a797897421486bdf7b659fc93a37ada
parent49cdaea18b6a827fbe9555efef12821909e59229
Makefile: Forbid out-of-tree build from a source tree that has been built in

If we try to do an out-of-tree build but the source tree we're building from
has been used in the past for an in-tree build then things will go
confusingly wrong. Specifically, some parts of the build process will pull
in generated files from the old in-tree build (because SRC_PATH is on
the vpath). Diagnose this situation so we can produce a useful error
message and tell the user how to fix it (run distclean in the source tree).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Makefile