[PATCH] kas: Exclude example-module for container-amd64 builds

23 views
Skip to first unread message

srinuv...@siemens.com

unread,
Aug 16, 2025, 6:30:27 AMAug 16
to isar-...@googlegroups.com, srinuvasan
From: srinuvasan <srinuv...@siemens.com>

When building for the container-amd64 machine via the kas menu, the build
hangs during the parsing stage. The example-module is not required for
container-based machines, but it is currently included by default.

Exclude the example-module block when targeting container-amd64 to avoid
these issues.

Signed-off-by: srinuvasan <srinuv...@siemens.com>
---
kas/package/Kconfig | 2 ++
1 file changed, 2 insertions(+)

diff --git a/kas/package/Kconfig b/kas/package/Kconfig
index a49041e8..e0b7754d 100644
--- a/kas/package/Kconfig
+++ b/kas/package/Kconfig
@@ -37,6 +37,7 @@ config KAS_INCLUDE_PACKAGE_EXAMPLE_RAW
default "kas/package/pkg_example-raw.yaml"
depends on PACKAGE_EXAMPLE_RAW

+if !MACHINE_CONTAINER_AMD64

config PACKAGE_EXAMPLE_MODULE
bool "example-module"
@@ -47,6 +48,7 @@ config KAS_INCLUDE_PACKAGE_EXAMPLE_MODULE
default "kas/package/pkg_example-module.yaml"
depends on PACKAGE_EXAMPLE_MODULE

+endif

config PACKAGE_EXAMPLE_PREBUILT
bool "example-prebuilt"
--
2.39.5

Jan Kiszka

unread,
Aug 17, 2025, 12:20:41 PMAug 17
to srinuv...@siemens.com, isar-...@googlegroups.com
On 16.08.25 12:32, srinuvasan.a via isar-users wrote:
> From: srinuvasan <srinuv...@siemens.com>
>
> When building for the container-amd64 machine via the kas menu, the build
> hangs during the parsing stage. The example-module is not required for
> container-based machines, but it is currently included by default.
>
> Exclude the example-module block when targeting container-amd64 to avoid
> these issues.
>
> Signed-off-by: srinuvasan <srinuv...@siemens.com>
> ---
> kas/package/Kconfig | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/kas/package/Kconfig b/kas/package/Kconfig
> index a49041e8..e0b7754d 100644
> --- a/kas/package/Kconfig
> +++ b/kas/package/Kconfig
> @@ -37,6 +37,7 @@ config KAS_INCLUDE_PACKAGE_EXAMPLE_RAW
> default "kas/package/pkg_example-raw.yaml"
> depends on PACKAGE_EXAMPLE_RAW
>
> +if !MACHINE_CONTAINER_AMD64
>

You just need to make the package "depends on !", just like was done
already for others.

Jan

> config PACKAGE_EXAMPLE_MODULE
> bool "example-module"
> @@ -47,6 +48,7 @@ config KAS_INCLUDE_PACKAGE_EXAMPLE_MODULE
> default "kas/package/pkg_example-module.yaml"
> depends on PACKAGE_EXAMPLE_MODULE
>
> +endif
>
> config PACKAGE_EXAMPLE_PREBUILT
> bool "example-prebuilt"

--
Siemens AG, Foundational Technologies
Linux Expert Center

srinuv...@siemens.com

unread,
Aug 18, 2025, 6:00:36 AMAug 18
to isar-...@googlegroups.com, srinuvasan
From: srinuvasan <srinuv...@siemens.com>

When building for the container-amd64 machine via the kas menu, the build
hangs during the parsing stage. The example-module is not required for
container-based machines, but it is currently included by default.

Exclude the example-module block when targeting container-amd64 to avoid
these issues.

Signed-off-by: srinuvasan <srinuv...@siemens.com>
---
kas/package/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kas/package/Kconfig b/kas/package/Kconfig
index a49041e8..1e69942a 100644
--- a/kas/package/Kconfig
+++ b/kas/package/Kconfig
@@ -37,10 +37,10 @@ config KAS_INCLUDE_PACKAGE_EXAMPLE_RAW
default "kas/package/pkg_example-raw.yaml"
depends on PACKAGE_EXAMPLE_RAW

-
config PACKAGE_EXAMPLE_MODULE
bool "example-module"
default y
+ depends on !MACHINE_CONTAINER_AMD64

config KAS_INCLUDE_PACKAGE_EXAMPLE_MODULE
string
--
2.39.5

srinuv...@siemens.com

unread,
Aug 18, 2025, 6:09:40 AMAug 18
to isar-...@googlegroups.com, srinuvasan
From: srinuvasan <srinuv...@siemens.com>

When building for the container-amd64 machine via the kas menu, the build
hangs during the parsing stage. The example-module is not required for
container-based machines, but it is currently included by default.

Exclude the example-module block when targeting container-amd64 to avoid
these issues.

Signed-off-by: srinuvasan <srinuv...@siemens.com>
---
kas/package/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/kas/package/Kconfig b/kas/package/Kconfig
index a49041e8..d279e7e6 100644
--- a/kas/package/Kconfig
+++ b/kas/package/Kconfig
@@ -41,6 +41,7 @@ config KAS_INCLUDE_PACKAGE_EXAMPLE_RAW

Jan Kiszka

unread,
Aug 18, 2025, 6:56:45 AMAug 18
to srinuv...@siemens.com, isar-...@googlegroups.com
Reviewed-by: Jan Kiszka <jan.k...@siemens.com>

Jan
Reply all
Reply to author
Forward
0 new messages