Re: Unfortunate infinite make recursion

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jan Engelhardt <jengelh@...>
Cc: <zippel@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Saturday, September 22, 2007 - 4:52 pm

On Sat, Sep 22, 2007 at 01:24:32PM +0200, Jan Engelhardt wrote:

Does the following patch fix it at your end?
Seems to work for me.

	Sam

diff --git a/Makefile b/Makefile
index 6708e41..f787b05 100644
--- a/Makefile
+++ b/Makefile
@@ -115,7 +115,9 @@ saved-output := $(KBUILD_OUTPUT)
 KBUILD_OUTPUT := $(shell cd $(KBUILD_OUTPUT) && /bin/pwd)
 $(if $(KBUILD_OUTPUT),, \
      $(error output directory "$(saved-output)" does not exist))
-
+# Check the OUTPUT directory is not the same as where we have kernel src
+$(if $(filter-out $(KBUILD_OUTPUT),$(shell /bin/pwd)),, \
+     $(error Output directory (O=...) specify kernel src dir))
 PHONY += $(MAKECMDGOALS)
 
 $(filter-out _all,$(MAKECMDGOALS)) _all:

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Unfortunate infinite make recursion, Jan Engelhardt, (Sat Sep 22, 7:24 am)
Re: Unfortunate infinite make recursion, Sam Ravnborg, (Sat Sep 22, 4:52 pm)
Re: Unfortunate infinite make recursion, Jan Engelhardt, (Sun Sep 23, 2:17 am)
Re: Unfortunate infinite make recursion, Oleg Verych, (Sat Sep 22, 11:42 am)
Re: Unfortunate infinite make recursion, Sam Ravnborg, (Sat Sep 22, 4:40 pm)
Re: Unfortunate infinite make recursion, Oleg Verych, (Sat Sep 22, 6:23 pm)
Re: Unfortunate infinite make recursion, Sam Ravnborg, (Sun Sep 23, 2:03 am)
Re: Unfortunate infinite make recursion, Oleg Verych, (Sun Sep 23, 3:37 am)