diff mbox series

[2/2] linux: support Image.gz on arm64 and riscv

Message ID 20200924122222.3449188-2-thomas.petazzoni@bootlin.com
State Changes Requested
Headers show
Series [1/2] linux: show compression options only on some architectures | expand

Commit Message

Thomas Petazzoni Sept. 24, 2020, 12:22 p.m. UTC
Both arm64 and riscv allow generating a compressed Image.gz file, so
let's support that as a first class citizen.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 linux/Config.in | 4 ++++
 linux/linux.mk  | 2 ++
 2 files changed, 6 insertions(+)

Comments

Tian Yuanhao Sept. 25, 2020, 2:31 a.m. UTC | #1
On 四, 2020-09-24 at 14:22 +0200, Thomas Petazzoni wrote:
> Both arm64 and riscv allow generating a compressed Image.gz file, so
> let's support that as a first class citizen.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ---
>  linux/Config.in | 4 ++++
>  linux/linux.mk  | 2 ++
>  2 files changed, 6 insertions(+)
> 
> diff --git a/linux/Config.in b/linux/Config.in
> index 9f2af6da5b..73b9c30b26 100644
> --- a/linux/Config.in
> +++ b/linux/Config.in
> @@ -262,6 +262,10 @@ config BR2_LINUX_KERNEL_IMAGE
>  	bool "Image"
>  	depends on BR2_aarch64 || BR2_riscv
>  
> +config BR2_LINUX_KERNEL_IMAGE_GZ
> +	bool "Image.gz"
> +	depends on BR2_aarch64 || BR2_riscv
> +
>  config BR2_LINUX_KERNEL_LINUX_BIN
>  	bool "linux.bin"
>  	depends on BR2_microblaze
> diff --git a/linux/linux.mk b/linux/linux.mk
> index e07e014d1e..133023f78c 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -201,6 +201,8 @@ else ifeq ($(BR2_LINUX_KERNEL_SIMPLEIMAGE),y)
>  LINUX_IMAGE_NAME = simpleImage.$(firstword $(LINUX_DTS_NAME))
>  else ifeq ($(BR2_LINUX_KERNEL_IMAGE),y)
>  LINUX_IMAGE_NAME = Image
> +else ifeq ($(BR2_LINUX_KERNEL_IMAGE_GZ),y)
> +LINUX_IMAGE_NAME = Image.gz
>  else ifeq ($(BR2_LINUX_KERNEL_LINUX_BIN),y)
>  LINUX_IMAGE_NAME = linux.bin
>  else ifeq ($(BR2_LINUX_KERNEL_VMLINUX_BIN),y)

Tested-by: Tian Yuanhao <tianyuanhao@aliyun.com>
diff mbox series

Patch

diff --git a/linux/Config.in b/linux/Config.in
index 9f2af6da5b..73b9c30b26 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -262,6 +262,10 @@  config BR2_LINUX_KERNEL_IMAGE
 	bool "Image"
 	depends on BR2_aarch64 || BR2_riscv
 
+config BR2_LINUX_KERNEL_IMAGE_GZ
+	bool "Image.gz"
+	depends on BR2_aarch64 || BR2_riscv
+
 config BR2_LINUX_KERNEL_LINUX_BIN
 	bool "linux.bin"
 	depends on BR2_microblaze
diff --git a/linux/linux.mk b/linux/linux.mk
index e07e014d1e..133023f78c 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -201,6 +201,8 @@  else ifeq ($(BR2_LINUX_KERNEL_SIMPLEIMAGE),y)
 LINUX_IMAGE_NAME = simpleImage.$(firstword $(LINUX_DTS_NAME))
 else ifeq ($(BR2_LINUX_KERNEL_IMAGE),y)
 LINUX_IMAGE_NAME = Image
+else ifeq ($(BR2_LINUX_KERNEL_IMAGE_GZ),y)
+LINUX_IMAGE_NAME = Image.gz
 else ifeq ($(BR2_LINUX_KERNEL_LINUX_BIN),y)
 LINUX_IMAGE_NAME = linux.bin
 else ifeq ($(BR2_LINUX_KERNEL_VMLINUX_BIN),y)