* [PATCH] kas: Add offline build option
@ 2026-07-01 14:10 Anton Mikanovich
2026-07-17 14:04 ` Zhihang Wei
0 siblings, 1 reply; 2+ messages in thread
From: Anton Mikanovich @ 2026-07-01 14:10 UTC (permalink / raw)
To: isar-users; +Cc: Anton Mikanovich
Allow enabling offline build in kas menu.
It enables base-apt and disables networking access for the recipes.
Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
kas/opt/Kconfig | 9 +++++++++
kas/opt/offline.yaml | 12 ++++++++++++
2 files changed, 21 insertions(+)
create mode 100644 kas/opt/offline.yaml
diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig
index ac9b2f55..bc4ed997 100644
--- a/kas/opt/Kconfig
+++ b/kas/opt/Kconfig
@@ -162,6 +162,15 @@ config KAS_INCLUDE_ISAR_CROSS_COMPILE
default "kas/opt/crosscompile.yaml"
+config ISAR_OFFLINE_BUILD
+ bool "Enable offline building"
+
+config KAS_INCLUDE_ISAR_OFFLINE_BUILD
+ string
+ default "kas/opt/offline.yaml"
+ depends on ISAR_OFFLINE_BUILD
+
+
config USE_CCACHE
bool "Use ccache during build"
default y
diff --git a/kas/opt/offline.yaml b/kas/opt/offline.yaml
new file mode 100644
index 00000000..1526a5f2
--- /dev/null
+++ b/kas/opt/offline.yaml
@@ -0,0 +1,12 @@
+# This software is a part of Isar.
+# Copyright (C) 2026 ilbers GmbH
+#
+# SPDX-License-Identifier: MIT
+
+header:
+ version: 14
+
+local_conf_header:
+ offline: |
+ ISAR_USE_CACHED_BASE_REPO = "1"
+ BB_NO_NETWORK = "1"
--
2.34.1
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260701141022.2041350-1-amikan%40ilbers.de.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] kas: Add offline build option
2026-07-01 14:10 [PATCH] kas: Add offline build option Anton Mikanovich
@ 2026-07-17 14:04 ` Zhihang Wei
0 siblings, 0 replies; 2+ messages in thread
From: Zhihang Wei @ 2026-07-17 14:04 UTC (permalink / raw)
To: Anton Mikanovich, isar-users
Applied to next, thanks.
Zhihang
On 7/1/26 16:10, Anton Mikanovich wrote:
> Allow enabling offline build in kas menu.
> It enables base-apt and disables networking access for the recipes.
>
> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
> ---
> kas/opt/Kconfig | 9 +++++++++
> kas/opt/offline.yaml | 12 ++++++++++++
> 2 files changed, 21 insertions(+)
> create mode 100644 kas/opt/offline.yaml
>
> diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig
> index ac9b2f55..bc4ed997 100644
> --- a/kas/opt/Kconfig
> +++ b/kas/opt/Kconfig
> @@ -162,6 +162,15 @@ config KAS_INCLUDE_ISAR_CROSS_COMPILE
> default "kas/opt/crosscompile.yaml"
>
>
> +config ISAR_OFFLINE_BUILD
> + bool "Enable offline building"
> +
> +config KAS_INCLUDE_ISAR_OFFLINE_BUILD
> + string
> + default "kas/opt/offline.yaml"
> + depends on ISAR_OFFLINE_BUILD
> +
> +
> config USE_CCACHE
> bool "Use ccache during build"
> default y
> diff --git a/kas/opt/offline.yaml b/kas/opt/offline.yaml
> new file mode 100644
> index 00000000..1526a5f2
> --- /dev/null
> +++ b/kas/opt/offline.yaml
> @@ -0,0 +1,12 @@
> +# This software is a part of Isar.
> +# Copyright (C) 2026 ilbers GmbH
> +#
> +# SPDX-License-Identifier: MIT
> +
> +header:
> + version: 14
> +
> +local_conf_header:
> + offline: |
> + ISAR_USE_CACHED_BASE_REPO = "1"
> + BB_NO_NETWORK = "1"
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/17b13f8a-b2e0-4ab4-884b-9bef33712a09%40ilbers.de.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-17 14:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-01 14:10 [PATCH] kas: Add offline build option Anton Mikanovich
2026-07-17 14:04 ` Zhihang Wei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox