On Mon, 3 Dec 2001 19:42:15 -0500, 
Ghozlane Toumi <[EMAIL PROTECTED]> wrote:
>How hard is the translation from 2.4 to 2.5 ?
>
>I happen to be using an alpha as my main computer, but i'm quite new to this 
>arch, so if the conversion doesn't require heavy guruness i guess i can 
>help.. if not, i can at least test ...

Download the kbuild 2.5 patches, including the ia64 and sparc patches.
Read Documentation/kbuild/kbuild-2.5.txt under "Converting old kbuild
Makefiles" and look at the arch specific patches for examples.

I just had a quick look at arch/alpha makefiles.

kernel/Makefile - no obvious conversion problems.  asm_offsets moves to
arch/alpha and is renamed to asm-offsets using the standard code.

lib/Makefile - no obvious conversion problems.  Some of the lib objects
need uses_asm_offsets(), grep for asm_offset and change, see the sparc
patches for nice examples.  lib uses the technique of compiling one
source several times with different options, that is a special case
that breaks the dependency tree.  In 2.5 you create small files which
contain #define and #include lines, no special case, full dependency
tracking, see ia64 patch for examples.

math-emu/Makefile - should be easy.

mm/Makefile - trivial.

Makefile - split into Makefile.defs.config, Makefile.defs.noconfig,
Makefile.in as for any otehr architecture.  ia64 and sparc are good
examples.

boot/Makefile - boot is always the hardest to convert because every one
is full of special cases, alpha is no exception.  One of the rules for
kbuild 2.5 is "build local, link global".  Makefiles must not create
objects in other directories, when you want to find out how an object
is created you look at the Makefile.in in the same directory.  alpha
boot breaks that rule, it creates objects in the tools sub directory,
the build of the tools must be moved to tools/Makefile.in.  The
bootloader build is converted using base_target() and select() rules,
see arch/i386/boot/Makefile.in for examples.


_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to