blob: 5e4acd253b300db5ed40af0f9a424b0493f4de6c [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# linux/arch/arm/boot/bootp/Makefile
3#
Paul Smith4f193362006-03-05 17:14:10 -05004# This file is included by the global makefile so that you can add your own
5# architecture-specific flags and dependencies.
6#
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
Vincent Sanders75c34902014-09-18 20:39:15 +01008GCOV_PROFILE := n
9
Linus Torvalds1da177e2005-04-16 15:20:36 -070010LDFLAGS_bootp :=-p --no-undefined -X \
11 --defsym initrd_phys=$(INITRD_PHYS) \
12 --defsym params_phys=$(PARAMS_PHYS) -T
13AFLAGS_initrd.o :=-DINITRD=\"$(INITRD)\"
14
15targets := bootp init.o kernel.o initrd.o
16
17# Note that bootp.lds picks up kernel.o and initrd.o
18$(obj)/bootp: $(src)/bootp.lds $(addprefix $(obj)/,init.o kernel.o initrd.o) FORCE
19 $(call if_changed,ld)
Linus Torvalds1da177e2005-04-16 15:20:36 -070020
21# kernel.o and initrd.o includes a binary image using
22# .incbin, a dependency which is not tracked automatically
23
24$(obj)/kernel.o: arch/arm/boot/zImage FORCE
25
26$(obj)/initrd.o: $(INITRD) FORCE
27
Masahiro Yamada1c44b282016-04-08 11:16:10 +090028PHONY += $(INITRD)