public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] kas: Allow to define custom snapshot date
@ 2024-10-04 10:20 'Jan Kiszka' via isar-users
  2024-10-07  7:26 ` 'MOESSBAUER, Felix' via isar-users
  0 siblings, 1 reply; 4+ messages in thread
From: 'Jan Kiszka' via isar-users @ 2024-10-04 10:20 UTC (permalink / raw)
  To: isar-users

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>
---
 kas/opt/Kconfig | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig
index 65482e3a..de7700f5 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_TIMESTAMP.
+		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_TIMESTAMP
+	string "Custom snapshot date"
+	depends on APT_SNAPSHOT_CUSTOM_DATE
+	default "1707606000"
 
 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/010cb6be-1909-4113-86b8-22f9f2365c28%40siemens.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] kas: Allow to define custom snapshot date
  2024-10-04 10:20 [PATCH] kas: Allow to define custom snapshot date 'Jan Kiszka' via isar-users
@ 2024-10-07  7:26 ` 'MOESSBAUER, Felix' via isar-users
  2024-10-07  9:57   ` 'Jan Kiszka' via isar-users
  0 siblings, 1 reply; 4+ messages in thread
From: 'MOESSBAUER, Felix' via isar-users @ 2024-10-07  7:26 UTC (permalink / raw)
  To: isar-users, Kiszka, Jan; +Cc: Heinisch, Alexander

On Fri, 2024-10-04 at 12:20 +0200, 'Jan Kiszka' via isar-users wrote:
> 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>
> ---
>  kas/opt/Kconfig | 20 +++++++++++++++++++-
>  1 file changed, 19 insertions(+), 1 deletion(-)
> 
> diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig
> index 65482e3a..de7700f5 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_TIMESTAMP.
> +               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"

The term "date" might be misleading here, as the value is a unix
timestamp. IIRC Alexander wanted to send a similar patch to specify the
apt snaptshot date in the upstream format (e.g. 20240702T082400Z),
making it easier to read.

Either we rename that here to "Custom timestamp", or we wait for the
patch of Alexander and adapt accordingly.

Felix

> +
> +endchoice
> +
> +config ISAR_APT_SNAPSHOT_TIMESTAMP
> +       string "Custom snapshot date"
> +       depends on APT_SNAPSHOT_CUSTOM_DATE
> +       default "1707606000"
>  
>  config KAS_INCLUDE_APT_SNAPSHOT
>         string
> -- 
> 2.43.0
> 

-- 
Siemens AG, Technology
Linux Expert Center


-- 
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/1e13ffea7a0132e5bb60592329f056d333b0d034.camel%40siemens.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] kas: Allow to define custom snapshot date
  2024-10-07  7:26 ` 'MOESSBAUER, Felix' via isar-users
@ 2024-10-07  9:57   ` 'Jan Kiszka' via isar-users
  2024-10-07 10:57     ` 'Heinisch, Alexander' via isar-users
  0 siblings, 1 reply; 4+ messages in thread
From: 'Jan Kiszka' via isar-users @ 2024-10-07  9:57 UTC (permalink / raw)
  To: Moessbauer, Felix (FT RPD CED OES-DE), isar-users
  Cc: Heinisch, Alexander (T CED SES-AT)

On 07.10.24 09:26, Moessbauer, Felix (FT RPD CED OES-DE) wrote:
> On Fri, 2024-10-04 at 12:20 +0200, 'Jan Kiszka' via isar-users wrote:
>> 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>
>> ---
>>  kas/opt/Kconfig | 20 +++++++++++++++++++-
>>  1 file changed, 19 insertions(+), 1 deletion(-)
>>
>> diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig
>> index 65482e3a..de7700f5 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_TIMESTAMP.
>> +               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"
> 
> The term "date" might be misleading here, as the value is a unix
> timestamp. IIRC Alexander wanted to send a similar patch to specify the
> apt snaptshot date in the upstream format (e.g. 20240702T082400Z),
> making it easier to read.
> 
> Either we rename that here to "Custom timestamp", or we wait for the
> patch of Alexander and adapt accordingly.

This just exposes an existing isar variable. I can clarify the
description of that string.

I also tried some ad-hoc conversion, but the inline python support of
bitbake is too limited for that (required "import datetime; ..."). We
need some helper in the base class for that.

Jan

-- 
Siemens AG, Technology
Linux Expert Center

-- 
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/144150fd-3f1e-4182-bcf6-b3b55cea0f95%40siemens.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH] kas: Allow to define custom snapshot date
  2024-10-07  9:57   ` 'Jan Kiszka' via isar-users
@ 2024-10-07 10:57     ` 'Heinisch, Alexander' via isar-users
  0 siblings, 0 replies; 4+ messages in thread
From: 'Heinisch, Alexander' via isar-users @ 2024-10-07 10:57 UTC (permalink / raw)
  To: Kiszka, Jan, MOESSBAUER, Felix, isar-users

> > The term "date" might be misleading here, as the value is a unix 
> > timestamp. IIRC Alexander wanted to send a similar patch to specify 
> > the apt snaptshot date in the upstream format (e.g. 20240702T082400Z), 
> > making it easier to read.
> > 
> > Either we rename that here to "Custom timestamp", or we wait for the 
> > patch of Alexander and adapt accordingly.

Just posted: https://groups.google.com/g/isar-users/c/PzIksFyNDyc

BR Alexander

> 
> This just exposes an existing isar variable. I can clarify the description of that string.
> 
> I also tried some ad-hoc conversion, but the inline python support of bitbake is too limited for that (required "import datetime; ..."). We need some helper in the base class for that.

-- 
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/AM7PR10MB3320D3516A49AC53B7A2DDEC867D2%40AM7PR10MB3320.EURPRD10.PROD.OUTLOOK.COM.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-07 10:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-04 10:20 [PATCH] kas: Allow to define custom snapshot date 'Jan Kiszka' via isar-users
2024-10-07  7:26 ` 'MOESSBAUER, Felix' via isar-users
2024-10-07  9:57   ` 'Jan Kiszka' via isar-users
2024-10-07 10:57     ` '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