]> git.hungrycats.org Git - linux/commitdiff
[ARM] Fix two makefile problems
authorRussell King <rmk@flint.arm.linux.org.uk>
Mon, 9 Aug 2004 19:22:30 +0000 (20:22 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Mon, 9 Aug 2004 19:22:30 +0000 (20:22 +0100)
- bootp.lds is a source file not a target
- vmlinux.lds doesn't need to depend on the top level Makefile

arch/arm/boot/bootp/Makefile
arch/arm/boot/compressed/Makefile

index 6318bc963d9636fb3635b28c64f0baeee761cfde..8e8879b6b3d786fa62c8baa49c49a52a4129ed48 100644 (file)
@@ -7,10 +7,10 @@ LDFLAGS_bootp :=-p --no-undefined -X \
                 --defsym params_phys=$(PARAMS_PHYS) -T
 AFLAGS_initrd.o :=-DINITRD=\"$(INITRD)\"
 
-targets        := bootp bootp.lds init.o kernel.o initrd.o
+targets        := bootp init.o kernel.o initrd.o
 
 # Note that bootp.lds picks up kernel.o and initrd.o
-$(obj)/bootp:  $(addprefix $(obj)/,bootp.lds init.o kernel.o initrd.o) FORCE
+$(obj)/bootp:  $(src)/bootp.lds $(addprefix $(obj)/,init.o kernel.o initrd.o) FORCE
        $(call if_changed,ld)
        @:
 
index 4b5a13f93b6b9ad0678ec24672b5e2dce3618085..951fbf6e81f8cf556d97c9510e624f36edebfd8c 100644 (file)
@@ -101,7 +101,7 @@ $(obj)/piggy.o:  $(obj)/piggy.gz FORCE
 CFLAGS_font.o := -Dstatic=
 $(obj)/font.o: $(FONTC)
 
-$(obj)/vmlinux.lds: $(obj)/vmlinux.lds.in Makefile arch/arm/boot/Makefile .config
+$(obj)/vmlinux.lds: $(obj)/vmlinux.lds.in arch/arm/boot/Makefile .config
        @sed "$(SEDFLAGS)" < $< > $@
 
 $(obj)/misc.o: $(obj)/misc.c include/asm/arch/uncompress.h lib/inflate.c