* [PATCH v2] kas: Allow to define custom snapshot date
@ 2024-10-10 4:45 'Jan Kiszka' via isar-users
2024-10-10 16:26 ` 'Heinisch, Alexander' via isar-users
0 siblings, 1 reply; 2+ messages in thread
From: 'Jan Kiszka' via isar-users @ 2024-10-10 4:45 UTC (permalink / raw)
To: isar-users
Cc: Heinisch, Alexander (T CED SES-AT), Moessbauer, Felix (T CED SES-DE)
From: Jan Kiszka <jan.kiszka@siemens.com>
Currently very useful for building constantly broken riscv via sid. The
default value is actually a known-to-work one, taken from isar-cip-core.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
Changes in v2:
- base on ISAR_APT_SNAPSHOT_DATE patch
Depends on https://patchwork.isar-build.org/project/isar/patch/20241007122709.215901-1-alexander.heinisch@siemens.com/
kas/opt/Kconfig | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig
index 1e56c29f..b29a25e5 100644
--- a/kas/opt/Kconfig
+++ b/kas/opt/Kconfig
@@ -44,7 +44,25 @@ config USE_APT_SNAPSHOT
bool "Use the distros snapshot mirror"
depends on !MIRROR_DEBIAN && (DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM || DEBIAN_TRIXIE || DEBIAN_SID || UBUNTU_FOCAL || UBUNTU_JAMMY)
help
- Use a snapshot mirror for the selected distribution. The date is defined by ISAR_APT_SNAPSHOT_DATE.
+ Use a snapshot mirror for the selected distribution.
+
+choice
+ prompt "Snapshot date"
+ depends on USE_APT_SNAPSHOT
+ default APT_SNAPSHOT_GIT_DATE
+
+config APT_SNAPSHOT_GIT_DATE
+ bool "Latest git commit"
+
+config APT_SNAPSHOT_CUSTOM_DATE
+ bool "Custom date"
+
+endchoice
+
+config ISAR_APT_SNAPSHOT_DATE
+ string "Custom snapshot date"
+ depends on APT_SNAPSHOT_CUSTOM_DATE
+ default "20240211T000000Z"
config KAS_INCLUDE_APT_SNAPSHOT
string
--
2.43.0
--
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 on the web visit https://groups.google.com/d/msgid/isar-users/0eeb5f86-30b7-4904-986a-e57ac9203cc2%40siemens.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [PATCH v2] kas: Allow to define custom snapshot date
2024-10-10 4:45 [PATCH v2] kas: Allow to define custom snapshot date 'Jan Kiszka' via isar-users
@ 2024-10-10 16:26 ` 'Heinisch, Alexander' via isar-users
0 siblings, 0 replies; 2+ messages in thread
From: 'Heinisch, Alexander' via isar-users @ 2024-10-10 16:26 UTC (permalink / raw)
To: Kiszka, Jan, isar-users; +Cc: MOESSBAUER, Felix
> Currently very useful for building constantly broken riscv via sid. The default value is actually a known-to-work one, taken from isar-cip-core.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> ---
>
> Changes in v2:
> - base on ISAR_APT_SNAPSHOT_DATE patch
>
> Depends on https://patchwork.isar-build.org/project/isar/patch/20241007122709.215901-1-alexander.heinisch@siemens.com/
>
> kas/opt/Kconfig | 20 +++++++++++++++++++-
> 1 file changed, 19 insertions(+), 1 deletion(-)
>
> diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig index 1e56c29f..b29a25e5 100644
> --- a/kas/opt/Kconfig
> +++ b/kas/opt/Kconfig
> @@ -44,7 +44,25 @@ config USE_APT_SNAPSHOT
> bool "Use the distros snapshot mirror"
> depends on !MIRROR_DEBIAN && (DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM || DEBIAN_TRIXIE || DEBIAN_SID || UBUNTU_FOCAL || UBUNTU_JAMMY)
> help
> - Use a snapshot mirror for the selected distribution. The date is defined by ISAR_APT_SNAPSHOT_DATE.
> + Use a snapshot mirror for the selected distribution.
> +
> +choice
> + prompt "Snapshot date"
> + depends on USE_APT_SNAPSHOT
> + default APT_SNAPSHOT_GIT_DATE
> +
> +config APT_SNAPSHOT_GIT_DATE
> + bool "Latest git commit"
"Use timestamp of latest git commit"
BR Alexander
--
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 on the web visit https://groups.google.com/d/msgid/isar-users/AM7PR10MB3320E24D96F83BE941882A9586782%40AM7PR10MB3320.EURPRD10.PROD.OUTLOOK.COM.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-10-10 16:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-10 4:45 [PATCH v2] kas: Allow to define custom snapshot date 'Jan Kiszka' via isar-users
2024-10-10 16:26 ` 'Heinisch, Alexander' via isar-users
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox