public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [regressions] Re: kbuild: save ARCH & CROSS_COMPILE when building a kernel
@ 2009-10-03 10:34 Ingo Molnar
  2009-10-04 19:17 ` Sam Ravnborg
  2009-10-09  8:58 ` Peter Zijlstra
  0 siblings, 2 replies; 11+ messages in thread
From: Ingo Molnar @ 2009-10-03 10:34 UTC (permalink / raw)
  To: Sam Ravnborg, Linus Torvalds; +Cc: linux-kernel


Sam,

that arch-cache thing introduced in:

 5755433: kbuild: save ARCH & CROSS_COMPILE when building a kernel

isnt working very well in my experience.

1) it's a nuisance in cross-builds (it broke several cross-build scripts 
   of mine)

2) it makes it hard to switch from 32-bit x86 builds to 64-bit ones: 
   previously i only needed 'make ARCH=i386 defconfig' and off we went - 
   now i have to add a 'make mrproper' step.

3) it can also get stuck:

  phoenix:~/linux/linux> make mrproper
  Makefile:571: /home/mingo/tip/arch/no/Makefile: No such file or directory
  make: *** No rule to make target `/home/mingo/tip/arch/no/Makefile'.  Stop.

  phoenix:~/linux/linux> cat include/generated/*
  no

  phoenix:~/linux/linux> 

 There's no way out of this state, only if i manually remove 
 include/generated. (i suspect this is fixable)

Dunno - why isnt the .config enough in terms of determining which 
architecture we are on? If we want more info we should put it into the 
.config - not some other hidden state. I do think a single file should 
carry all 'configuration state' - that makes it easier to reproduce 
things, etc. etc. Everything else is really just hindering us.

	Ingo

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

end of thread, other threads:[~2009-10-12 21:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-03 10:34 [regressions] Re: kbuild: save ARCH & CROSS_COMPILE when building a kernel Ingo Molnar
2009-10-04 19:17 ` Sam Ravnborg
2009-10-09  9:26   ` Ingo Molnar
2009-10-11 21:35     ` Sam Ravnborg
2009-10-12 20:44       ` Ingo Molnar
2009-10-12 21:08         ` Sam Ravnborg
2009-10-12 21:12           ` Ingo Molnar
2009-10-09  8:58 ` Peter Zijlstra
2009-10-09  9:23   ` Ingo Molnar
2009-10-09 11:41   ` Peter Zijlstra
2009-10-11  9:05   ` Pavel Machek

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