Makefile 907 B

1234567891011121314151617181920212223242526272829303132
  1. #
  2. # arch/nios2/boot/Makefile
  3. #
  4. # This file is subject to the terms and conditions of the GNU General Public
  5. # License. See the file "COPYING" in the main directory of this archive
  6. # for more details.
  7. #
  8. UIMAGE_LOADADDR = $(shell $(NM) vmlinux | awk '$$NF == "_stext" {print $$1}')
  9. UIMAGE_ENTRYADDR = $(shell $(NM) vmlinux | awk '$$NF == "_start" {print $$1}')
  10. UIMAGE_COMPRESSION = gzip
  11. OBJCOPYFLAGS_vmlinux.bin := -O binary
  12. targets += vmlinux.bin vmlinux.gz vmImage
  13. $(obj)/vmlinux.bin: vmlinux FORCE
  14. $(call if_changed,objcopy)
  15. $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
  16. $(call if_changed,gzip)
  17. $(obj)/vmImage: $(obj)/vmlinux.gz FORCE
  18. $(call if_changed,uimage)
  19. @$(kecho) 'Kernel: $@ is ready'
  20. $(obj)/zImage: $(obj)/compressed/vmlinux FORCE
  21. $(call if_changed,objcopy)
  22. @$(kecho) 'Kernel: $@ is ready'
  23. $(obj)/compressed/vmlinux: $(obj)/vmlinux.gz FORCE
  24. $(Q)$(MAKE) $(build)=$(obj)/compressed $@