diff options
Diffstat (limited to 'arch/m32r/boot/compressed/Makefile')
-rw-r--r-- | arch/m32r/boot/compressed/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/arch/m32r/boot/compressed/Makefile b/arch/m32r/boot/compressed/Makefile new file mode 100644 index 000000000000..d908e1d3c07f --- /dev/null +++ b/arch/m32r/boot/compressed/Makefile | |||
@@ -0,0 +1,42 @@ | |||
1 | # | ||
2 | # linux/arch/sh/boot/compressed/Makefile | ||
3 | # | ||
4 | # create a compressed vmlinux image from the original vmlinux | ||
5 | # | ||
6 | |||
7 | targets := vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o \ | ||
8 | piggy.o vmlinux.lds | ||
9 | EXTRA_AFLAGS := -traditional | ||
10 | |||
11 | OBJECTS = $(obj)/head.o $(obj)/misc.o | ||
12 | |||
13 | # | ||
14 | # IMAGE_OFFSET is the load offset of the compression loader | ||
15 | # | ||
16 | #IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_MEMORY_START)+0x2000]) | ||
17 | #IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_MEMORY_START)+0x00400000]) | ||
18 | |||
19 | LDFLAGS_vmlinux := -T | ||
20 | |||
21 | $(obj)/vmlinux: $(obj)/vmlinux.lds $(OBJECTS) $(obj)/piggy.o FORCE | ||
22 | $(call if_changed,ld) | ||
23 | @: | ||
24 | |||
25 | $(obj)/vmlinux.bin: vmlinux FORCE | ||
26 | $(call if_changed,objcopy) | ||
27 | |||
28 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | ||
29 | $(call if_changed,gzip) | ||
30 | |||
31 | CFLAGS_misc.o += -fpic | ||
32 | |||
33 | ifdef CONFIG_MMU | ||
34 | LDFLAGS_piggy.o := -r --format binary --oformat elf32-m32r-linux -T | ||
35 | else | ||
36 | LDFLAGS_piggy.o := -r --format binary --oformat elf32-m32r -T | ||
37 | endif | ||
38 | |||
39 | OBJCOPYFLAGS += -R .empty_zero_page | ||
40 | |||
41 | $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE | ||
42 | $(call if_changed,ld) | ||