![]() | ||||||||||
Messages in this thread |
On Thu, May 04, 2006 at 09:52:56PM -0400, Dan Merillat wrote: > I must be an idiot, but why does Kbuild rebuild every file when > cross-compiling? > I'm not editing .config or touching any headers, I'm making tweaks to > a single .c driver, > and it is taking forever due to continual full-rebuilds. > > building on i386 for ARCH=arm CROSS_COMPILE=arm-linux-uclibc- > > I tried following the logic, but everything is a forced build using > if_changed and if_changed_dep, and I can't read GNU Make well enough > to figure out what it thinks is new. I know make -d says all the > dependancies are up-to-date, so it's being forced some other way. kbuild checks for any differences in the commandline alos - so a rebuild happens if you change options to gcc (think -O2 => -Os). If you experience that for example mm/slab.c is rebuild then try to do the following: cp mm/.slab.o.cmd foo make mm/ diff -u foo mm/.slab.o.cmd If diff detects any difference then you know why and need to find out why there is a difference. Btw. what make version and what kernel version are you compiling? There was some inconsistency in kbuild that triggered with make 3.81-rc1 and which will trigger with make 3.82-cvs also. This issue was only fixed lately - recall it was for 2.6.16 Sam - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | |||||||||
| Last update: 2006-05-05 04:57 [from the cache] ©2003-2008 | ||||||||||