Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
| 2 | # linux/arch/arm/boot/bootp/Makefile |
| 3 | # |
Paul Smith | 4f19336 | 2006-03-05 17:14:10 -0500 | [diff] [blame] | 4 | # This file is included by the global makefile so that you can add your own |
| 5 | # architecture-specific flags and dependencies. |
| 6 | # |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | |
| 8 | LDFLAGS_bootp :=-p --no-undefined -X \ |
| 9 | --defsym initrd_phys=$(INITRD_PHYS) \ |
| 10 | --defsym params_phys=$(PARAMS_PHYS) -T |
| 11 | AFLAGS_initrd.o :=-DINITRD=\"$(INITRD)\" |
| 12 | |
| 13 | targets := bootp init.o kernel.o initrd.o |
| 14 | |
| 15 | # Note that bootp.lds picks up kernel.o and initrd.o |
| 16 | $(obj)/bootp: $(src)/bootp.lds $(addprefix $(obj)/,init.o kernel.o initrd.o) FORCE |
| 17 | $(call if_changed,ld) |
| 18 | @: |
| 19 | |
| 20 | # kernel.o and initrd.o includes a binary image using |
| 21 | # .incbin, a dependency which is not tracked automatically |
| 22 | |
| 23 | $(obj)/kernel.o: arch/arm/boot/zImage FORCE |
| 24 | |
| 25 | $(obj)/initrd.o: $(INITRD) FORCE |
| 26 | |
Paul Smith | 4f19336 | 2006-03-05 17:14:10 -0500 | [diff] [blame] | 27 | PHONY += $(INITRD) FORCE |