Re: [patch] remove obsolete HEAD in kbuild

From: Sam Ravnborg
Date: Tue Aug 17 2004 - 14:14:48 EST


On Tue, Aug 17, 2004 at 12:11:14PM +0800, Coywolf Qi Hunt wrote:
> Sam Ravnborg wrote:
>
> >On Mon, Aug 16, 2004 at 10:06:34AM +0800, Coywolf Qi Hunt wrote:
> >
> >
> >>diff -Nrup linux-2.6.8/arch/cris/Makefile
> >>linux-2.6.8-cy/arch/cris/Makefile
> >>--- linux-2.6.8/arch/cris/Makefile 2004-08-15 20:58:18.673278888 -0400
> >>+++ linux-2.6.8-cy/arch/cris/Makefile 2004-08-15
> >>20:59:30.109679014 -0400
> >>@@ -39,8 +39,6 @@ CFLAGS := $(subst -fomit-frame-pointer,,
> >>CFLAGS += -fno-omit-frame-pointer
> >>endif
> >>
> >>-HEAD := arch/$(ARCH)/$(SARCH)/kernel/head.o
> >>-
> >>LIBGCC = $(shell $(CC) $(CFLAGS) -print-file-name=libgcc.a)
> >>
> >>core-y += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/
> >>
> >>
> >
> >When you remove assignment to HEAD you need to replace
> >it with assignment to head-y.
> >
>
> No, we needn't. Some archs do not have head-y. They use core-y for head.o .
Looked and could not find it...
Adding head.o to extra-y does not get it compiled in.
To compile it in it needs to be listed in obj-y, and do not
confuse the three different head.S files.

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/