[lkml]   [2003]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
SubjectRe: [PATCH] Update fs Makefiles
On Tue, May 20, 2003 at 09:47:22AM -0500, Kai Germaschewski wrote:
> OTOH, 2.4 does only support "-objs", so people may get confused anyway,
> and annoyed about having two different Makefiles to maintain in 2.4 and
> 2.5. Then again, the Makefiles between 2.4 and 2.5 have other differences
> already, and since they're small and rarely changing, maintaining two sets
> isn't so much of a pain.

When we shifted syntax for the kernel configuration people di
not complain about compatibility with 2.4. Why not?
Because it is trivial to maintain two simple files with different
namings: for 2.4
Kconfig for 2.5

For the Makefiles we have seen a slow shift in syntax, with more and
more being deprecated. So it is becoming a bit annoying to
maintain 2.4 and 2.5 compatibility in the same file.

In 2.5 introduce a new default filename for kbuild Makefiles:


Then a driver would have:
2.4, and Makefile
2.5 Kconfig and Kmakefile

This would also allow us to do some simplification of the top-level
Makefile by moving the last steps of building vmlinux out to a seperate
Kmakefile - but this is added bonus, the real driver for this change
would be less hassle for 2.4/2.5 compatbility.



The patch is trivial.

===== scripts/ 1.36 vs edited =====
--- 1.36/scripts/ Thu May 8 22:34:28 2003
+++ edited/scripts/ Tue May 20 20:31:33 2003
@@ -11,7 +11,7 @@
include .config

-include $(obj)/Makefile
+include $(if $(wildcard $(obj)/Kmakefile),$(obj)/Kmakefile,$(obj)/Makefile)

include scripts/Makefile.lib

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2005-03-22 13:35    [W:0.090 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site