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/avr32 | |
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/avr32')
-rw-r--r-- | arch/avr32/boot/images/Makefile | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/avr32/boot/images/Makefile b/arch/avr32/boot/images/Makefile index 1848bf0d7f62..2a3b53978a3b 100644 --- a/arch/avr32/boot/images/Makefile +++ b/arch/avr32/boot/images/Makefile | |||
@@ -6,8 +6,6 @@ | |||
6 | # for more details. | 6 | # for more details. |
7 | # | 7 | # |
8 | 8 | ||
9 | MKIMAGE := $(srctree)/scripts/mkuboot.sh | ||
10 | |||
11 | extra-y := vmlinux.bin vmlinux.gz | 9 | extra-y := vmlinux.bin vmlinux.gz |
12 | 10 | ||
13 | OBJCOPYFLAGS_vmlinux.bin := -O binary -R .note.gnu.build-id | 11 | OBJCOPYFLAGS_vmlinux.bin := -O binary -R .note.gnu.build-id |
@@ -17,10 +15,9 @@ $(obj)/vmlinux.bin: vmlinux FORCE | |||
17 | $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE | 15 | $(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE |
18 | $(call if_changed,gzip) | 16 | $(call if_changed,gzip) |
19 | 17 | ||
20 | quiet_cmd_uimage = UIMAGE $@ | 18 | UIMAGE_LOADADDR = $(CONFIG_LOAD_ADDRESS) |
21 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A avr32 -O linux -T kernel \ | 19 | UIMAGE_ENTRYADDR = $(CONFIG_ENTRY_ADDRESS) |
22 | -C gzip -a $(CONFIG_LOAD_ADDRESS) -e $(CONFIG_ENTRY_ADDRESS) \ | 20 | UIMAGE_COMPRESSION = gzip |
23 | -n 'Linux-$(KERNELRELEASE)' -d $< $@ | ||
24 | 21 | ||
25 | targets += uImage uImage.srec | 22 | targets += uImage uImage.srec |
26 | $(obj)/uImage: $(obj)/vmlinux.gz | 23 | $(obj)/uImage: $(obj)/vmlinux.gz |