| # arch/blackfin/boot/Makefile |
| # This file is subject to the terms and conditions of the GNU General Public |
| # License. See the file "COPYING" in the main directory of this archive |
| MKIMAGE := $(srctree)/scripts/mkuboot.sh |
| extra-y += vmlinux.bin vmlinux.gz |
| quiet_cmd_uimage = UIMAGE $@ |
| cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(ARCH) -O linux -T kernel \ |
| -C gzip -n 'Linux-$(KERNELRELEASE)' -a $(CONFIG_BOOT_LOAD) \ |
| -e $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}') \ |
| $(obj)/vmlinux.bin: vmlinux FORCE |
| $(call if_changed,objcopy) |
| $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE |
| $(obj)/vmImage: $(obj)/vmlinux.gz |
| $(call if_changed,uimage) |
| @$(kecho) 'Kernel: $@ is ready' |
| sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)" |