lkml.org 
[lkml]   [2004]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [patch] remove obsolete HEAD in kbuild
Sam Ravnborg wrote:

>On Tue, Aug 17, 2004 at 12:11:14PM +0800, Coywolf Qi Hunt wrote:
>
>
>>No, we needn't. Some archs do not have head-y. They use core-y for head.o .
>>
>>

Sorry for my wrongness.

I felt _quit_ sure when I was saying that stupidity in the morning when
I just woke up.
I was hesitating to look into it, but I didn't. It seemed so real to me
then.
Maybe I dreamed I found that. It's possible for one who thinks of kernel
issuses day to day.

What a shame. I nearly break kbuild on cris. :-(

>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
>

Makefile: remove obsolete HEAD
arch/cris/Makefile: replace HEAD with assignment to head-y


Signed-off-by: Coywolf Qi Hunt <coywolf@greatcn.org>

Makefile | 1 -
arch/cris/Makefile | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff -Nrup linux-2.6.8/Makefile linux-2.6.8-cy/Makefile
--- linux-2.6.8/Makefile 2004-08-15 05:46:21.000000000 -0400
+++ linux-2.6.8-cy/Makefile 2004-08-15 05:46:41.000000000 -0400
@@ -506,7 +506,6 @@ libs-y := $(libs-y1) $(libs-y2)
# normal descending-into-subdirs phase, since at that time
# we cannot yet know if we will need to relink vmlinux.
# So we descend into init/ inside the rule for vmlinux again.
-head-y += $(HEAD)
vmlinux-objs := $(head-y) $(init-y) $(core-y) $(libs-y) $(drivers-y) $(net-y)

quiet_cmd_vmlinux__ = LD $@
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.000000000 -0400
+++ linux-2.6.8-cy/arch/cris/Makefile 2004-08-17 22:48:39.671201824 -0400
@@ -39,7 +39,7 @@ CFLAGS := $(subst -fomit-frame-pointer,,
CFLAGS += -fno-omit-frame-pointer
endif

-HEAD := arch/$(ARCH)/$(SARCH)/kernel/head.o
+head-y := arch/$(ARCH)/$(SARCH)/kernel/head.o

LIBGCC = $(shell $(CC) $(CFLAGS) -print-file-name=libgcc.a)

--
Coywolf Qi Hunt
Homepage http://greatcn.org/~coywolf/
Admin of http://GreatCN.org and http://LoveCN.org

-
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/

\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.548 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site