Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 vmImage.bz2 vmImage.gz vmImage.lzma
  10. extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma
  11. quiet_cmd_uimage = UIMAGE $@
  12. cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(ARCH) -O linux -T kernel \
  13. -C $(2) -n '$(MACHINE)-$(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.bin.gz: $(obj)/vmlinux.bin FORCE
  19. $(call if_changed,gzip)
  20. $(obj)/vmlinux.bin.bz2: $(obj)/vmlinux.bin FORCE
  21. $(call if_changed,bzip2)
  22. $(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE
  23. $(call if_changed,lzma)
  24. $(obj)/vmImage.bz2: $(obj)/vmlinux.bin.bz2
  25. $(call if_changed,uimage,bzip2)
  26. $(obj)/vmImage.gz: $(obj)/vmlinux.bin.gz
  27. $(call if_changed,uimage,gzip)
  28. $(obj)/vmImage.lzma: $(obj)/vmlinux.bin.lzma
  29. $(call if_changed,uimage,lzma)
  30. suffix-$(CONFIG_KERNEL_GZIP) := gz
  31. suffix-$(CONFIG_KERNEL_BZIP2) := bz2
  32. suffix-$(CONFIG_KERNEL_LZMA) := lzma
  33. $(obj)/vmImage: $(obj)/vmImage.$(suffix-y)
  34. @ln -sf $(notdir $<) $@
  35. install:
  36. sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)"