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 | |
Mike Frysinger | b2e8dbd | 2009-10-26 21:16:04 +0000 | [diff] [blame] | 11 | targets := vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma |
Mike Frysinger | 538067c | 2009-06-07 03:47:01 -0400 | [diff] [blame] | 12 | extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 13 | |
| 14 | quiet_cmd_uimage = UIMAGE $@ |
| 15 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(ARCH) -O linux -T kernel \ |
Robin Getz | 985895b | 2009-06-17 08:12:54 -0400 | [diff] [blame] | 16 | -C $(2) -n '$(MACHINE)-$(KERNELRELEASE)' -a $(CONFIG_BOOT_LOAD) \ |
Mike Frysinger | 5cf77a5 | 2007-07-12 14:26:26 +0800 | [diff] [blame] | 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 | |
Mike Frysinger | 538067c | 2009-06-07 03:47:01 -0400 | [diff] [blame] | 23 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 24 | $(call if_changed,gzip) |
| 25 | |
Mike Frysinger | 538067c | 2009-06-07 03:47:01 -0400 | [diff] [blame] | 26 | $(obj)/vmlinux.bin.bz2: $(obj)/vmlinux.bin FORCE |
| 27 | $(call if_changed,bzip2) |
| 28 | |
| 29 | $(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE |
| 30 | $(call if_changed,lzma) |
| 31 | |
Mike Frysinger | b2e8dbd | 2009-10-26 21:16:04 +0000 | [diff] [blame] | 32 | $(obj)/vmImage.bin: $(obj)/vmlinux.bin |
| 33 | $(call if_changed,uimage,none) |
| 34 | |
Mike Frysinger | 538067c | 2009-06-07 03:47:01 -0400 | [diff] [blame] | 35 | $(obj)/vmImage.bz2: $(obj)/vmlinux.bin.bz2 |
| 36 | $(call if_changed,uimage,bzip2) |
| 37 | |
| 38 | $(obj)/vmImage.gz: $(obj)/vmlinux.bin.gz |
| 39 | $(call if_changed,uimage,gzip) |
| 40 | |
| 41 | $(obj)/vmImage.lzma: $(obj)/vmlinux.bin.lzma |
| 42 | $(call if_changed,uimage,lzma) |
| 43 | |
Mike Frysinger | b2e8dbd | 2009-10-26 21:16:04 +0000 | [diff] [blame] | 44 | suffix-y := bin |
Mike Frysinger | 538067c | 2009-06-07 03:47:01 -0400 | [diff] [blame] | 45 | suffix-$(CONFIG_KERNEL_GZIP) := gz |
| 46 | suffix-$(CONFIG_KERNEL_BZIP2) := bz2 |
| 47 | suffix-$(CONFIG_KERNEL_LZMA) := lzma |
| 48 | $(obj)/vmImage: $(obj)/vmImage.$(suffix-y) |
| 49 | @ln -sf $(notdir $<) $@ |
Mike Frysinger | 29cae11 | 2007-10-22 00:45:55 +0800 | [diff] [blame] | 50 | |
| 51 | install: |
| 52 | sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)" |