public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Makefile asking for mrproper on new checkout with KBUILD_OUTPUT
@ 2010-06-16 22:05 Boaz Harrosh
  2010-06-17  8:43 ` Michal Marek
  0 siblings, 1 reply; 3+ messages in thread
From: Boaz Harrosh @ 2010-06-16 22:05 UTC (permalink / raw)
  To: Michal Marek, linux-kernel


I get this problem: When a few Header files are changed, like when doing
a git checkout the Makefile is complaining about mrproper needed.

Now I'm building a:
	make ARCH=arch KBUILD_OUTPUT=.build_arch/

But a: 
	make ARCH=arch KBUILD_OUTPUT=.build_arch/ mrproper

Will not help. What the Makefile wants is a:
	make mrproper

doing the "make mrproper" does solves it.
It used to be fine, I'm not sure when it started to break.

How can I debug this to see what is the offending files?

Thanks
Boaz


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Makefile asking for mrproper on new checkout with KBUILD_OUTPUT
  2010-06-16 22:05 Makefile asking for mrproper on new checkout with KBUILD_OUTPUT Boaz Harrosh
@ 2010-06-17  8:43 ` Michal Marek
  2010-06-17 15:45   ` Boaz Harrosh
  0 siblings, 1 reply; 3+ messages in thread
From: Michal Marek @ 2010-06-17  8:43 UTC (permalink / raw)
  To: Boaz Harrosh; +Cc: linux-kernel

On 17.6.2010 00:05, Boaz Harrosh wrote:
> 
> I get this problem: When a few Header files are changed, like when doing
> a git checkout the Makefile is complaining about mrproper needed.
> 
> Now I'm building a:
> 	make ARCH=arch KBUILD_OUTPUT=.build_arch/
> 
> But a: 
> 	make ARCH=arch KBUILD_OUTPUT=.build_arch/ mrproper
> 
> Will not help. What the Makefile wants is a:
> 	make mrproper
> 
> doing the "make mrproper" does solves it.
> It used to be fine, I'm not sure when it started to break.
> 
> How can I debug this to see what is the offending files?

The makefile errors out if the source directory is configured (*),
because having random object files in the source directory would confuse
the VPATH build.

(*) Means: either .config or include/config exists

Michal

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Makefile asking for mrproper on new checkout with KBUILD_OUTPUT
  2010-06-17  8:43 ` Michal Marek
@ 2010-06-17 15:45   ` Boaz Harrosh
  0 siblings, 0 replies; 3+ messages in thread
From: Boaz Harrosh @ 2010-06-17 15:45 UTC (permalink / raw)
  To: Michal Marek; +Cc: linux-kernel

On 06/17/2010 04:43 AM, Michal Marek wrote:
> On 17.6.2010 00:05, Boaz Harrosh wrote:
>>
>> I get this problem: When a few Header files are changed, like when doing
>> a git checkout the Makefile is complaining about mrproper needed.
>>
>> Now I'm building a:
>> 	make ARCH=arch KBUILD_OUTPUT=.build_arch/
>>
>> But a: 
>> 	make ARCH=arch KBUILD_OUTPUT=.build_arch/ mrproper
>>
>> Will not help. What the Makefile wants is a:
>> 	make mrproper
>>
>> doing the "make mrproper" does solves it.
>> It used to be fine, I'm not sure when it started to break.
>>
>> How can I debug this to see what is the offending files?
> 
> The makefile errors out if the source directory is configured (*),
> because having random object files in the source directory would confuse
> the VPATH build.
> 
> (*) Means: either .config or include/config exists
> 

OK, Thanks. What I see is that when I do:
make ARCH=um KBUILD_OUTPUT=.build_um INSTALL_MOD_PATH=$FS_LOCAL_MOUNT modules_install

I get a phantom empty include/config directory. The INSTALL_MOD_PATH=$FS_LOCAL_MOUNT is
because I'm installing into the uml image file.

This only happens when some include/... header files changed since the last make.
The "make ARCH=um KBUILD_OUTPUT=.build_um" stage is fine only after the modules_install
stage it appears.

> Michal

Thanks
Boaz

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-17 15:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-16 22:05 Makefile asking for mrproper on new checkout with KBUILD_OUTPUT Boaz Harrosh
2010-06-17  8:43 ` Michal Marek
2010-06-17 15:45   ` Boaz Harrosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox