From: Jan Kiszka <jan.kiszka@siemens.com>
To: Uladzimir Bely <ubely@ilbers.de>, isar-users@googlegroups.com
Subject: Re: [PATCH 04/13] kas: Add mirror selection
Date: Sat, 16 Sep 2023 15:04:03 +0530 [thread overview]
Message-ID: <2bb318db-2bf1-4692-adba-662270817390@siemens.com> (raw)
In-Reply-To: <20230915064426.27676-5-ubely@ilbers.de>
On 15.09.23 12:14, Uladzimir Bely wrote:
> This allows to select better (faster) mirror for Debian and Ubuntu
> distributions.
>
> Isar DISTRO_APT_PREMIRRORS is used under the hood.
>
> Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
> ---
> Kconfig | 1 +
> kas/opt/Kconfig | 34 ++++++++++++++++++++++++++++++++++
> kas/opt/mirror-debian.yml | 7 +++++++
> kas/opt/mirror-ubuntu.yml | 7 +++++++
> 4 files changed, 49 insertions(+)
> create mode 100644 kas/opt/Kconfig
> create mode 100644 kas/opt/mirror-debian.yml
> create mode 100644 kas/opt/mirror-ubuntu.yml
>
> diff --git a/Kconfig b/Kconfig
> index ac77fb81..4c2e2339 100644
> --- a/Kconfig
> +++ b/Kconfig
> @@ -10,3 +10,4 @@ config KAS_BUILD_SYSTEM
>
> source "kas/machine/Kconfig"
> source "kas/distro/Kconfig"
> +source "kas/opt/Kconfig"
> diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig
> new file mode 100644
> index 00000000..c6e60583
> --- /dev/null
> +++ b/kas/opt/Kconfig
> @@ -0,0 +1,34 @@
> +menu "Mirror selection"
> +
> +config MIRROR_DEBIAN
> + bool "Use specific Debian mirror"
depends on DEBIAN_BOOKWORM || ...
> + help
> + Select better local Debian mirror instead of deb.debian.org
> +
> +config MIRROR_DEBIAN_URL
> + string "URL of Debian mirror"
> + default "http://deb.debian.org"
> + depends on MIRROR_DEBIAN
> +
> +config KAS_INCLUDE_MIRROR_DEBIAN
> + string
> + default "kas/opt/mirror-debian.yml"
> + depends on MIRROR_DEBIAN
> +
> +
> +config MIRROR_UBUNTU
> + bool "Use specific Ubuntu mirror"
depens on UBUNTU_FOCAL || ...
> + help
> + Select better local Ubuntu mirror instead of archive.ubuntu.com
> +
> +config MIRROR_UBUNTU_URL
> + string "URL of Ubuntu mirror"
> + default "http://archive.ubuntu.com"
> + depends on MIRROR_UBUNTU
> +
> +config KAS_INCLUDE_MIRROR_UBUNTU
> + string
> + default "kas/opt/mirror-ubuntu.yml"
> + depends on MIRROR_UBUNTU
> +
> +endmenu
> diff --git a/kas/opt/mirror-debian.yml b/kas/opt/mirror-debian.yml
> new file mode 100644
> index 00000000..ad708f2e
> --- /dev/null
> +++ b/kas/opt/mirror-debian.yml
> @@ -0,0 +1,7 @@
> +header:
> + version: 14
> +
> +local_conf_header:
> + mirror-debian: |
> + DISTRO_APT_PREMIRRORS += "\
> + http://deb\.debian\.org ${MIRROR_DEBIAN_URL}\n"
> diff --git a/kas/opt/mirror-ubuntu.yml b/kas/opt/mirror-ubuntu.yml
> new file mode 100644
> index 00000000..beb73d59
> --- /dev/null
> +++ b/kas/opt/mirror-ubuntu.yml
> @@ -0,0 +1,7 @@
> +header:
> + version: 14
> +
> +local_conf_header:
> + mirror-ubuntu: |
> + DISTRO_APT_PREMIRRORS += "\
> + http://archive\.ubuntu\.com ${MIRROR_UBUNTU_URL}\n"
Jan
--
Siemens AG, Technology
Linux Expert Center
next prev parent reply other threads:[~2023-09-16 9:34 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-15 6:44 [PATCH 00/13] Support building Isar using kas Uladzimir Bely
2023-09-15 6:44 ` [PATCH 01/13] kas: Add initial Kconfig support Uladzimir Bely
2023-09-15 6:44 ` [PATCH 02/13] kas: Add a local copy of kas-container script Uladzimir Bely
2023-09-15 6:44 ` [PATCH 03/13] kas: Add dependencies between machine and distro configuration Uladzimir Bely
2023-09-16 9:34 ` Jan Kiszka
2023-09-19 6:30 ` Uladzimir Bely
2023-09-19 6:43 ` Jan Kiszka
2023-09-15 6:44 ` [PATCH 04/13] kas: Add mirror selection Uladzimir Bely
2023-09-16 9:34 ` Jan Kiszka [this message]
2023-09-19 6:31 ` Uladzimir Bely
2023-09-15 6:44 ` [PATCH 05/13] kas: Add packages selection Uladzimir Bely
2023-09-16 9:37 ` Jan Kiszka
2023-09-16 16:10 ` Jan Kiszka
2023-09-15 6:44 ` [PATCH 06/13] kas: Add COMPAT_ARCH support Uladzimir Bely
2023-09-15 6:44 ` [PATCH 07/13] kas: Add cross compilation mode selection support Uladzimir Bely
2023-09-15 6:44 ` [PATCH 08/13] kas: Add ccache option Uladzimir Bely
2023-09-15 6:44 ` [PATCH 09/13] kas: Add image type selection Uladzimir Bely
2023-09-16 9:57 ` Jan Kiszka
2023-09-19 6:32 ` Uladzimir Bely
2023-09-15 6:44 ` [PATCH 10/13] kas: Add IMAGE_FSTYPES selection Uladzimir Bely
2023-09-15 6:44 ` [PATCH 11/13] kas: Support CACHE_DEB_SRC option in menu Uladzimir Bely
2023-09-15 6:44 ` [PATCH 12/13] kas: Add options to activate predefined users Uladzimir Bely
2023-09-16 9:39 ` Jan Kiszka
2023-09-15 6:44 ` [PATCH 13/13] kas: Add Readme.md Uladzimir Bely
2023-09-16 9:40 ` [PATCH 00/13] Support building Isar using kas Jan Kiszka
2023-09-16 10:02 ` Jan Kiszka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2bb318db-2bf1-4692-adba-662270817390@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=ubely@ilbers.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox