From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6989231260094693376 X-Received: by 2002:a2e:1611:: with SMTP id w17mr12162257ljd.106.1627307212225; Mon, 26 Jul 2021 06:46:52 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:b89:: with SMTP id b9ls544421lfv.1.gmail; Mon, 26 Jul 2021 06:46:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzp4JPCBFKf5QN0xK34yzomgeYLp7N1dx8tHVWvxs1viwmqo/WpNbKhtSrijLRit8nI4YGw X-Received: by 2002:ac2:48b8:: with SMTP id u24mr13085752lfg.587.1627307211145; Mon, 26 Jul 2021 06:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627307211; cv=none; d=google.com; s=arc-20160816; b=WdbZi1Sm5je6U2j8p4+2mEZUwXfAjGL2chqZX7t+x7Wp7+dLgAl/CphP9mRGhOiErb RHHICAOnDLq5jQ82GnVlo3SHMdLb5QOjvnaAOT2tCzZqjQ+9ZOiiukA5nmPd9GzgK+LM xPa39SDC+lheTCGE8kRvh7hdK/nZySy1DQJTBF77JJMMfxzp16G6WYZa+f827LHmMQCK Q/xke0iPVsnVSt9pOi3/+CUI7kumo9H2IpbTgtc7yIofBRq794aFPXOEqC6i5wnuFOnl tqYFLn1WoAub3rsaaQs9xpHtVJhn+QUl4rBZcKLTVW2ormMUz2r2cArOdnUlM1/UuS7d rREA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=GjwVr2Iu/SiBwgii//SuX0vrTENuFntlHo88/pM4Qe4=; b=gEfKQGFBPqHCLtAKFhhEEfGA4/ZBKjKM210XTd4xacVSewhfKuRxJUSkWydCf7F9PE Z7th4VvKZHS3xCtwhCkRP0DCVXDeu+6RPe3TDs+Homzh4gL5nr3KddSnEnXTFF2MAgWv 0lP/gNI7Dmd0VJZft93cWuQEMkaXrj+CSkNlGG5zKZLrSRMRTS/fmn4scmxsSsbOcvT8 m1asRv0dnbZOTxa9Q1SmkO7Dxw417sFRc8VGDliAnjZ0cX3h4F6oCx0vN+aiVtc/dhlz /eA00a7krXfgY078+5xWLKXymfj8HdRXlCGXkW0jYd6On3iD/x514ykolWCfviGZDHf+ 39QA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id h20si1298532lfv.7.2021.07.26.06.46.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Jul 2021 06:46:51 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from localhost.localdomain (mm-198-62-214-37.mgts.dynamic.pppoe.byfly.by [37.214.62.198] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 16QDknuq019679 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Jul 2021 15:46:49 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [RFC 00/15] Sbuild/Schroot migration Date: Mon, 26 Jul 2021 16:46:21 +0300 Message-Id: <20210726134636.30800-1-amikan@ilbers.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: HCJgJ6Lq1Elo This is temporary patchset showing how sbuild/schroot tools can be integrated into Isar build system. It is not jet finished functionaly and architectually, also it do not cover all the targets. Currently isar-bootstrap is exported as base schroot image. Buildchroot is also used somewhere, removing it still in progress. There are also several restrictions, like not fully supported parallel build. To use this changes you need to have sbuild and schroot installed and configured. Current user should be added to sbuild group. At least qemuarm-buster target can be build for testing. TODO: - Separate schroot prepare from isar-bootstrap. - Remove buildchroot usage. - Finish chroot removing. - Add documentation updates. Anton Mikanovich (15): dpkg: Install raw package files to source root dpkg-gbp: Use separate export-orig command isar-bootstrap: Export bootstrap to schroot config 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 dpkg: Build packages with sbuild sbuild: Introduce environment variables export API dpkg: Remove builddeps install task dpkg-gbp: Migrate to schroot img: Use schroot for image prepare linux-mainline: Move cfg fragment test to debian/rules linux-custom: Prepare kernel config inside sbuild .../optee-os/optee-os-stm32mp15x_3.11.0.bb | 2 +- .../linux/linux-mainline_5.4.70.bb | 16 ++-- meta/classes/dpkg-gbp.bbclass | 19 ++--- meta/classes/dpkg-raw.bbclass | 8 +- meta/classes/dpkg.bbclass | 38 +++------ meta/classes/ext4-img.bbclass | 8 +- meta/classes/fit-img.bbclass | 11 +-- meta/classes/image-tools-extension.bbclass | 14 +--- meta/classes/image.bbclass | 19 +---- meta/classes/sbuild.bbclass | 78 +++++++++++++++++++ meta/classes/ubi-img.bbclass | 11 +-- meta/classes/ubifs-img.bbclass | 11 +-- .../files/debian/{rules => rules.tmpl} | 4 +- meta/recipes-bsp/optee-os/optee-os-custom.inc | 10 +-- .../files/debian/{rules => rules.tmpl} | 4 +- .../trusted-firmware-a-custom.inc | 10 +-- .../u-boot/files/debian/{rules => rules.tmpl} | 2 +- meta/recipes-bsp/u-boot/u-boot-custom.inc | 10 +-- .../isar-bootstrap/isar-bootstrap.inc | 54 ++++++++++++- .../kselftest/files/{rules => rules.tmpl} | 0 meta/recipes-kernel/kselftest/kselftest.inc | 21 ++--- .../files/debian/{rules => rules.tmpl} | 10 ++- meta/recipes-kernel/linux-module/module.inc | 23 ++---- meta/recipes-kernel/linux/linux-custom.inc | 7 +- 24 files changed, 225 insertions(+), 165 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} (93%) rename meta/recipes-kernel/kselftest/files/{rules => rules.tmpl} (100%) rename meta/recipes-kernel/linux-module/files/debian/{rules => rules.tmpl} (55%) -- 2.25.1