From patchwork Fri Sep 22 09:09:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 125 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 22 Sep 2023 11:10:29 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f191.google.com (mail-lj1-f191.google.com [209.85.208.191]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 38M9ARjA032051 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:28 +0200 Received: by mail-lj1-f191.google.com with SMTP id 38308e7fff4ca-2b6fdb8d0acsf5137681fa.0 for ; Fri, 22 Sep 2023 02:10:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695373822; cv=pass; d=google.com; s=arc-20160816; b=m1i6yXyoCZG5ZZZYOy/a2DMb/ylwBkY5mh6BKBlFfsmmFxaxsh1QSvGixGabO/L9TU hQ/VMNL/UHWZyS457mgsPxLTKs6RwphDW8thir1o1Jkwrn/6jtJkoLqjxrdv+wgyRIlJ wivxNYKs0E9sjHyNN9akLFdHuEtudrgzo+kcU6GuNTIitC1iCJAvHaT9rbQ098pimBS5 d8n7ZM6vXETqkQWJcqpWyNbfM1YrjArNkC8pJyC9fatQu38eppoIFkJLwScXIPxNZeRJ vMtZSquRZWHwla2qD+TPz3Q3RolMv4Qh5i81wbQv58yDR19qGM0a4yw5LA1YSQiK1gx2 36wQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:to:from:sender:dkim-signature; bh=1n7q5J0837DG5qqiv0rDm+2V4quAKlVzRdOeyDDdyhU=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=Jnc6y9Zkffwm8rcIHeURS5YoCTBzrwAaNVv2FCjTsriyCDvSM8uDMUcIO5ka+2mXGC 1N5A+GoIAczDXtI0hj8xgV/sU3WuSsR/p0vBL8yn2IAnO7pZSiaQdZ40Bu2bPw8Il3Vc i/1vRx9LZLBTAwfFRkhbXUr0Zb2ebNs2dye94ZDr0KjQd37CsNiDpAwMsB29t6RUqJnR UcPXxmLk0fpkY2WDJUjby32K/Gaig1zwiUOCiOVl4ZsP4HUiwU2q5vton73BmKnkqRWj L2VxJiK66BbKR0u8RaV2lMhA5NQPGNW6QlgQUMAdZRMMs1MdNtS7ansDveLljMdtB3AZ KU0g== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1695373822; x=1695978622; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=1n7q5J0837DG5qqiv0rDm+2V4quAKlVzRdOeyDDdyhU=; b=i5GOpBnzzRIj7K3V1pIN1YFqrF3HtbV6ErlythZUJXWjU3TLAd1lqBM78XEojOLxnQ zDni6V/Hy6TYkET0wyrcxANHtQOA/ZL2ePTzfRf7aFfdZiKlKm3C20JBI0H9qmAMiMuD HKYZvh/RdSL1wEjtRyL82ccRm5InpGE5TRUYjqATp+xjplNAxlUpv7cL9lnouac4A2H7 KbXMXjALETeLCwesMn+roKPr4+fWOVPRiSa4op5sveBiQa9/9MlX8EC8ur867877Zr+n A0sWq5TIxGIIz334p7yEvBkylPJgxXSXz5UxZpLqe3NR8DUXuPtZGX0VF95oOpYWLzM0 fVyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695373822; x=1695978622; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:to:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=1n7q5J0837DG5qqiv0rDm+2V4quAKlVzRdOeyDDdyhU=; b=U33iFpYcJWrrV37w5kiHyKs70+KFINZ9ABPBK8dAHCGa75IFvO++erBkXv5dDh0yYX kZf35iZO7ydCQTwpToqElRuvbjb2u+aa3WK5VARcmnVZ4MC8ig1B7+wV2qSMlmO/R3zi HP7D9MIKC9rT9T+UJ2yOSER3/QGJh8a9vLO3iMFD32OStr+8B0FHRMqAHhUZl9o32p8p IZX92B+4sYjC3juTDT/dGxd7O26rmF+RoxOsqKc4PpKcLi6KEda5tod2ojJlF/E9Ah5Q Awjem7UuHEzPUib+MCxQnyr11Zr+eH0K3GxnrTOqWt5KP14ec7PFNRWg60v++S9N+zI7 6xLQ== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOJu0Yz1mq3kE7geSLZauJeIQVCKsBrVFvEpm3Msl1braR/fxhhM+EQ2 vJ48xpnOQuTxoj+20rXzAj8= X-Google-Smtp-Source: AGHT+IHZMJUAfw6FMH9sUjAO6Cnq7W2wkHmO5JEbUECyaM9i8EemcPdwRqX0nqZGzS4Nv6slqM3vCA== X-Received: by 2002:ac2:59cf:0:b0:501:b1c0:d545 with SMTP id x15-20020ac259cf000000b00501b1c0d545mr6086872lfn.3.1695373822055; Fri, 22 Sep 2023 02:10:22 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:8c0c:0:b0:4ff:a03f:71a3 with SMTP id o12-20020a198c0c000000b004ffa03f71a3ls351633lfd.1.-pod-prod-08-eu; Fri, 22 Sep 2023 02:10:19 -0700 (PDT) X-Received: by 2002:a05:6512:10c4:b0:500:7f71:e46b with SMTP id k4-20020a05651210c400b005007f71e46bmr8645083lfg.1.1695373819692; Fri, 22 Sep 2023 02:10:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695373819; cv=none; d=google.com; s=arc-20160816; b=aG7mrfajkjOrJvSGcXXFsiPrKweQgT7guV9+7jubhlCXcj1RtQP50t9+DopU+uQnZa 1nu6qZTE6ZWgs+jqJWReUQEmYlJIw/z59tc8oNEj2fQXWIpQvjlSYS0w9yYKdLaTZpZ0 QEOrD9Ki2DSRXDD+bvfkOxJpOTUVSqplnoVWeHZ5/sY3ipIS5w9C8nzKF91mKzcUwyEM iLeYOHS48Y6w/U0gf36wCScGnfqdiZmN40dFSwd1kT3phhb8l/RAAz2KNZGDuQTbkqQg 9QsG94kaAhtr3XT6NjetznIAiWn/buRGmyrGLUEU9gINuXX1by2xz01Z7N8gAH+RPalD 3W3w== 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:to :from; bh=b143YwyqW2oFMwMxQioU2a4+jahG8oMe0qswS96rHYU=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=afmL+I1+7ocXi780FXJqdbianAjcWpyiIy3BW4/IsHNX4SQ6ZF4q+PbvpbH+MDgDz9 RYQX5X5esP3aUv/eHgIOAB0zja/Fn13deiQhGZgCwL3rXkR2ncB3ZwiHTF2m31kszbcx 0p5lpLcOPntPmTdVcfbqM4YE1EsHQtD6kKy4OU0BjC3A6zurfsRz2CKNGvu+u+BMhz8f FHrvsLj8ituzyHcqjhv2h+fdOni5adDaH+CFOlGmiYWjMRJW9iPAV+pX7R4JIYSdwdpF nyLw9nwhYLQ6/M+1v/FdSI3IEc3IYmgc2Jvnl3IUf2bBMjUXOMHm/ldyd3p2l4eEkAGy l9Jw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id v4-20020a056512348400b004fe3e3471c8si244099lfr.10.2023.09.22.02.10.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Sep 2023 02:10:19 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from baighyz.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 38M9A3Z3031991 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:03 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 00/13] Support building Isar using kas Date: Fri, 22 Sep 2023 11:09:50 +0200 Message-Id: <20230922091003.20763-1-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_PASS 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-Original-Sender: ubely@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= This patchset adds YAML fragments and Kconfig files to support configuring Isar using `kas-container menu` and building it with 'kas-container script`. The patchset can be treated as a reply to `https://groups.google.com/g/isar-users/c/GgMvGOkXkcg` request. Changes since v3: - Added copyright headers to .yaml and Kconfig files. - Added script to generate kas yaml configs. Changes since v2: - Added kas build dir and config under .gitignore. Changes since v1: - Simplified deps between distros and machines, removed separate patch that added redundand DEB_ vars. - Fixed dependencies in mirror selection block. - Separate menu items for selecting Isar packages. - Fix warnings related wrong path to isar.yml file. - Cleartext password used for root now. - Use `.yaml` file extensions instead of `.yml`. Uladzimir Bely (13): kas: Add initial Kconfig support kas: Add a local copy of kas-container script kas: Add mirror selection kas: Add packages selection kas: Add COMPAT_ARCH support kas: Add cross compilation mode selection support kas: Add ccache option kas: Add image type selection kas: Add IMAGE_FSTYPES selection kas: Support CACHE_DEB_SRC option in menu kas: Add options to activate predefined users kas: Add kas/README.md scripts: Add a script to generate kas yaml configs .gitignore | 2 + Kconfig | 21 + README.md | 3 + kas/README.md | 36 ++ kas/distro/Kconfig | 46 ++ kas/distro/debian-bookworm.yaml | 7 + kas/distro/debian-bullseye.yaml | 7 + kas/distro/debian-buster.yaml | 7 + kas/distro/debian-sid-ports.yaml | 7 + kas/distro/raspios-bullseye.yaml | 7 + kas/distro/ubuntu-focal.yaml | 7 + kas/distro/ubuntu-jammy.yaml | 7 + kas/image/Kconfig | 32 ++ kas/image/isar-image-base.yaml | 7 + kas/image/isar-image-debug.yaml | 7 + kas/isar.yaml | 18 + kas/kas-container | 562 ++++++++++++++++++++ kas/machine/Kconfig | 138 +++++ kas/machine/bananapi.yaml | 7 + kas/machine/container-amd64.yaml | 7 + kas/machine/de0-nano-soc.yaml | 7 + kas/machine/hikey.yaml | 7 + kas/machine/imx6-sabrelite.yaml | 7 + kas/machine/nanopi-neo-efi.yaml | 7 + kas/machine/nanopi-neo.yaml | 7 + kas/machine/phyboard-mira.yaml | 7 + kas/machine/qemuamd64-sb.yaml | 7 + kas/machine/qemuamd64.yaml | 7 + kas/machine/qemuarm.yaml | 7 + kas/machine/qemuarm64.yaml | 7 + kas/machine/qemui386.yaml | 7 + kas/machine/qemumipsel.yaml | 7 + kas/machine/qemuriscv64.yaml | 7 + kas/machine/rpi-arm-v7.yaml | 7 + kas/machine/rpi-arm-v7l.yaml | 7 + kas/machine/rpi-arm.yaml | 7 + kas/machine/rpi-arm64-v8.yaml | 7 + kas/machine/sifive-fu540.yaml | 7 + kas/machine/starfive-visionfive2.yaml | 7 + kas/machine/stm32mp15x.yaml | 7 + kas/machine/virtualbox.yaml | 7 + kas/machine/vmware.yaml | 7 + kas/opt/Kconfig | 147 +++++ kas/opt/cache-deb-src.yaml | 9 + kas/opt/ccache.yaml | 9 + kas/opt/compat-arch.yaml | 10 + kas/opt/crosscompile.yaml | 9 + kas/opt/image-fstypes.yaml | 9 + kas/opt/mirror-debian.yaml | 10 + kas/opt/mirror-ubuntu.yaml | 10 + kas/opt/user-isar.yaml | 19 + kas/opt/user-root.yaml | 11 + kas/package/Kconfig | 154 ++++++ kas/package/packages-distro.yaml | 9 + kas/package/pkg_cowsay.yaml | 9 + kas/package/pkg_enable-fsck.yaml | 9 + kas/package/pkg_example-module.yaml | 9 + kas/package/pkg_example-prebuilt.yaml | 9 + kas/package/pkg_example-raw.yaml | 9 + kas/package/pkg_expand-on-first-boot.yaml | 9 + kas/package/pkg_hello-isar.yaml | 9 + kas/package/pkg_hello.yaml | 9 + kas/package/pkg_isar-disable-apt-cache.yaml | 9 + kas/package/pkg_isar-exclude-docs.yaml | 9 + kas/package/pkg_kselftest.yaml | 9 + kas/package/pkg_samefile.yaml | 9 + kas/package/pkg_sshd-regen-keys.yaml | 9 + scripts/generate_yaml.sh | 97 ++++ 68 files changed, 1709 insertions(+) create mode 100644 Kconfig create mode 100644 kas/README.md create mode 100644 kas/distro/Kconfig create mode 100644 kas/distro/debian-bookworm.yaml create mode 100644 kas/distro/debian-bullseye.yaml create mode 100644 kas/distro/debian-buster.yaml create mode 100644 kas/distro/debian-sid-ports.yaml create mode 100644 kas/distro/raspios-bullseye.yaml create mode 100644 kas/distro/ubuntu-focal.yaml create mode 100644 kas/distro/ubuntu-jammy.yaml create mode 100644 kas/image/Kconfig create mode 100644 kas/image/isar-image-base.yaml create mode 100644 kas/image/isar-image-debug.yaml create mode 100644 kas/isar.yaml create mode 100755 kas/kas-container create mode 100644 kas/machine/Kconfig create mode 100644 kas/machine/bananapi.yaml create mode 100644 kas/machine/container-amd64.yaml create mode 100644 kas/machine/de0-nano-soc.yaml create mode 100644 kas/machine/hikey.yaml create mode 100644 kas/machine/imx6-sabrelite.yaml create mode 100644 kas/machine/nanopi-neo-efi.yaml create mode 100644 kas/machine/nanopi-neo.yaml create mode 100644 kas/machine/phyboard-mira.yaml create mode 100644 kas/machine/qemuamd64-sb.yaml create mode 100644 kas/machine/qemuamd64.yaml create mode 100644 kas/machine/qemuarm.yaml create mode 100644 kas/machine/qemuarm64.yaml create mode 100644 kas/machine/qemui386.yaml create mode 100644 kas/machine/qemumipsel.yaml create mode 100644 kas/machine/qemuriscv64.yaml create mode 100644 kas/machine/rpi-arm-v7.yaml create mode 100644 kas/machine/rpi-arm-v7l.yaml create mode 100644 kas/machine/rpi-arm.yaml create mode 100644 kas/machine/rpi-arm64-v8.yaml create mode 100644 kas/machine/sifive-fu540.yaml create mode 100644 kas/machine/starfive-visionfive2.yaml create mode 100644 kas/machine/stm32mp15x.yaml create mode 100644 kas/machine/virtualbox.yaml create mode 100644 kas/machine/vmware.yaml create mode 100644 kas/opt/Kconfig create mode 100644 kas/opt/cache-deb-src.yaml create mode 100644 kas/opt/ccache.yaml create mode 100644 kas/opt/compat-arch.yaml create mode 100644 kas/opt/crosscompile.yaml create mode 100644 kas/opt/image-fstypes.yaml create mode 100644 kas/opt/mirror-debian.yaml create mode 100644 kas/opt/mirror-ubuntu.yaml create mode 100644 kas/opt/user-isar.yaml create mode 100644 kas/opt/user-root.yaml create mode 100644 kas/package/Kconfig create mode 100644 kas/package/packages-distro.yaml create mode 100644 kas/package/pkg_cowsay.yaml create mode 100644 kas/package/pkg_enable-fsck.yaml create mode 100644 kas/package/pkg_example-module.yaml create mode 100644 kas/package/pkg_example-prebuilt.yaml create mode 100644 kas/package/pkg_example-raw.yaml create mode 100644 kas/package/pkg_expand-on-first-boot.yaml create mode 100644 kas/package/pkg_hello-isar.yaml create mode 100644 kas/package/pkg_hello.yaml create mode 100644 kas/package/pkg_isar-disable-apt-cache.yaml create mode 100644 kas/package/pkg_isar-exclude-docs.yaml create mode 100644 kas/package/pkg_kselftest.yaml create mode 100644 kas/package/pkg_samefile.yaml create mode 100644 kas/package/pkg_sshd-regen-keys.yaml create mode 100755 scripts/generate_yaml.sh