diff options
author | Daniel Mentz <danielmentz@google.com> | 2016-10-04 19:34:27 -0400 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2016-10-16 18:49:07 -0400 |
commit | 27f3d2a3b59f573a398c9acc810c16ebca07be78 (patch) | |
tree | 6224dc57f6864af0a52568e85739ad016a5db864 /arch/arc | |
parent | 3ce0fefc51bd56381b1b9a92835cf8f9db3f2ef8 (diff) |
ARC: [build] Support gz, lzma compressed uImage
Add support for lzma compressed uImage.
Support for gzip was already available but could not be enabled because
we were missing CONFIG_HAVE_KERNEL_GZIP in arch/arc/Kconfig.
Signed-off-by: Daniel Mentz <danielmentz@google.com>
Cc: linux-snps-arc@lists.infradead.org
Cc: Vineet Gupta <Vineet.Gupta1@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc')
-rw-r--r-- | arch/arc/Kconfig | 2 | ||||
-rw-r--r-- | arch/arc/boot/Makefile | 16 |
2 files changed, 16 insertions, 2 deletions
diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index 6f67895cd9c4..ac0b309aced5 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig | |||
@@ -41,6 +41,8 @@ config ARC | |||
41 | select PERF_USE_VMALLOC | 41 | select PERF_USE_VMALLOC |
42 | select HAVE_DEBUG_STACKOVERFLOW | 42 | select HAVE_DEBUG_STACKOVERFLOW |
43 | select HAVE_GENERIC_DMA_COHERENT | 43 | select HAVE_GENERIC_DMA_COHERENT |
44 | select HAVE_KERNEL_GZIP | ||
45 | select HAVE_KERNEL_LZMA | ||
44 | 46 | ||
45 | config MIGHT_HAVE_PCI | 47 | config MIGHT_HAVE_PCI |
46 | bool | 48 | bool |
diff --git a/arch/arc/boot/Makefile b/arch/arc/boot/Makefile index e597cb34c16a..f94cf151e06a 100644 --- a/arch/arc/boot/Makefile +++ b/arch/arc/boot/Makefile | |||
@@ -14,9 +14,15 @@ UIMAGE_ENTRYADDR = $(LINUX_START_TEXT) | |||
14 | 14 | ||
15 | suffix-y := bin | 15 | suffix-y := bin |
16 | suffix-$(CONFIG_KERNEL_GZIP) := gz | 16 | suffix-$(CONFIG_KERNEL_GZIP) := gz |
17 | suffix-$(CONFIG_KERNEL_LZMA) := lzma | ||
17 | 18 | ||
18 | targets += uImage uImage.bin uImage.gz | 19 | targets += uImage |
19 | extra-y += vmlinux.bin vmlinux.bin.gz | 20 | targets += uImage.bin |
21 | targets += uImage.gz | ||
22 | targets += uImage.lzma | ||
23 | extra-y += vmlinux.bin | ||
24 | extra-y += vmlinux.bin.gz | ||
25 | extra-y += vmlinux.bin.lzma | ||
20 | 26 | ||
21 | $(obj)/vmlinux.bin: vmlinux FORCE | 27 | $(obj)/vmlinux.bin: vmlinux FORCE |
22 | $(call if_changed,objcopy) | 28 | $(call if_changed,objcopy) |
@@ -24,12 +30,18 @@ $(obj)/vmlinux.bin: vmlinux FORCE | |||
24 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | 30 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE |
25 | $(call if_changed,gzip) | 31 | $(call if_changed,gzip) |
26 | 32 | ||
33 | $(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE | ||
34 | $(call if_changed,lzma) | ||
35 | |||
27 | $(obj)/uImage.bin: $(obj)/vmlinux.bin FORCE | 36 | $(obj)/uImage.bin: $(obj)/vmlinux.bin FORCE |
28 | $(call if_changed,uimage,none) | 37 | $(call if_changed,uimage,none) |
29 | 38 | ||
30 | $(obj)/uImage.gz: $(obj)/vmlinux.bin.gz FORCE | 39 | $(obj)/uImage.gz: $(obj)/vmlinux.bin.gz FORCE |
31 | $(call if_changed,uimage,gzip) | 40 | $(call if_changed,uimage,gzip) |
32 | 41 | ||
42 | $(obj)/uImage.lzma: $(obj)/vmlinux.bin.lzma FORCE | ||
43 | $(call if_changed,uimage,lzma) | ||
44 | |||
33 | $(obj)/uImage: $(obj)/uImage.$(suffix-y) | 45 | $(obj)/uImage: $(obj)/uImage.$(suffix-y) |
34 | @ln -sf $(notdir $<) $@ | 46 | @ln -sf $(notdir $<) $@ |
35 | @echo ' Image $@ is ready' | 47 | @echo ' Image $@ is ready' |