Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / arch / arm / boot / bootp / Makefile
index 4014436..c394e30 100644 (file)
@@ -1,22 +1,27 @@
 #
 # linux/arch/arm/boot/bootp/Makefile
 #
+# This file is included by the global makefile so that you can add your own
+# architecture-specific flags and dependencies.
+#
 
-ZSYSTEM                = arch/arm/boot/zImage
-ZLDFLAGS       =-p -X -T $(obj)/bootp.lds \
-                --defsym initrd_addr=$(INITRD_PHYS) \
-                --defsym params=$(PARAMS_PHYS)
+LDFLAGS_bootp  :=-p --no-undefined -X \
+                --defsym initrd_phys=$(INITRD_PHYS) \
+                --defsym params_phys=$(PARAMS_PHYS) -T
+AFLAGS_initrd.o :=-DINITRD=\"$(INITRD)\"
 
-extra-y := bootp
+targets        := bootp init.o kernel.o initrd.o
 
 # Note that bootp.lds picks up kernel.o and initrd.o
-$(obj)/bootp:  $(addprefix $(obj)/,init.o kernel.o initrd.o bootp.lds)
-               $(LD) $(ZLDFLAGS) -o $@ $(obj)/init.o
+$(obj)/bootp:  $(src)/bootp.lds $(addprefix $(obj)/,init.o kernel.o initrd.o) FORCE
+       $(call if_changed,ld)
+       @:
+
+# kernel.o and initrd.o includes a binary image using
+# .incbin, a dependency which is not tracked automatically
 
-$(obj)/kernel.o: $(ZSYSTEM)
-               $(LD) -r -s -o $@ -b binary $(ZSYSTEM)
+$(obj)/kernel.o: arch/arm/boot/zImage FORCE
 
-$(obj)/initrd.o: $(INITRD)
-               $(LD) -r -s -o $@ -b binary $(INITRD)
+$(obj)/initrd.o: $(INITRD) FORCE
 
-.PHONY:                $(INITRD) $(ZSYSTEM)
+PHONY += $(INITRD) FORCE