diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2007-05-06 17:50:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-07 15:12:58 -0400 |
commit | 97a572b3b877173e284c687be34d8ae81b826160 (patch) | |
tree | 71c2db80449df6057e46940376e19813aac077db /arch/h8300/boot/compressed/Makefile | |
parent | c728d60455e8e8722ee08312a75f38dd7a866b5e (diff) |
h8300: add zImage support
h8300 zImage target support.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/h8300/boot/compressed/Makefile')
-rw-r--r-- | arch/h8300/boot/compressed/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/h8300/boot/compressed/Makefile b/arch/h8300/boot/compressed/Makefile new file mode 100644 index 000000000000..71aac82a8ae0 --- /dev/null +++ b/arch/h8300/boot/compressed/Makefile | |||
@@ -0,0 +1,37 @@ | |||
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 piggy.o | ||
8 | EXTRA_AFLAGS := -traditional | ||
9 | |||
10 | OBJECTS = $(obj)/head.o $(obj)/misc.o | ||
11 | |||
12 | # | ||
13 | # IMAGE_OFFSET is the load offset of the compression loader | ||
14 | # Assign dummy values if these 2 variables are not defined, | ||
15 | # in order to suppress error message. | ||
16 | # | ||
17 | CONFIG_MEMORY_START ?= 0x00400000 | ||
18 | CONFIG_BOOT_LINK_OFFSET ?= 0x00400000 | ||
19 | IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_MEMORY_START)+$(CONFIG_BOOT_LINK_OFFSET)]) | ||
20 | |||
21 | LDFLAGS_vmlinux := -T $(obj)/vmlinux.lds | ||
22 | |||
23 | $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o FORCE | ||
24 | $(call if_changed,ld) | ||
25 | @: | ||
26 | |||
27 | $(obj)/vmlinux.bin: vmlinux FORCE | ||
28 | $(call if_changed,objcopy) | ||
29 | |||
30 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | ||
31 | $(call if_changed,gzip) | ||
32 | |||
33 | LDFLAGS_piggy.o := -r --format binary --oformat elf32-h8300 -T | ||
34 | OBJCOPYFLAGS := -O binary | ||
35 | |||
36 | $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE | ||
37 | $(call if_changed,ld) | ||