Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 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 | |
| 9 | MKIMAGE := $(srctree)/scripts/mkuboot.sh |
| 10 | |
| 11 | targets := vmImage |
| 12 | extra-y += vmlinux.bin vmlinux.gz |
| 13 | |
| 14 | quiet_cmd_uimage = UIMAGE $@ |
| 15 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(ARCH) -O linux -T kernel \ |
Mike Frysinger | 5cf77a5 | 2007-07-12 14:26:26 +0800 | [diff] [blame] | 16 | -C gzip -n 'Linux-$(KERNELRELEASE)' -a $(CONFIG_BOOT_LOAD) \ |
| 17 | -e $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}') \ |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 18 | -d $< $@ |
| 19 | |
| 20 | $(obj)/vmlinux.bin: vmlinux FORCE |
| 21 | $(call if_changed,objcopy) |
| 22 | |
| 23 | $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE |
| 24 | $(call if_changed,gzip) |
| 25 | |
| 26 | $(obj)/vmImage: $(obj)/vmlinux.gz |
| 27 | $(call if_changed,uimage) |
Mike Frysinger | fd54f50 | 2008-11-06 03:31:35 -0500 | [diff] [blame] | 28 | @$(kecho) 'Kernel: $@ is ready' |
Mike Frysinger | 29cae11 | 2007-10-22 00:45:55 +0800 | [diff] [blame] | 29 | |
| 30 | install: |
| 31 | sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)" |