/Ethereal-msm8939-beta9/arch/microblaze/boot/Makefile

https://bitbucket.org/MilosStamenkovic95/etherealos · Makefile · 37 lines · 24 code · 10 blank · 3 comment · 2 complexity · 0644f32a160c955538a4048f51c8fe26 MD5 · raw file

  1. #
  2. # arch/microblaze/boot/Makefile
  3. #
  4. targets := linux.bin linux.bin.gz simpleImage.%
  5. OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
  6. $(obj)/linux.bin: vmlinux FORCE
  7. $(call if_changed,objcopy)
  8. $(call if_changed,uimage)
  9. @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
  10. $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
  11. $(call if_changed,gzip)
  12. @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
  13. quiet_cmd_cp = CP $< $@$2
  14. cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
  15. quiet_cmd_strip = STRIP $@
  16. cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
  17. -K _fdt_start vmlinux -o $@
  18. UIMAGE_IN = $@
  19. UIMAGE_OUT = $@.ub
  20. UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
  21. $(obj)/simpleImage.%: vmlinux FORCE
  22. $(call if_changed,cp,.unstrip)
  23. $(call if_changed,objcopy)
  24. $(call if_changed,uimage)
  25. $(call if_changed,strip)
  26. @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
  27. clean-files += simpleImage.*.unstrip linux.bin.ub