18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci#
38c2ecf20Sopenharmony_ci# linux/arch/arm/boot/bootp/Makefile
48c2ecf20Sopenharmony_ci#
58c2ecf20Sopenharmony_ci# This file is included by the global makefile so that you can add your own
68c2ecf20Sopenharmony_ci# architecture-specific flags and dependencies.
78c2ecf20Sopenharmony_ci#
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciGCOV_PROFILE	:= n
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciLDFLAGS_bootp	:= --no-undefined -X \
128c2ecf20Sopenharmony_ci		 --defsym initrd_phys=$(INITRD_PHYS) \
138c2ecf20Sopenharmony_ci		 --defsym params_phys=$(PARAMS_PHYS) -T
148c2ecf20Sopenharmony_ciAFLAGS_initrd.o :=-DINITRD=\"$(INITRD)\"
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_citargets	:= bootp init.o kernel.o initrd.o
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci# Note that bootp.lds picks up kernel.o and initrd.o
198c2ecf20Sopenharmony_ci$(obj)/bootp:	$(src)/bootp.lds $(addprefix $(obj)/,init.o kernel.o initrd.o) FORCE
208c2ecf20Sopenharmony_ci	$(call if_changed,ld)
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci# kernel.o and initrd.o includes a binary image using
238c2ecf20Sopenharmony_ci# .incbin, a dependency which is not tracked automatically
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci$(obj)/kernel.o: arch/arm/boot/zImage FORCE
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci$(obj)/initrd.o: $(INITRD) FORCE
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ciPHONY += $(INITRD)
30