diff options
Diffstat (limited to 'arch/blackfin/boot/Makefile')
-rw-r--r-- | arch/blackfin/boot/Makefile | 19 |
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 | ||
9 | MKIMAGE := $(srctree)/scripts/mkuboot.sh | ||
10 | |||
11 | targets := vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.lzo vmImage.xip | 9 | targets := vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.lzo vmImage.xip |
12 | extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.lzo vmlinux.bin.xip | 10 | extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.lzo vmlinux.bin.xip |
13 | 11 | ||
14 | UIMAGE_OPTS-y := | 12 | ifeq ($(CONFIG_RAMKERNEL),y) |
15 | UIMAGE_OPTS-$(CONFIG_RAMKERNEL) += -a $(CONFIG_BOOT_LOAD) | 13 | UIMAGE_LOADADDR = $(CONFIG_BOOT_LOAD) |
16 | UIMAGE_OPTS-$(CONFIG_ROMKERNEL) += -a $(CONFIG_ROM_BASE) -x | 14 | else # CONFIG_ROMKERNEL must be set |
17 | 15 | UIMAGE_LOADADDR = $(CONFIG_ROM_BASE) | |
18 | quiet_cmd_uimage = UIMAGE $@ | 16 | endif |
19 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(ARCH) -O linux -T kernel \ | 17 | UIMAGE_ENTRYADDR = $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}') |
20 | -C $(2) -n '$(CPU_REV)-$(KERNELRELEASE)' \ | 18 | UIMAGE_NAME = '$(CPU_REV)-$(KERNELRELEASE)' |
21 | -e $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}') \ | 19 | UIMAGE_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) |