diff options
Diffstat (limited to 'arch/sh/boot/compressed/Makefile')
-rw-r--r-- | arch/sh/boot/compressed/Makefile | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/arch/sh/boot/compressed/Makefile b/arch/sh/boot/compressed/Makefile index 9531bf1b7c2f..6182eca5180a 100644 --- a/arch/sh/boot/compressed/Makefile +++ b/arch/sh/boot/compressed/Makefile | |||
@@ -5,9 +5,10 @@ | |||
5 | # | 5 | # |
6 | 6 | ||
7 | targets := vmlinux vmlinux.bin vmlinux.bin.gz \ | 7 | targets := vmlinux vmlinux.bin vmlinux.bin.gz \ |
8 | head_$(BITS).o misc_$(BITS).o piggy.o | 8 | vmlinux.bin.bz2 vmlinux.bin.lzma \ |
9 | head_$(BITS).o misc.o piggy.o | ||
9 | 10 | ||
10 | OBJECTS = $(obj)/head_$(BITS).o $(obj)/misc_$(BITS).o $(obj)/cache.o | 11 | OBJECTS = $(obj)/head_$(BITS).o $(obj)/misc.o $(obj)/cache.o |
11 | 12 | ||
12 | ifdef CONFIG_SH_STANDARD_BIOS | 13 | ifdef CONFIG_SH_STANDARD_BIOS |
13 | OBJECTS += $(obj)/../../kernel/sh_bios.o | 14 | OBJECTS += $(obj)/../../kernel/sh_bios.o |
@@ -23,7 +24,7 @@ IMAGE_OFFSET := $(shell /bin/bash -c 'printf "0x%08x" \ | |||
23 | 24 | ||
24 | LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) | 25 | LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) |
25 | 26 | ||
26 | ifeq ($(CONFIG_FUNCTION_TRACER),y) | 27 | ifeq ($(CONFIG_MCOUNT),y) |
27 | ORIG_CFLAGS := $(KBUILD_CFLAGS) | 28 | ORIG_CFLAGS := $(KBUILD_CFLAGS) |
28 | KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS)) | 29 | KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS)) |
29 | endif | 30 | endif |
@@ -38,10 +39,18 @@ $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o $(LIBGCC) FORCE | |||
38 | $(obj)/vmlinux.bin: vmlinux FORCE | 39 | $(obj)/vmlinux.bin: vmlinux FORCE |
39 | $(call if_changed,objcopy) | 40 | $(call if_changed,objcopy) |
40 | 41 | ||
41 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | 42 | vmlinux.bin.all-y := $(obj)/vmlinux.bin |
43 | |||
44 | $(obj)/vmlinux.bin.gz: $(vmlinux.bin.all-y) FORCE | ||
42 | $(call if_changed,gzip) | 45 | $(call if_changed,gzip) |
46 | $(obj)/vmlinux.bin.bz2: $(vmlinux.bin.all-y) FORCE | ||
47 | $(call if_changed,bzip2) | ||
48 | $(obj)/vmlinux.bin.lzma: $(vmlinux.bin.all-y) FORCE | ||
49 | $(call if_changed,lzma) | ||
43 | 50 | ||
44 | OBJCOPYFLAGS += -R .empty_zero_page | 51 | OBJCOPYFLAGS += -R .empty_zero_page |
45 | 52 | ||
46 | $(obj)/piggy.o: $(obj)/piggy.S $(obj)/vmlinux.bin.gz FORCE | 53 | LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T |
47 | $(call if_changed,as_o_S) | 54 | |
55 | $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix-y) FORCE | ||
56 | $(call if_changed,ld) | ||