[XEN PATCH v8 46/47] RFC, no-VPATH: remove check for clean source tree for out-of-tree builds

Anthony PERARD posted 47 patches 3 years ago
There is a newer version of this series
[XEN PATCH v8 46/47] RFC, no-VPATH: remove check for clean source tree for out-of-tree builds
Posted by Anthony PERARD 3 years ago
From: Anthony PERARD <anthony.perard@gmail.com>

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---
 xen/Makefile | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/xen/Makefile b/xen/Makefile
index 32c36426ed7c..a3c574ed1a87 100644
--- a/xen/Makefile
+++ b/xen/Makefile
@@ -282,7 +282,6 @@ tools_fixdep:
 	$(Q)$(MAKE) $(build)=tools tools/fixdep
 
 PHONY += outputmakefile
-# Before starting out-of-tree build, make sure the source tree is clean.
 # outputmakefile generates a Makefile in the output directory, if using a
 # separate output directory. This allows convenient use of make in the
 # output directory.
@@ -297,15 +296,6 @@ cmd_makefile = { \
 
 outputmakefile:
 ifdef building_out_of_srctree
-	$(Q)if [ -f $(srctree)/.config -o \
-		 -d $(srctree)/include/config -o \
-		 -d $(srctree)/include/generated ]; then \
-		echo >&2 "***"; \
-		echo >&2 "*** The source tree is not clean, please run 'make$(if $(findstring command line, $(origin XEN_TARGET_ARCH)), XEN_TARGET_ARCH=$(XEN_TARGET_ARCH)) distclean'"; \
-		echo >&2 "*** in $(abs_srctree)";\
-		echo >&2 "***"; \
-		false; \
-	fi
 	$(Q)ln -fsn $(srctree) source
 	$(call cmd,makefile)
 	$(Q)test -e .gitignore || \
-- 
Anthony PERARD