diff mbox series

[isar-cip-core,2/2] Kconfig: Add config NO_KERNEL for kernel selection

Message ID 1740746806-6557-2-git-send-email-nobuhiro1.iwamatsu@toshiba.co.jp (mailing list archive)
State Changes Requested
Headers show
Series [isar-cip-core,1/2] kas/opt: Add option for not install kernel | expand

Commit Message

Nobuhiro Iwamatsu Feb. 28, 2025, 12:46 p.m. UTC
This adds config NO_KERNEL not to install the kernel select.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
---
 Kconfig | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Jan Kiszka Feb. 28, 2025, 3:41 p.m. UTC | #1
On 28.02.25 13:46, Nobuhiro Iwamatsu wrote:
> This adds config NO_KERNEL not to install the kernel select.
> 
> Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
> ---
>  Kconfig | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/Kconfig b/Kconfig
> index 3c246fa..cfa4d11 100644
> --- a/Kconfig
> +++ b/Kconfig
> @@ -100,6 +100,9 @@ config KERNEL_5_10
>  config KERNEL_6_1
>  	bool "Kernel 6.1.x-cip"
>  
> +config NO_KERNEL
> +	bool "Do not install kernel to image"

When is this useful? And will a normal user of isar-cip-core have that
use case as well so that we should expose it here?

Jan

> +
>  endchoice
>  
>  config KAS_INCLUDE_KERNEL
> @@ -108,6 +111,7 @@ config KAS_INCLUDE_KERNEL
>  	default "kas/opt/4.19.yml" if KERNEL_4_19
>  	default "kas/opt/5.10.yml" if KERNEL_5_10
>  	default "kas/opt/6.1.yml" if KERNEL_6_1
> +	default "kas/opt/no_kernel.yml" if NO_KERNEL
>  
>  config KERNEL_RT
>  	bool "Real-time CIP kernel"
Nobuhiro Iwamatsu March 5, 2025, 4:53 a.m. UTC | #2
Hi Jan,

> -----Original Message-----
> From: cip-dev@lists.cip-project.org <cip-dev@lists.cip-project.org> On
> Behalf Of Jan Kiszka via lists.cip-project.org
> Sent: Saturday, March 1, 2025 12:42 AM
> To: iwamatsu nobuhiro(岩松 信洋 ○DITC□DIT○OST)
> <nobuhiro1.iwamatsu@toshiba.co.jp>; cip-dev@lists.cip-project.org
> Subject: Re: [cip-dev] [isar-cip-core][PATCH 2/2] Kconfig: Add config
> NO_KERNEL for kernel selection
> 
> On 28.02.25 13:46, Nobuhiro Iwamatsu wrote:
> > This adds config NO_KERNEL not to install the kernel select.
> >
> > Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
> > ---
> >  Kconfig | 4 ++++
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/Kconfig b/Kconfig
> > index 3c246fa..cfa4d11 100644
> > --- a/Kconfig
> > +++ b/Kconfig
> > @@ -100,6 +100,9 @@ config KERNEL_5_10  config KERNEL_6_1
> >  	bool "Kernel 6.1.x-cip"
> >
> > +config NO_KERNEL
> > +	bool "Do not install kernel to image"
> 
> When is this useful? And will a normal user of isar-cip-core have that use case
> as well so that we should expose it here?

This is intended to be used to create rootfs images that do not include the kernel.
For example, testing the kernel does not require the rootfs to include the kernel.
Since the kernel is not included, the rootfs size will also be smaller.

> 
> Jan

Best regards,
  Nobuhiro
diff mbox series

Patch

diff --git a/Kconfig b/Kconfig
index 3c246fa..cfa4d11 100644
--- a/Kconfig
+++ b/Kconfig
@@ -100,6 +100,9 @@  config KERNEL_5_10
 config KERNEL_6_1
 	bool "Kernel 6.1.x-cip"
 
+config NO_KERNEL
+	bool "Do not install kernel to image"
+
 endchoice
 
 config KAS_INCLUDE_KERNEL
@@ -108,6 +111,7 @@  config KAS_INCLUDE_KERNEL
 	default "kas/opt/4.19.yml" if KERNEL_4_19
 	default "kas/opt/5.10.yml" if KERNEL_5_10
 	default "kas/opt/6.1.yml" if KERNEL_6_1
+	default "kas/opt/no_kernel.yml" if NO_KERNEL
 
 config KERNEL_RT
 	bool "Real-time CIP kernel"