missing deps in arch/ppc64/boot

Olaf Hering olh at suse.de
Sun May 8 20:07:02 EST 2005


 On Sun, May 08, Sam Ravnborg wrote:

> >
> > Sam,
> >
> > touching arch/ppc64/boot/zlib.h will not cause a rebuild of
> > arch/ppc64/boot/zlib.o. Any ideas what is missing?
> 
> Browsing the Makefile it looks like none of the targets derived from
> src-boot are assingen to "targets".
> You need to tell kbuild which targets exits in a given directory, this
> is done by assigned the .o name to targets.

This does not help. Maybe targets is reset for some reason?
But this patch works:


Index: linux-2.6.12-rc4-olh/arch/ppc64/boot/Makefile
===================================================================
--- linux-2.6.12-rc4-olh.orig/arch/ppc64/boot/Makefile
+++ linux-2.6.12-rc4-olh/arch/ppc64/boot/Makefile
@@ -28,6 +28,7 @@ BOOTLFLAGS	:= -Ttext 0x00400000 -e _star
 OBJCOPYFLAGS    := contents,alloc,load,readonly,data
 
 src-boot := crt0.S string.S prom.c main.c zlib.c imagesize.c div64.S
+targets-boot  := $(addsuffix .o, $(basename $(src-boot)))
 src-boot := $(addprefix $(obj)/, $(src-boot))
 obj-boot := $(addsuffix .o, $(basename $(src-boot)))
 
@@ -54,6 +55,7 @@ gz-sec  = $(foreach section, $(1), $(pat
 
 hostprogs-y		:= addnote addRamDisk
 targets 		+= zImage zImage.initrd imagesize.c \
+			   $(targets-boot) \
 			   $(patsubst $(obj)/%,%, $(call obj-sec, $(required) $(initrd))) \
 			   $(patsubst $(obj)/%,%, $(call src-sec, $(required) $(initrd))) \
 			   $(patsubst $(obj)/%,%, $(call gz-sec, $(required) $(initrd))) \



More information about the Linuxppc64-dev mailing list