diff options
author | Stephen Warren <swarren@wwwdotorg.org> | 2012-03-16 17:03:55 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2012-03-26 09:49:20 -0400 |
commit | e33936451484b06b61b259172fa3761a7d1cd4dc (patch) | |
tree | acdbb021fc7f3ba4c13adbd70059f7a7c70c9803 /arch/microblaze/boot | |
parent | f75a8df3bd6466e29a4e40b86b2cfc96fe06d328 (diff) |
Kbuild: centralize MKIMAGE and cmd_uimage definitions
All ARCHs have the same definition of MKIMAGE. Move it to Makefile.lib
to avoid duplication.
All ARCHs have similar definitions of cmd_uimage. Place a sufficiently
parameterized version in Makefile.lib to avoid duplication.
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Mike Frysinger <vapier@gentoo.org> [Blackfin]
Tested-by: Michal Simek <monstr@monstr.eu> [Microblaze]
Tested-by: Guan Xuetao <gxt@mprc.pku.edu.cn> [unicore32]
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'arch/microblaze/boot')
-rw-r--r-- | arch/microblaze/boot/Makefile | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile index 0c796cf81586..ca76ecdcf1a0 100644 --- a/arch/microblaze/boot/Makefile +++ b/arch/microblaze/boot/Makefile | |||
@@ -2,8 +2,6 @@ | |||
2 | # arch/microblaze/boot/Makefile | 2 | # arch/microblaze/boot/Makefile |
3 | # | 3 | # |
4 | 4 | ||
5 | MKIMAGE := $(srctree)/scripts/mkuboot.sh | ||
6 | |||
7 | obj-y += linked_dtb.o | 5 | obj-y += linked_dtb.o |
8 | 6 | ||
9 | targets := linux.bin linux.bin.gz simpleImage.% | 7 | targets := linux.bin linux.bin.gz simpleImage.% |
@@ -35,11 +33,9 @@ quiet_cmd_strip = STRIP $@ | |||
35 | cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \ | 33 | cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \ |
36 | -K _fdt_start vmlinux -o $@ | 34 | -K _fdt_start vmlinux -o $@ |
37 | 35 | ||
38 | quiet_cmd_uimage = UIMAGE $@.ub | 36 | UIMAGE_IN = $@ |
39 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A microblaze -O linux -T kernel \ | 37 | UIMAGE_OUT = $@.ub |
40 | -C none -n 'Linux-$(KERNELRELEASE)' \ | 38 | UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR) |
41 | -a $(CONFIG_KERNEL_BASE_ADDR) -e $(CONFIG_KERNEL_BASE_ADDR) \ | ||
42 | -d $@ $@.ub | ||
43 | 39 | ||
44 | $(obj)/simpleImage.%: vmlinux FORCE | 40 | $(obj)/simpleImage.%: vmlinux FORCE |
45 | $(call if_changed,cp,.unstrip) | 41 | $(call if_changed,cp,.unstrip) |