kbuild 2.5 build times vary from 10% faster to 100% slower, depending
on the number of objects being compiled. There are some O(n^2)
algorithms in kbuild 2.5, I know where they are and how to fix them, it
just takes time that I don't have right now. At the moment I am
concentrating on correctness for kbuild 2.5. MEC mantra:
Correctness comes first.
Then maintainability.
Then speed.
>> module.h currently uses the full UTS_RELEASE which includes
>> EXTRAVERSION but that is spurious, modutils ignores EXTRAVERSION when
>> loading a module. modutils only cares about VERSION, PATCHLEVEL and
>> SUBLEVEL.
>
>Well again EXTRAVERSION was just an example, SUBLEVEL was the same
>problem as EXTRAVERSION for me, I mean after you apply an -ac patch that
>for example goes backwards in the SUBLEVEL, do you recompile everything
>or do you just run make after your Makefile patch is applied to the
>kernel?
Changing VERSION, PATCHLEVEL or SUBLEVEL requires a recompile of
anything that tests LINUX_VERSION_CODE, including everything that
includes module.h. That already occurs because the timestamp of
include/linux/version.h changes. I pointed this out in the patch
notes.
My patch to the Makefile does not (cannot) change the dependencies on
LINUX_VERSION_CODE. I am removing the spurious recompiles caused by
changing EXTRAVERSION and by changing lines in the top level Makefile
that do not directly affect objects. With my patch only the required
objects are rebuilt.
BTW, how can you apply a -ac patch that sets SUBLEVEL backwards? -ac
patches are against the Linus tree with the same VERSION, PATCHLEVEL
and SUBLEVEL.
-
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/