Makefile 625 B

12345678910111213141516171819202122232425
  1. #
  2. # linux/arch/sh/boot/romimage/Makefile
  3. #
  4. # create an image suitable for burning to flash from zImage
  5. #
  6. targets := vmlinux head.o zeropage.bin piggy.o
  7. OBJECTS = $(obj)/head.o
  8. LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext 0 -e romstart \
  9. -T $(obj)/../../kernel/vmlinux.lds
  10. $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o FORCE
  11. $(call if_changed,ld)
  12. @:
  13. OBJCOPYFLAGS += -j .empty_zero_page
  14. $(obj)/zeropage.bin: vmlinux FORCE
  15. $(call if_changed,objcopy)
  16. LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T
  17. $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/zeropage.bin arch/sh/boot/zImage FORCE
  18. $(call if_changed,ld)