summaryrefslogtreecommitdiff
path: root/arch/nios2/boot/Makefile
diff options
context:
space:
mode:
authorLey Foon Tan <lftan@altera.com>2015-02-10 18:26:34 +0300
committerLey Foon Tan <lftan@altera.com>2015-02-10 18:26:34 +0300
commit01623627a292fbd9dc62e05489153d7f1add7061 (patch)
treedd29d173f5499e5dc015e4b8fa2d5575c406bc6f /arch/nios2/boot/Makefile
parente8bf5bc776edef44777b13b2eb4461d653519bae (diff)
downloadlinux-01623627a292fbd9dc62e05489153d7f1add7061.tar.xz
nios2: Add support for compressed kernel
Signed-off-by: Ley Foon Tan <lftan@altera.com>
Diffstat (limited to 'arch/nios2/boot/Makefile')
-rw-r--r--arch/nios2/boot/Makefile7
1 files changed, 7 insertions, 0 deletions
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))