diff options
author | Ley Foon Tan <lftan@altera.com> | 2015-02-10 16:26:34 +0100 |
---|---|---|
committer | Ley Foon Tan <lftan@altera.com> | 2015-02-10 16:26:34 +0100 |
commit | 01623627a292fbd9dc62e05489153d7f1add7061 (patch) | |
tree | dd29d173f5499e5dc015e4b8fa2d5575c406bc6f /arch/nios2/boot/Makefile | |
parent | nios2: add early printk support (diff) | |
download | linux-01623627a292fbd9dc62e05489153d7f1add7061.tar.xz linux-01623627a292fbd9dc62e05489153d7f1add7061.zip |
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/Makefile | 7 |
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)) |