Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. MKIMAGE := $(srctree)/scripts/mkuboot.sh
  14. targets := Image zImage uImage
  15. $(obj)/Image: vmlinux FORCE
  16. $(call if_changed,objcopy)
  17. @echo ' Kernel: $@ is ready'
  18. $(obj)/compressed/vmlinux: $(obj)/Image FORCE
  19. $(Q)$(MAKE) $(build)=$(obj)/compressed $@
  20. $(obj)/zImage: $(obj)/compressed/vmlinux FORCE
  21. $(call if_changed,objcopy)
  22. @echo ' Kernel: $@ is ready'
  23. quiet_cmd_uimage = UIMAGE $@
  24. cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A unicore -O linux -T kernel \
  25. -C none -a $(LOADADDR) -e $(STARTADDR) \
  26. -n 'Linux-$(KERNELRELEASE)' -d $< $@
  27. $(obj)/uImage: LOADADDR=0x0
  28. $(obj)/uImage: STARTADDR=$(LOADADDR)
  29. $(obj)/uImage: $(obj)/zImage FORCE
  30. $(call if_changed,uimage)
  31. @echo ' Image $@ is ready'
  32. PHONY += initrd FORCE
  33. initrd:
  34. @test "$(INITRD)" != "" || \
  35. (echo You must specify INITRD; exit -1)
  36. subdir- := compressed