Re: [patch] remove obsolete HEAD in kbuild

From: Coywolf Qi Hunt (coywolf_at_greatcn.org)
Date: 08/18/04

  • Next message: Richard A Nelson: "2.6.8.1{,-mm1} boot failure on Athlon/A7V600"
    Date:	Wed, 18 Aug 2004 13:09:11 +0800
    To: Sam Ravnborg <sam@ravnborg.org>
    
    

    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/
    

  • Next message: Richard A Nelson: "2.6.8.1{,-mm1} boot failure on Athlon/A7V600"

    Relevant Pages

    • Re: 2.6.0-test1 ext3 slab/fs corruption
      ... NM> I woke up this morning and discovered that a compile had died due to I/O ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Possible dcache BUG
      ... During the compile, the above line output this warning: ... Copyright 2004 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Linux GPL and binary module exception clause?
      ... of them for every exported symbol in turn, ... hacked -E:) we don't need to compile for this, ... `...some suburbanite DSL customer who thinks kernel patches are some ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [patch, 2.6.10-rc2] sched: fix ->nr_uninterruptible handling bugs
      ... > it, run lmbench, then compile a SMP kernel, and run it again. ... The Athlon64 really shines doing atomic ops though, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Compiling cardbus devices monolithic doesnt work?
      ... I should compile a monolithic 2.4 kernel and see what it does...) ... > IIRC hermes provides the low level interface to the device, ... > provides a bridge between the PCMCIA subsystem and orinoco. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)