Makefile 930 B

12345678910111213141516171819202122232425262728293031
  1. #
  2. # arch/blackfin/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. MKIMAGE := $(srctree)/scripts/mkuboot.sh
  9. targets := vmImage
  10. extra-y += vmlinux.bin vmlinux.gz
  11. quiet_cmd_uimage = UIMAGE $@
  12. cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(ARCH) -O linux -T kernel \
  13. -C gzip -n 'Linux-$(KERNELRELEASE)' -a $(CONFIG_BOOT_LOAD) \
  14. -e $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}') \
  15. -d $< $@
  16. $(obj)/vmlinux.bin: vmlinux FORCE
  17. $(call if_changed,objcopy)
  18. $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE
  19. $(call if_changed,gzip)
  20. $(obj)/vmImage: $(obj)/vmlinux.gz
  21. $(call if_changed,uimage)
  22. @echo 'Kernel: $@ is ready'
  23. install:
  24. sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)"