diff options
Diffstat (limited to 'arch/mn10300/boot/compressed/Makefile')
-rw-r--r-- | arch/mn10300/boot/compressed/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/mn10300/boot/compressed/Makefile b/arch/mn10300/boot/compressed/Makefile new file mode 100644 index 000000000000..08a95e171685 --- /dev/null +++ b/arch/mn10300/boot/compressed/Makefile | |||
@@ -0,0 +1,22 @@ | |||
1 | # | ||
2 | # Create a compressed vmlinux image from the original vmlinux | ||
3 | # | ||
4 | |||
5 | targets := vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o piggy.o | ||
6 | |||
7 | LDFLAGS_vmlinux := -Ttext $(CONFIG_KERNEL_ZIMAGE_BASE_ADDRESS) -e startup_32 | ||
8 | |||
9 | $(obj)/vmlinux: $(obj)/head.o $(obj)/misc.o $(obj)/piggy.o FORCE | ||
10 | $(call if_changed,ld) | ||
11 | @: | ||
12 | |||
13 | $(obj)/vmlinux.bin: vmlinux FORCE | ||
14 | $(call if_changed,objcopy) | ||
15 | |||
16 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | ||
17 | $(call if_changed,gzip) | ||
18 | |||
19 | LDFLAGS_piggy.o := -r --format binary --oformat elf32-am33lin -T | ||
20 | |||
21 | $(obj)/piggy.o: $(obj)/vmlinux.lds $(obj)/vmlinux.bin.gz FORCE | ||
22 | $(call if_changed,ld) | ||