From: Ley Foon Tan Date: Tue, 10 Feb 2015 15:26:34 +0000 (+0800) Subject: nios2: Add support for compressed kernel X-Git-Tag: fixes-v4.0-rc1~80^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01623627a292fbd9dc62e05489153d7f1add7061;p=pandora-kernel.git nios2: Add support for compressed kernel Signed-off-by: Ley Foon Tan --- diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig index 2361acf6d2b1..f77991ecfd8e 100644 --- a/arch/nios2/Kconfig +++ b/arch/nios2/Kconfig @@ -134,6 +134,14 @@ config NIOS2_PASS_CMDLINE will override "Default kernel command string". Say N if you are unsure. +config NIOS2_BOOT_LINK_OFFSET + hex "Link address offset for booting" + default "0x00500000" + help + This option allows you to set the link address offset of the zImage. + This can be useful if you are on a board which has a small amount of + memory. + endmenu menu "Advanced setup" diff --git a/arch/nios2/boot/Makefile b/arch/nios2/boot/Makefile index 59392dc0bdcb..c899876320df 100644 --- a/arch/nios2/boot/Makefile +++ b/arch/nios2/boot/Makefile @@ -24,6 +24,13 @@ $(obj)/vmImage: $(obj)/vmlinux.gz $(call if_changed,uimage) @$(kecho) 'Kernel: $@ is ready' +$(obj)/zImage: $(obj)/compressed/vmlinux FORCE + $(call if_changed,objcopy) + @$(kecho) 'Kernel: $@ is ready' + +$(obj)/compressed/vmlinux: $(obj)/vmlinux.gz FORCE + $(Q)$(MAKE) $(build)=$(obj)/compressed $@ + # Rule to build device tree blobs DTB_SRC := $(patsubst "%",%,$(CONFIG_NIOS2_DTB_SOURCE)) Reading git-diff-tree failed