From: Jan Kiszka <jan.kiszka@siemens.com>
To: Uladzimir Bely <ubely@ilbers.de>, <isar-users@googlegroups.com>
Subject: Re: [PATCH v3 00/20] Sbuild/Schroot migration
Date: Wed, 8 Dec 2021 18:20:45 +0100 [thread overview]
Message-ID: <76aefe9a-56ce-91f5-d0a6-0149fad1e507@siemens.com> (raw)
In-Reply-To: <1978289.YKUYFuaPT4@hp>
On 08.12.21 14:40, Uladzimir Bely wrote:
> In mail from среда, 8 декабря 2021 г. 16:05:24 +03 user Uladzimir Bely wrote:
>> This is a patchset showing how sbuild/schroot tools can be integrated
>> into Isar build system.
>>
>> Base schroot image is created with sbuild-chroot-target (or
>> sbuild-chroot-host in case of cross-build) recipe. These images are based
>> on isar-bootstrap ones, but include some build-related stuff preinstalled.
>>
>> To use this changes you need to have sbuild and schroot installed and
>> configured. Current user should be added to sbuild group.
>>
>> If 'kas-container' is used, it should be modified to support sbuild:
>> - /var/lib/schroot/union/overlay should be externally mounted (-v option)
>> - export KAS_IMAGE_VERSION=2.6.2-sbuild
>> - export KAS_CONTAINER_IMAGE_PATH=ghcr.io/wiselord
>> Here I uploaded a docker image that has preinstalled software (sbuild,
>> schroot, etc) required to run sbuild. Later, the changes might be
>> included in official kas docker images.
>>
>> If 'gitlab' is used, the similar changes are required:
>> - 'image: ghcr.io/wiselord/kas-isar:2.6.2-sbuild' in .gitlab-ci.yml
>> - external dir for schroot overlay should also be specified in
>> /etc/gitlab-runner/config.toml:
>> volumes = ["/path/to/overlay:/var/lib/schroot/union/overlay"]
>>
>> The patchset was tested with 'meta-iot2050' and 'xenomai-images'
>> downstreams. Some patches are required for these downstreams,
>> appropriate pull requests will be created soon.
>>
>> Changes since v2:
>> - patches reworked/squashed for easier reading and understanding
>> - fixed building foreigh architectures with kas-docker
>> - implemented support of ccache
>> - fixed devshell and devshell_nodeps
>> Changes since v1:
>> - parallel builds with different BUILD_DIR are supported
>> - parallel multiconfig targets in one build are supported
>> - per-task schroot configuration in /etc/schroot/ is now used
>> - patchset now passes Jenkins CI (so patches changes RFC => PATCH)
>>
>> Current limitations:
>> - parallel building of several packages requires more free space in
>> comparison with buildchroot-based architecture. This happens due
>> the sbuild architecture which uses some basic layer (common for all
>> packages) and per-package separate layer (where builddeps are downloaded
>> and installed).
>>
>> For experiments, the code can be taken from Isar 'ubely/sbuild' branch.
>> This is a dev branch, so sometimes it can be force-pushed when some
>> fixes are applied of rebased to 'next' branch.
>>
>> First 9 patches (1..9) - are just preparation patches. With them, Isar will
>> continue using buildchroot-based architecture. So, potentially,
>> they can be merged as a subseries.
>>
>> Remaining 11 patches (10..20) represent a sbuild-related changes.
>>
>> Anton Mikanovich (10):
>> template: Make templates passthrough
>> linux-module: Do not use shell environment
>> u-boot: Do not use shell environment
>> trusted-firmware: Do not use shell environment
>> optee-os: Do not use shell environment
>> kselftest: Do not use shell environment
>> linux-mainline: Move cfg fragment test to debian/rules
>> dpkg: Build packages with sbuild
>> sbuild: Introduce environment variables export API
>> linux-custom: Prepare kernel config inside sbuild
>>
>> Uladzimir Bely (10):
>> dpkg-gbp: Use separate command to export tarball
>> dpkg-gbp: Use host tools for dsc preparation
>> sbuild: Add recipes for host and target rootfs to run sbuild
>> sbuild: Introduce a class for another build method
>> dpkg: Remove builddeps install task.
>> dpkg-base: Switch devshell to use schroot
>> dpkg-base: Switch apt_fetch and apt_unpack to use schroot
>> dpkg-base: Cleanup from buildchroot parts.
>> doc: Add sbuild-related documentation
>> sbuild: add ccache support
>>
>> doc/user_manual.md | 22 ++-
>> .../optee-os/optee-os-stm32mp15x_3.11.0.bb | 2 +-
>> .../linux/linux-mainline_5.4.70.bb | 16 +-
>> meta/classes/dpkg-base.bbclass | 98 ++++------
>> meta/classes/dpkg-gbp.bbclass | 26 +--
>> meta/classes/dpkg.bbclass | 53 ++---
>> meta/classes/sbuild.bbclass | 184 ++++++++++++++++++
>> meta/classes/template.bbclass | 7 +-
>> meta/conf/bitbake.conf | 2 +
>> .../files/debian/{rules => rules.tmpl} | 4 +-
>> meta/recipes-bsp/optee-os/optee-os-custom.inc | 9 +-
>> .../files/debian/{rules => rules.tmpl} | 4 +-
>> .../trusted-firmware-a-custom.inc | 9 +-
>> .../u-boot/files/debian/{rules => rules.tmpl} | 2 +-
>> meta/recipes-bsp/u-boot/u-boot-custom.inc | 9 +-
>> .../sbuild-chroot/sbuild-chroot-host.bb | 13 ++
>> .../sbuild-chroot/sbuild-chroot-target.bb | 10 +
>> .../sbuild-chroot/sbuild-chroot.inc | 39 ++++
>> .../kselftest/files/{rules => rules.tmpl} | 0
>> meta/recipes-kernel/kselftest/kselftest.inc | 21 +-
>> .../linux-module/files/debian/rules | 37 ----
>> .../linux-module/files/debian/rules.tmpl | 52 +++++
>> meta/recipes-kernel/linux-module/module.inc | 19 +-
>> meta/recipes-kernel/linux/linux-custom.inc | 7 +-
>> 24 files changed, 437 insertions(+), 208 deletions(-)
>> create mode 100644 meta/classes/sbuild.bbclass
>> rename meta/recipes-bsp/optee-os/files/debian/{rules => rules.tmpl} (75%)
>> rename meta/recipes-bsp/trusted-firmware-a/files/debian/{rules =>
>> rules.tmpl} (77%) rename meta/recipes-bsp/u-boot/files/debian/{rules =>
>> rules.tmpl} (94%) create mode 100644
>> meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb create mode
>> 100644 meta/recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb create
>> mode 100644 meta/recipes-devtools/sbuild-chroot/sbuild-chroot.inc rename
>> meta/recipes-kernel/kselftest/files/{rules => rules.tmpl} (100%) delete
>> mode 100755 meta/recipes-kernel/linux-module/files/debian/rules create mode
>> 100755 meta/recipes-kernel/linux-module/files/debian/rules.tmpl
>
> Just a question: Does 'xenomai-images' and 'meta-iot2050' have their own
> maillists where I could send the changes to work with isar-based sbuild? I
> just found a maillist for 'kas', but not for these projects.
>
For xenomai-images, we handle changes via xenomai@xenomai.org (please
additional tag related patches with "[xenomai-images]").
meta-iot2050 takes pull requests on github.
For both projects, changes that will work with current Isar can already
be submitted. Changes that depend on your pending series could be
proposed along with an Isar revision bump once 'next' picked up your
queue. Or send them earlier with a clear remark that those are for
reference and future use. But it is probably better to wait for the
'next' merge.
Thanks,
Jan
--
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
prev parent reply other threads:[~2021-12-08 17:20 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-08 13:05 Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 01/20] dpkg-gbp: Use separate command to export tarball Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 02/20] template: Make templates passthrough Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 03/20] linux-module: Do not use shell environment Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 04/20] u-boot: " Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 05/20] trusted-firmware: " Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 06/20] optee-os: " Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 07/20] kselftest: " Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 08/20] linux-mainline: Move cfg fragment test to debian/rules Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 09/20] dpkg-gbp: Use host tools for dsc preparation Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 10/20] sbuild: Add recipes for host and target rootfs to run sbuild Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 11/20] sbuild: Introduce a class for another build method Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 12/20] dpkg: Build packages with sbuild Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 13/20] sbuild: Introduce environment variables export API Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 14/20] linux-custom: Prepare kernel config inside sbuild Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 15/20] dpkg: Remove builddeps install task Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 16/20] dpkg-base: Switch devshell to use schroot Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 17/20] dpkg-base: Switch apt_fetch and apt_unpack " Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 18/20] dpkg-base: Cleanup from buildchroot parts Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 19/20] doc: Add sbuild-related documentation Uladzimir Bely
2021-12-08 13:05 ` [PATCH v3 20/20] sbuild: add ccache support Uladzimir Bely
2021-12-08 13:40 ` [PATCH v3 00/20] Sbuild/Schroot migration Uladzimir Bely
2021-12-08 17:20 ` Jan Kiszka [this message]
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=76aefe9a-56ce-91f5-d0a6-0149fad1e507@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