Makefile 801 B

1234567891011121314151617181920212223242526272829
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # linux/arch/arm/boot/bootp/Makefile
  4. #
  5. # This file is included by the global makefile so that you can add your own
  6. # architecture-specific flags and dependencies.
  7. #
  8. GCOV_PROFILE := n
  9. LDFLAGS_bootp :=-p --no-undefined -X \
  10. --defsym initrd_phys=$(INITRD_PHYS) \
  11. --defsym params_phys=$(PARAMS_PHYS) -T
  12. AFLAGS_initrd.o :=-DINITRD=\"$(INITRD)\"
  13. targets := bootp init.o kernel.o initrd.o
  14. # Note that bootp.lds picks up kernel.o and initrd.o
  15. $(obj)/bootp: $(src)/bootp.lds $(addprefix $(obj)/,init.o kernel.o initrd.o) FORCE
  16. $(call if_changed,ld)
  17. # kernel.o and initrd.o includes a binary image using
  18. # .incbin, a dependency which is not tracked automatically
  19. $(obj)/kernel.o: arch/arm/boot/zImage FORCE
  20. $(obj)/initrd.o: $(INITRD) FORCE
  21. PHONY += $(INITRD)