提交 86277d59 编写于 作者: Y Yoshinori Sato 提交者: Linus Torvalds

h8300 zImage support update

- Add missing files
- Add Makefile target
- Change image base
- Style fix
Signed-off-by: NYoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 f79224ca
...@@ -61,10 +61,11 @@ archmrproper: ...@@ -61,10 +61,11 @@ archmrproper:
archclean: archclean:
$(Q)$(MAKE) $(clean)=$(boot) $(Q)$(MAKE) $(clean)=$(boot)
vmlinux.srec vmlinux.bin: vmlinux vmlinux.srec vmlinux.bin zImage: vmlinux
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
define archhelp define archhelp
echo 'vmlinux.bin - Create raw binary' @echo 'vmlinux.bin - Create raw binary'
echo 'vmlinux.srec - Create srec binary' @echo 'vmlinux.srec - Create srec binary'
@echo 'zImage - Compressed kernel image'
endef endef
...@@ -15,10 +15,10 @@ OBJECTS = $(obj)/head.o $(obj)/misc.o ...@@ -15,10 +15,10 @@ OBJECTS = $(obj)/head.o $(obj)/misc.o
# in order to suppress error message. # in order to suppress error message.
# #
CONFIG_MEMORY_START ?= 0x00400000 CONFIG_MEMORY_START ?= 0x00400000
CONFIG_BOOT_LINK_OFFSET ?= 0x00400000 CONFIG_BOOT_LINK_OFFSET ?= 0x00140000
IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_MEMORY_START)+$(CONFIG_BOOT_LINK_OFFSET)]) IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_MEMORY_START)+$(CONFIG_BOOT_LINK_OFFSET)])
LDFLAGS_vmlinux := -T $(obj)/vmlinux.lds LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -estartup $(obj)/vmlinux.lds
$(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o FORCE $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o FORCE
$(call if_changed,ld) $(call if_changed,ld)
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Copyright (C) 2006 Yoshinori Sato * Copyright (C) 2006 Yoshinori Sato
*/ */
.h8300h .h8300h
#include <linux/linkage.h> #include <linux/linkage.h>
#define SRAM_START 0xff4000 #define SRAM_START 0xff4000
......
SECTIONS
{
.text :
{
__stext = . ;
__text = .;
*(.text.startup)
*(.text)
__etext = . ;
}
.rodata :
{
*(.rodata)
}
.data :
{
__sdata = . ;
___data_start = . ;
*(.data.*)
}
.bss :
{
. = ALIGN(0x4) ;
__sbss = . ;
*(.bss*)
. = ALIGN(0x4) ;
__ebss = . ;
__end = . ;
}
}
SECTIONS
{
.data : {
_input_len = .;
LONG(_input_data_end - _input_data) _input_data = .;
*(.data)
_input_data_end = .;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册