diff options
-rw-r--r-- | arch/microblaze/boot/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile index 21f13322a4ca..902cf9846c3c 100644 --- a/arch/microblaze/boot/Makefile +++ b/arch/microblaze/boot/Makefile | |||
@@ -2,11 +2,13 @@ | |||
2 | # arch/microblaze/boot/Makefile | 2 | # arch/microblaze/boot/Makefile |
3 | # | 3 | # |
4 | 4 | ||
5 | MKIMAGE := $(srctree)/scripts/mkuboot.sh | ||
6 | |||
5 | obj-y += linked_dtb.o | 7 | obj-y += linked_dtb.o |
6 | 8 | ||
7 | targets := linux.bin linux.bin.gz simpleImage.% | 9 | targets := linux.bin linux.bin.gz simpleImage.% |
8 | 10 | ||
9 | OBJCOPYFLAGS_linux.bin := -O binary | 11 | OBJCOPYFLAGS := -O binary |
10 | 12 | ||
11 | # Where the DTS files live | 13 | # Where the DTS files live |
12 | dtstree := $(srctree)/$(src)/dts | 14 | dtstree := $(srctree)/$(src)/dts |
@@ -24,6 +26,7 @@ $(obj)/linux.bin: vmlinux FORCE | |||
24 | [ -n $(CONFIG_INITRAMFS_SOURCE) ] && [ ! -e $(CONFIG_INITRAMFS_SOURCE) ] && \ | 26 | [ -n $(CONFIG_INITRAMFS_SOURCE) ] && [ ! -e $(CONFIG_INITRAMFS_SOURCE) ] && \ |
25 | touch $(CONFIG_INITRAMFS_SOURCE) || echo "No CPIO image" | 27 | touch $(CONFIG_INITRAMFS_SOURCE) || echo "No CPIO image" |
26 | $(call if_changed,objcopy) | 28 | $(call if_changed,objcopy) |
29 | $(call if_changed,uimage) | ||
27 | @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' | 30 | @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' |
28 | 31 | ||
29 | $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE | 32 | $(obj)/linux.bin.gz: $(obj)/linux.bin FORCE |
@@ -36,8 +39,16 @@ quiet_cmd_cp = CP $< $@$2 | |||
36 | quiet_cmd_strip = STRIP $@ | 39 | quiet_cmd_strip = STRIP $@ |
37 | cmd_strip = $(STRIP) -K _start -K _end -K __log_buf -K _fdt_start vmlinux -o $@ | 40 | cmd_strip = $(STRIP) -K _start -K _end -K __log_buf -K _fdt_start vmlinux -o $@ |
38 | 41 | ||
42 | quiet_cmd_uimage = UIMAGE $@.ub | ||
43 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A microblaze -O linux -T kernel \ | ||
44 | -C none -n 'Linux-$(KERNELRELEASE)' \ | ||
45 | -a $(CONFIG_KERNEL_BASE_ADDR) -e $(CONFIG_KERNEL_BASE_ADDR) \ | ||
46 | -d $@ $@.ub | ||
47 | |||
39 | $(obj)/simpleImage.%: vmlinux FORCE | 48 | $(obj)/simpleImage.%: vmlinux FORCE |
40 | $(call if_changed,cp,.unstrip) | 49 | $(call if_changed,cp,.unstrip) |
50 | $(call if_changed,objcopy) | ||
51 | $(call if_changed,uimage) | ||
41 | $(call if_changed,strip) | 52 | $(call if_changed,strip) |
42 | @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' | 53 | @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' |
43 | 54 | ||
@@ -53,4 +64,4 @@ $(obj)/%.dtb: $(dtstree)/%.dts FORCE | |||
53 | 64 | ||
54 | clean-kernel += linux.bin linux.bin.gz simpleImage.* | 65 | clean-kernel += linux.bin linux.bin.gz simpleImage.* |
55 | 66 | ||
56 | clean-files += *.dtb | 67 | clean-files += *.dtb simpleImage.*.unstrip |