Merge branch 'for-linus-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/mason...
[deliverable/linux.git] / arch / blackfin / boot / Makefile
CommitLineData
1394f032
BW
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
3e730e6f 9targets := uImage uImage.bin uImage.bz2 uImage.gz uImage.lzma uImage.lzo uImage.xip
67df6cc6 10extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.lzo vmlinux.bin.xip
d86bfb16 11
e3393645
SW
12ifeq ($(CONFIG_RAMKERNEL),y)
13UIMAGE_LOADADDR = $(CONFIG_BOOT_LOAD)
14else # CONFIG_ROMKERNEL must be set
15UIMAGE_LOADADDR = $(CONFIG_ROM_BASE)
16endif
17UIMAGE_ENTRYADDR = $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}')
18UIMAGE_NAME = '$(CPU_REV)-$(KERNELRELEASE)'
19UIMAGE_OPTS-$(CONFIG_ROMKERNEL) += -x
1394f032
BW
20
21$(obj)/vmlinux.bin: vmlinux FORCE
22 $(call if_changed,objcopy)
23
538067c8 24$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
1394f032
BW
25 $(call if_changed,gzip)
26
538067c8
MF
27$(obj)/vmlinux.bin.bz2: $(obj)/vmlinux.bin FORCE
28 $(call if_changed,bzip2)
29
30$(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE
31 $(call if_changed,lzma)
32
67df6cc6
MF
33$(obj)/vmlinux.bin.lzo: $(obj)/vmlinux.bin FORCE
34 $(call if_changed,lzo)
35
d86bfb16
BS
36# The mkimage tool wants 64bytes prepended to the image
37quiet_cmd_mk_bin_xip = BIN $@
38 cmd_mk_bin_xip = ( printf '%64s' | tr ' ' '\377' ; cat $< ) > $@
39$(obj)/vmlinux.bin.xip: $(obj)/vmlinux.bin FORCE
40 $(call if_changed,mk_bin_xip)
41
3e730e6f 42$(obj)/uImage.bin: $(obj)/vmlinux.bin
b2e8dbd2
MF
43 $(call if_changed,uimage,none)
44
3e730e6f 45$(obj)/uImage.bz2: $(obj)/vmlinux.bin.bz2
538067c8
MF
46 $(call if_changed,uimage,bzip2)
47
3e730e6f 48$(obj)/uImage.gz: $(obj)/vmlinux.bin.gz
538067c8
MF
49 $(call if_changed,uimage,gzip)
50
3e730e6f 51$(obj)/uImage.lzma: $(obj)/vmlinux.bin.lzma
538067c8
MF
52 $(call if_changed,uimage,lzma)
53
3e730e6f 54$(obj)/uImage.lzo: $(obj)/vmlinux.bin.lzo
67df6cc6
MF
55 $(call if_changed,uimage,lzo)
56
3e730e6f 57$(obj)/uImage.xip: $(obj)/vmlinux.bin.xip
d86bfb16
BS
58 $(call if_changed,uimage,none)
59
b2e8dbd2 60suffix-y := bin
538067c8
MF
61suffix-$(CONFIG_KERNEL_GZIP) := gz
62suffix-$(CONFIG_KERNEL_BZIP2) := bz2
63suffix-$(CONFIG_KERNEL_LZMA) := lzma
67df6cc6 64suffix-$(CONFIG_KERNEL_LZO) := lzo
d86bfb16
BS
65suffix-$(CONFIG_ROMKERNEL) := xip
66
3e730e6f 67$(obj)/uImage: $(obj)/uImage.$(suffix-y)
538067c8 68 @ln -sf $(notdir $<) $@
29cae113
MF
69
70install:
71 sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)"
This page took 0.562269 seconds and 5 git commands to generate.