Re: [PATCH] Remove obsolete HEAD in top Makefile

From: Sam Ravnborg
Date: Sun Aug 15 2004 - 13:02:12 EST


On Sun, Aug 15, 2004 at 04:13:42PM +0200, Bernd Eckenfels wrote:
> On Sun, Aug 15, 2004 at 08:36:47PM +0800, Coywolf Qi Hunt wrote:
> > >iff it is not using it you need to remove it in the next line, too.
> > Nah, I'm only removing HEAD, not head-y. :p
>
> If you remove this line:
> head-y += $(HEAD)
>
> then head-y is undefined, and could therefore be removed, too. I dont know
> what HEAD was used for, and where does it come from. But since the 2.4 code
> uses head in a compareable way (i.e. only in that location with toetally
> differen s tructure) I am not sure if it is not needed.
>
> Can you explain what it was used for and why it can be removed now?
HEAD got replaced with head-y sometime in 2.5.
It's about time to rip out the last bits.

About head-y:
>From Documentation/kbuild/makefiles.txt:

The very first objects linked are listed in head-y, assigned by
arch/$(ARCH)/Makefile.

And later:

head-y, init-y, core-y, libs-y, drivers-y, net-y

$(head-y) list objects to be linked first in vmlinux.
$(libs-y) list directories where a lib.a archive can be located.
The rest list directories where a built-in.o object file can be located.

$(init-y) objects will be located after $(head-y).
Then the rest follows in this order:
$(core-y), $(libs-y), $(drivers-y) and $(net-y).


Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/