Makefile 953 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # arch/unicore32/boot/Makefile
  3. #
  4. # This file is included by the global makefile so that you can add your own
  5. # architecture-specific flags and dependencies.
  6. #
  7. # This file is subject to the terms and conditions of the GNU General Public
  8. # License. See the file "COPYING" in the main directory of this archive
  9. # for more details.
  10. #
  11. # Copyright (C) 2001~2010 GUAN Xue-tao
  12. #
  13. targets := Image zImage uImage
  14. $(obj)/Image: vmlinux FORCE
  15. $(call if_changed,objcopy)
  16. @echo ' Kernel: $@ is ready'
  17. $(obj)/compressed/vmlinux: $(obj)/Image FORCE
  18. $(Q)$(MAKE) $(build)=$(obj)/compressed $@
  19. $(obj)/zImage: $(obj)/compressed/vmlinux FORCE
  20. $(call if_changed,objcopy)
  21. @echo ' Kernel: $@ is ready'
  22. UIMAGE_ARCH = unicore
  23. UIMAGE_LOADADDR = 0x0
  24. $(obj)/uImage: $(obj)/zImage FORCE
  25. $(call if_changed,uimage)
  26. @echo ' Image $@ is ready'
  27. PHONY += initrd FORCE
  28. initrd:
  29. @test "$(INITRD)" != "" || \
  30. (echo You must specify INITRD; exit -1)
  31. subdir- := compressed