aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/boot/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/blackfin/boot/Makefile')
-rw-r--r--arch/blackfin/boot/Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/arch/blackfin/boot/Makefile b/arch/blackfin/boot/Makefile
index 0a49279e3428..f7d27d50d02c 100644
--- a/arch/blackfin/boot/Makefile
+++ b/arch/blackfin/boot/Makefile
@@ -6,20 +6,17 @@
6# for more details. 6# for more details.
7# 7#
8 8
9MKIMAGE := $(srctree)/scripts/mkuboot.sh
10
11targets := vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.lzo vmImage.xip 9targets := vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.lzo vmImage.xip
12extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.lzo vmlinux.bin.xip 10extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.lzo vmlinux.bin.xip
13 11
14UIMAGE_OPTS-y := 12ifeq ($(CONFIG_RAMKERNEL),y)
15UIMAGE_OPTS-$(CONFIG_RAMKERNEL) += -a $(CONFIG_BOOT_LOAD) 13UIMAGE_LOADADDR = $(CONFIG_BOOT_LOAD)
16UIMAGE_OPTS-$(CONFIG_ROMKERNEL) += -a $(CONFIG_ROM_BASE) -x 14else # CONFIG_ROMKERNEL must be set
17 15UIMAGE_LOADADDR = $(CONFIG_ROM_BASE)
18quiet_cmd_uimage = UIMAGE $@ 16endif
19 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(ARCH) -O linux -T kernel \ 17UIMAGE_ENTRYADDR = $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}')
20 -C $(2) -n '$(CPU_REV)-$(KERNELRELEASE)' \ 18UIMAGE_NAME = '$(CPU_REV)-$(KERNELRELEASE)'
21 -e $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}') \ 19UIMAGE_OPTS-$(CONFIG_ROMKERNEL) += -x
22 $(UIMAGE_OPTS-y) -d $< $@
23 20
24$(obj)/vmlinux.bin: vmlinux FORCE 21$(obj)/vmlinux.bin: vmlinux FORCE
25 $(call if_changed,objcopy) 22 $(call if_changed,objcopy)