Makefile 965 B

123456789101112131415161718192021222324252627282930313233
  1. # Makefile for the Sparc64 boot stuff.
  2. #
  3. # Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
  4. # Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
  5. ROOT_IMG := /usr/src/root.img
  6. ELFTOAOUT := elftoaout
  7. hostprogs-y := piggyback
  8. targets := image tftpboot.img vmlinux.aout
  9. quiet_cmd_elftoaout = ELF2AOUT $@
  10. cmd_elftoaout = $(ELFTOAOUT) vmlinux -o $@
  11. quiet_cmd_piggy = PIGGY $@
  12. cmd_piggy = $(obj)/piggyback $@ System.map $(ROOT_IMG)
  13. quiet_cmd_strip = STRIP $@
  14. cmd_strip = $(STRIP) -R .comment -R .note -K sun4u_init -K _end -K _start vmlinux -o $@
  15. # Actual linking
  16. $(obj)/image: vmlinux FORCE
  17. $(call if_changed,strip)
  18. @echo ' kernel: $@ is ready'
  19. $(obj)/tftpboot.img: vmlinux $(obj)/piggyback System.map $(ROOT_IMG) FORCE
  20. $(call if_changed,elftoaout)
  21. $(call if_changed,piggy)
  22. @echo ' kernel: $@ is ready'
  23. $(obj)/vmlinux.aout: vmlinux FORCE
  24. $(call if_changed,elftoaout)
  25. @echo ' kernel: $@ is ready'