blob: fd9ccc5fea105eb24f554a4d3f19fe941cbd62a5 [file] [log] [blame]
Bryan Wu1394f032007-05-06 14:50:22 -07001#
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
9MKIMAGE := $(srctree)/scripts/mkuboot.sh
10
Mike Frysinger538067c2009-06-07 03:47:01 -040011targets := vmImage vmImage.bz2 vmImage.gz vmImage.lzma
12extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma
Bryan Wu1394f032007-05-06 14:50:22 -070013
14quiet_cmd_uimage = UIMAGE $@
15 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(ARCH) -O linux -T kernel \
Robin Getz985895b2009-06-17 08:12:54 -040016 -C $(2) -n '$(MACHINE)-$(KERNELRELEASE)' -a $(CONFIG_BOOT_LOAD) \
Mike Frysinger5cf77a52007-07-12 14:26:26 +080017 -e $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}') \
Bryan Wu1394f032007-05-06 14:50:22 -070018 -d $< $@
19
20$(obj)/vmlinux.bin: vmlinux FORCE
21 $(call if_changed,objcopy)
22
Mike Frysinger538067c2009-06-07 03:47:01 -040023$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
Bryan Wu1394f032007-05-06 14:50:22 -070024 $(call if_changed,gzip)
25
Mike Frysinger538067c2009-06-07 03:47:01 -040026$(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
32$(obj)/vmImage.bz2: $(obj)/vmlinux.bin.bz2
33 $(call if_changed,uimage,bzip2)
34
35$(obj)/vmImage.gz: $(obj)/vmlinux.bin.gz
36 $(call if_changed,uimage,gzip)
37
38$(obj)/vmImage.lzma: $(obj)/vmlinux.bin.lzma
39 $(call if_changed,uimage,lzma)
40
41suffix-$(CONFIG_KERNEL_GZIP) := gz
42suffix-$(CONFIG_KERNEL_BZIP2) := bz2
43suffix-$(CONFIG_KERNEL_LZMA) := lzma
44$(obj)/vmImage: $(obj)/vmImage.$(suffix-y)
45 @ln -sf $(notdir $<) $@
Mike Frysinger29cae112007-10-22 00:45:55 +080046
47install:
48 sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)"