diff options
Diffstat (limited to 'arch/sh/boot')
-rw-r--r-- | arch/sh/boot/Makefile | 2 | ||||
-rw-r--r-- | arch/sh/boot/compressed/Makefile_32 | 5 | ||||
-rw-r--r-- | arch/sh/boot/compressed/Makefile_64 | 5 | ||||
-rw-r--r-- | arch/sh/boot/compressed/piggy.S | 8 | ||||
-rw-r--r-- | arch/sh/boot/compressed/vmlinux.scr | 9 |
5 files changed, 13 insertions, 16 deletions
diff --git a/arch/sh/boot/Makefile b/arch/sh/boot/Makefile index 89b408620dcb..8b37869a8227 100644 --- a/arch/sh/boot/Makefile +++ b/arch/sh/boot/Makefile | |||
@@ -40,7 +40,7 @@ KERNEL_LOAD := $(shell /bin/bash -c 'printf "0x%08x" \ | |||
40 | KERNEL_ENTRY := $(shell /bin/bash -c 'printf "0x%08x" \ | 40 | KERNEL_ENTRY := $(shell /bin/bash -c 'printf "0x%08x" \ |
41 | $$[$(CONFIG_PAGE_OFFSET) + \ | 41 | $$[$(CONFIG_PAGE_OFFSET) + \ |
42 | $(CONFIG_MEMORY_START) + \ | 42 | $(CONFIG_MEMORY_START) + \ |
43 | $(CONFIG_ZERO_PAGE_OFFSET)+0x1000]') | 43 | $(CONFIG_ZERO_PAGE_OFFSET) + $(CONFIG_ENTRY_OFFSET)]') |
44 | 44 | ||
45 | quiet_cmd_uimage = UIMAGE $@ | 45 | quiet_cmd_uimage = UIMAGE $@ |
46 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \ | 46 | cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \ |
diff --git a/arch/sh/boot/compressed/Makefile_32 b/arch/sh/boot/compressed/Makefile_32 index c0d25fb1aa60..47685f618ae7 100644 --- a/arch/sh/boot/compressed/Makefile_32 +++ b/arch/sh/boot/compressed/Makefile_32 | |||
@@ -35,8 +35,7 @@ $(obj)/vmlinux.bin: vmlinux FORCE | |||
35 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | 35 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE |
36 | $(call if_changed,gzip) | 36 | $(call if_changed,gzip) |
37 | 37 | ||
38 | LDFLAGS_piggy.o := -r --format binary --oformat elf32-sh-linux -T | ||
39 | OBJCOPYFLAGS += -R .empty_zero_page | 38 | OBJCOPYFLAGS += -R .empty_zero_page |
40 | 39 | ||
41 | $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE | 40 | $(obj)/piggy.o: $(obj)/piggy.S $(obj)/vmlinux.bin.gz FORCE |
42 | $(call if_changed,ld) | 41 | $(call if_changed,as_o_S) |
diff --git a/arch/sh/boot/compressed/Makefile_64 b/arch/sh/boot/compressed/Makefile_64 index 912f3e205a0d..658d4f915556 100644 --- a/arch/sh/boot/compressed/Makefile_64 +++ b/arch/sh/boot/compressed/Makefile_64 | |||
@@ -37,8 +37,7 @@ $(obj)/vmlinux.bin: vmlinux FORCE | |||
37 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | 37 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE |
38 | $(call if_changed,gzip) | 38 | $(call if_changed,gzip) |
39 | 39 | ||
40 | LDFLAGS_piggy.o := -r --format binary --oformat elf32-sh64-linux -T | ||
41 | OBJCOPYFLAGS += -R .empty_zero_page | 40 | OBJCOPYFLAGS += -R .empty_zero_page |
42 | 41 | ||
43 | $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE | 42 | $(obj)/piggy.o: $(obj)/piggy.S $(obj)/vmlinux.bin.gz FORCE |
44 | $(call if_changed,ld) | 43 | $(call if_changed,as_o_S) |
diff --git a/arch/sh/boot/compressed/piggy.S b/arch/sh/boot/compressed/piggy.S new file mode 100644 index 000000000000..566071926b13 --- /dev/null +++ b/arch/sh/boot/compressed/piggy.S | |||
@@ -0,0 +1,8 @@ | |||
1 | .global input_len, input_data | ||
2 | .data | ||
3 | input_len: | ||
4 | .long input_data_end - input_data | ||
5 | input_data: | ||
6 | .incbin "arch/sh/boot/compressed/vmlinux.bin.gz" | ||
7 | input_data_end: | ||
8 | .end | ||
diff --git a/arch/sh/boot/compressed/vmlinux.scr b/arch/sh/boot/compressed/vmlinux.scr deleted file mode 100644 index 1ed9d791f863..000000000000 --- a/arch/sh/boot/compressed/vmlinux.scr +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | SECTIONS | ||
2 | { | ||
3 | .data : { | ||
4 | input_len = .; | ||
5 | LONG(input_data_end - input_data) input_data = .; | ||
6 | *(.data) | ||
7 | input_data_end = .; | ||
8 | } | ||
9 | } | ||