From: Jan Kiszka <jan.kiszka@siemens.com>
To: Uladzimir Bely <ubely@ilbers.de>, isar-users@googlegroups.com
Subject: Re: [PATCH 05/13] kas: Add packages selection
Date: Sat, 16 Sep 2023 15:07:40 +0530 [thread overview]
Message-ID: <6191ea6a-0889-4b57-aed3-bb8ec5f961cf@siemens.com> (raw)
In-Reply-To: <20230915064426.27676-6-ubely@ilbers.de>
On 15.09.23 12:14, Uladzimir Bely wrote:
> This part of configuration allows to choose which additional packages
> (both from Isar and Debian) to include to the target image.
>
> Isar packages are added to IMAGE_INSTALL since Debian packages go
> to IMAGE_PREINSTALL.
>
> The features are implemented as "string" parameter in the menu since
> it reduces a number of required YAML fragments.
>
> Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
> ---
> kas/opt/Kconfig | 41 +++++++++++++++++++++++++++++++++++++
> kas/opt/packages-distro.yml | 6 ++++++
> kas/opt/packages-isar.yml | 6 ++++++
> 3 files changed, 53 insertions(+)
> create mode 100644 kas/opt/packages-distro.yml
> create mode 100644 kas/opt/packages-isar.yml
>
> diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig
> index c6e60583..1aa319dc 100644
> --- a/kas/opt/Kconfig
> +++ b/kas/opt/Kconfig
> @@ -32,3 +32,44 @@ config KAS_INCLUDE_MIRROR_UBUNTU
> depends on MIRROR_UBUNTU
>
> endmenu
> +
> +menu "Packages selection"
> +
> +config KAS_IMAGE_INSTALL
> + string "Isar packages"
> + default ""
The default we have in the local.conf.sample is different. Is this list
here much shorter on purpose? I'm not necessarily asking for the full
list, just reflecting on this.
> + help
> + Space-separated list of packages that are build by Isar, usually from
> + the sources. Isar provides build-in recipes for these packages.
> + The list includes (but not limited by) the following packages:
> + cowsay
> + enable-fsck
> + example-raw
> + example-module-${KERNEL_NAME}
> + example-prebuilt
> + expand-on-first-boot
> + hello
> + hello-isar
> + isar-exclude-docs
> + isar-disable-apt-cache
> + kselftest
> + samefile
> + sshd-regen-keys
A string is a bit unhandy, at least for the known internal packages.
OTOH, it may then need a kas yaml snippet for each package the user
could select.
> +
> +config KAS_INCLUDE_PACKAGES_ISAR
> + string
> + default "kas/opt/packages-isar.yml"
> +
> +config KAS_IMAGE_PREINSTALL
> + string "Distro packages"
> + default ""
A nice default would be adding networking packages.
> + help
> + Space-separated list of packages that are provided by the selected distro.
> + These packages are downloaded from distro mirrors and just unpacked
> + and configured by Isar.
> +
> +config KAS_INCLUDE_PACKAGES_DISTRO
> + string
> + default "kas/opt/packages-distro.yml"
> +
> +endmenu
> diff --git a/kas/opt/packages-distro.yml b/kas/opt/packages-distro.yml
> new file mode 100644
> index 00000000..d2fca914
> --- /dev/null
> +++ b/kas/opt/packages-distro.yml
> @@ -0,0 +1,6 @@
> +header:
> + version: 14
> +
> +local_conf_header:
> + packages-distro: |
> + IMAGE_PREINSTALL:append = " ${KAS_IMAGE_PREINSTALL}"
> diff --git a/kas/opt/packages-isar.yml b/kas/opt/packages-isar.yml
> new file mode 100644
> index 00000000..c8da258d
> --- /dev/null
> +++ b/kas/opt/packages-isar.yml
> @@ -0,0 +1,6 @@
> +header:
> + version: 14
> +
> +local_conf_header:
> + packages-isar: |
> + IMAGE_INSTALL:append = " ${KAS_IMAGE_INSTALL}"
Jan
--
Siemens AG, Technology
Linux Expert Center
next prev parent reply other threads:[~2023-09-16 9:37 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
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 [this message]
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=6191ea6a-0889-4b57-aed3-bb8ec5f961cf@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