From patchwork Fri Sep 22 09:09:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 3108 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-ed1-f62.google.com (mail-ed1-f62.google.com [209.85.208.62]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 38M9ARS7032043 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:27 +0200 Received: by mail-ed1-f62.google.com with SMTP id 4fb4d7f45d1cf-530cfb598c5sf1291356a12.1 for ; Fri, 22 Sep 2023 02:10:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695373822; cv=pass; d=google.com; s=arc-20160816; b=09/GhITYN+VDX99B8Q37LIq8ZfdsNyzdMYegzA9KMBZvEEKV+o9KShYVoFmmNu4QW3 Te0cckteC+l3VT7Me1U5CpSo1cqC9Inrtx6aICLZ+17vM1zF0bCiIQNH8Yt8h9Y1QX7S sHl35lvWGnouK2jOpkjTsJl8hhEWhFWg0L6K9/9t4NoA8yToJD4jr5DoHuKTvVYzLb4v 5cydUOkmlvFxr+bM+dypMC2t9gLYBjDqJlMoLYDGCqWHmR7f1L1EzU3GUgIhjUaq6VjP ReCC0U0FWLfSraZQEz6RhW3D/MVwXKgCKzPjgzn/l+Y8I86MKvcmxz3kIu7yPgNUuBJp Cpgw== 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:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=2E154zW+KgfHJCYTpsxVRKIVZ1HRDjV3XEN8PuuaRXw=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=fBhJtbSkym0wZgoOPr9s8rQp0i+sfBM8WKbcWc1yB3bV0+3rV92TSNNvkkxdGyaNLL yzmNNe+jRE0XbStya/rEYoXA3zGwIlYTZKqK5X7vB6G5kZM/zX6XwZAX4nJrc+Jeab4/ Tg6TqfQSsjlwlXxGooezblXVDMhotNCi0FsGVcTU0mAtdcT/0jD2+dVAr8S0yVwitPDd y2Ab9hQsWjBVhggUg7U+nnKtSJ00la9SSR5su5FsbuaIbx8OrTWyiKYj0tY0EqfgjXvv 5N3KQhPnrSOF1sE5mEk/MT+Aq+7yNigUFkVUCVmqN56gra+xsVVEgGVYS6ehkI9H0mI/ 26eA== 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:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=2E154zW+KgfHJCYTpsxVRKIVZ1HRDjV3XEN8PuuaRXw=; b=qwDE2AEOY2Utfsx4PedZL5Q5+M7z8AB3d4wOWclvVB5bc2TkE1V6bzlstGaSqYXZOi wyaajTkQU4lP+aH5RX44IQHmkKZ7xeONUE42a1MwBilREb14u6sbUz3JiXq5mmIuoP2f ls3TlkxGAn7zlLW1P76EGS6Nqf3mXGnhRfRZmKvpdDtOnVElsGHxzLfRK/DtUM9xNdSk UJbjucEg+xoWh1AvQ1i7LGfaFNuQmQWWyul2eoZMzgE933jSKfyoNdERcAitCDTgkOME dDFDtFa+lyLh65A5M5hH7U5SsZ1gFnfVVHSSTwkrprXQQEIvgknEIBXAsKsb6WSuWKGF 6DyQ== 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=2E154zW+KgfHJCYTpsxVRKIVZ1HRDjV3XEN8PuuaRXw=; b=R7YmOD0A6wdDMl1CNUACDrPQocuERO76TCjSjB+3hSAkwDUmVICR5BDNxNto5cCZLk CKXrBYFwkI5XsylOXPRH7vaxk07KhRlxC9HJElaVBcLqzxUzJKOShyLvhUcpOv3fiGQe 9es+gkQZktm0ATnSpPD8qdYRtnUAptpLDN4i+Wqc0EytOOt69VPZdB0lpyog6heghxvy bhQ4xewCYdKVupxPuaLvlU/0i06mQ7a5H8Us6cKpT75bxvsBU/yEOePzgx8NXhdEGJKc o5JP1cycqiL667cHW5PainZXMjy3507s17eRT5k2KhtbQB6G4v2ZpCSMbJTfXPvCo/JK fqdg== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOJu0YwXqxee9whAO19z6SxS26RoXyzrCIODkMn27HecDt4dIzopfCZl Bf+nqKyg3D02IvaNXGNJXfY= X-Google-Smtp-Source: AGHT+IE1skzFf3r9ypS9MO0ZiP6qurL7JlhbfqazQZcc0DAKSUnj4PkC/Kyf69NUpDTyf613hh7x7Q== X-Received: by 2002:aa7:c407:0:b0:51a:3159:53c7 with SMTP id j7-20020aa7c407000000b0051a315953c7mr7697192edq.30.1695373822061; Fri, 22 Sep 2023 02:10:22 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aa7:dcca:0:b0:522:aa6f:afb3 with SMTP id w10-20020aa7dcca000000b00522aa6fafb3ls1401047edu.2.-pod-prod-03-eu; Fri, 22 Sep 2023 02:10:20 -0700 (PDT) X-Received: by 2002:aa7:c3cc:0:b0:531:140f:335b with SMTP id l12-20020aa7c3cc000000b00531140f335bmr6103234edr.31.1695373819844; 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=Tn6Vc8nYCsLqVKAbfTbz9tuFRs5+buHJDPboHH8NBwELtPBJl5RbRrjqH8vthGKV6P gQapVFVTbJgUX4PN53ke0Q2bncw2J2tGPj/avnEcFfqk3JjTIHWGheU2XSasfKJ9BUHZ SDyKVn8PChHmDHzYh9VpJlec3PTerlUPgLmwK/WoZCr2tskz9kku5AtIgRI1y0ykRt8y 6KMDMw5mbQghpuyLxEdtTzwtjgpgDDg4cXrYSCFJB17PAFmWRa/5Kx1JK6EK0OjdRHMA HrDGMvAcutl0nUZmOpwJWfuhx+5Yij6kivtvUpKV5eyQCwac46zm502szsGfjXOhrITT WUHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=5Br1Ow5pVx6vuQW32z9Dbw1mo5i+YRnjC6ukmlhBrVc=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=r9GZ9mjXtYeJMDUZ94omWmGJx99tuOnAIkIi3e9KUgU32dwtsA6gpucCOnLf05I8S5 PS6PhNHgcmYIeTRD5E0a+l+2EvACW9h/0t41TCaQxwAoEREGZi5RWtIybcIZUomX5+sv xRPcy1edzS2ijJtptpkL/6VlqH4UhzVKV+6rDqWISKMz3xDWDwi7fqnb2rPwYHPg9h7N ZmsOxLTLw7Rzqv+N9n5YJVELZro4y+31vu61qh1Hoyn8mEqD3fvZlq2tbxmfJNaeBgWz dG4JqBjE3GpyjQxptSDdMYf+BBlzb0C+BUFvRYWDi6EElq2lrJe3u9uMeDrTT2+JUUSu tXxg== 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 g19-20020a056402321300b0051fe05f750asi303189eda.2.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 38M9A3Z4031991 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:18 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 01/13] kas: Add initial Kconfig support Date: Fri, 22 Sep 2023 11:09:51 +0200 Message-Id: <20230922091003.20763-2-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230922091003.20763-1-ubely@ilbers.de> References: <20230922091003.20763-1-ubely@ilbers.de> 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?= Create required Kconfig files and appropriate YAML configuration fragments for supporting initial build configuragion via `kas-container menu`. Since Isar does not support any possible combination of machines and distros, there are particular dependencies between them exist. User should select the distro first and after that it would be possible to choose the board this distro supports. Signed-off-by: Uladzimir Bely --- .gitignore | 2 + Kconfig | 18 ++++ 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/isar.yaml | 21 ++++ 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 ++ 36 files changed, 442 insertions(+) create mode 100644 Kconfig 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/isar.yaml 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 diff --git a/.gitignore b/.gitignore index 2525d41e..b1b51dd4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ *~ /*.patch __pycache__ +.config.yaml* +build/ diff --git a/Kconfig b/Kconfig new file mode 100644 index 00000000..591fe765 --- /dev/null +++ b/Kconfig @@ -0,0 +1,18 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH +# +# Authors: +# Uladzimir Bely + +mainmenu "Isar configuration" + +config KAS_INCLUDE_MAIN + string + default "kas/isar.yaml" + +config KAS_BUILD_SYSTEM + string + default "isar" + +source "kas/distro/Kconfig" +source "kas/machine/Kconfig" diff --git a/kas/distro/Kconfig b/kas/distro/Kconfig new file mode 100644 index 00000000..bd762a98 --- /dev/null +++ b/kas/distro/Kconfig @@ -0,0 +1,46 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH +# +# Authors: +# Uladzimir Bely + +menu "Distro selection" + +choice + prompt "Distro selection" + default DEBIAN_BOOKWORM + +config DEBIAN_BUSTER + bool "Debian Buster (10)" + +config DEBIAN_BULLSEYE + bool "Debian Bullseye (11)" + +config DEBIAN_BOOKWORM + bool "Debian Bookworm (12)" + +config DEBIAN_SID_PORTS + bool "Debian Sid (unstable) with unofficial ports" + +config RASPIOS_BULLSEYE + bool "Raspi OS Bullseye (11)" + +config UBUNTU_FOCAL + bool "Ubuntu Focal (20.04)" + +config UBUNTU_JAMMY + bool "Ubuntu Jammy (22.04)" + +endchoice + +config KAS_INCLUDE_DISTRO + string + default "kas/distro/debian-buster.yaml" if DEBIAN_BUSTER + default "kas/distro/debian-bullseye.yaml" if DEBIAN_BULLSEYE + default "kas/distro/debian-bookworm.yaml" if DEBIAN_BOOKWORM + default "kas/distro/debian-sid-ports.yaml" if DEBIAN_SID_PORTS + default "kas/distro/raspios-bullseye.yaml" if RASPIOS_BULLSEYE + default "kas/distro/ubuntu-focal.yaml" if UBUNTU_FOCAL + default "kas/distro/ubuntu-jammy.yaml" if UBUNTU_JAMMY + +endmenu diff --git a/kas/distro/debian-bookworm.yaml b/kas/distro/debian-bookworm.yaml new file mode 100644 index 00000000..2178e7d4 --- /dev/null +++ b/kas/distro/debian-bookworm.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +distro: debian-bookworm diff --git a/kas/distro/debian-bullseye.yaml b/kas/distro/debian-bullseye.yaml new file mode 100644 index 00000000..23e286fb --- /dev/null +++ b/kas/distro/debian-bullseye.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +distro: debian-bullseye diff --git a/kas/distro/debian-buster.yaml b/kas/distro/debian-buster.yaml new file mode 100644 index 00000000..82949a8f --- /dev/null +++ b/kas/distro/debian-buster.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +distro: debian-buster diff --git a/kas/distro/debian-sid-ports.yaml b/kas/distro/debian-sid-ports.yaml new file mode 100644 index 00000000..52993646 --- /dev/null +++ b/kas/distro/debian-sid-ports.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +distro: debian-sid-ports diff --git a/kas/distro/raspios-bullseye.yaml b/kas/distro/raspios-bullseye.yaml new file mode 100644 index 00000000..9a1e6abe --- /dev/null +++ b/kas/distro/raspios-bullseye.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +distro: raspios-bullseye diff --git a/kas/distro/ubuntu-focal.yaml b/kas/distro/ubuntu-focal.yaml new file mode 100644 index 00000000..6a68b796 --- /dev/null +++ b/kas/distro/ubuntu-focal.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +distro: ubuntu-focal diff --git a/kas/distro/ubuntu-jammy.yaml b/kas/distro/ubuntu-jammy.yaml new file mode 100644 index 00000000..e6623871 --- /dev/null +++ b/kas/distro/ubuntu-jammy.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +distro: ubuntu-jammy diff --git a/kas/isar.yaml b/kas/isar.yaml new file mode 100644 index 00000000..c8dec31c --- /dev/null +++ b/kas/isar.yaml @@ -0,0 +1,21 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +build_system: isar + +target: +- isar-image-base + +repos: + isar: + layers: + meta: + meta-isar: + +bblayers_conf_header: + standard: | + BBPATH = "${TOPDIR}" + BBFILES ?= "" diff --git a/kas/machine/Kconfig b/kas/machine/Kconfig new file mode 100644 index 00000000..f117724c --- /dev/null +++ b/kas/machine/Kconfig @@ -0,0 +1,138 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH +# +# Authors: +# Uladzimir Bely + +menu "Machine selection" + +choice + prompt "Machine selection" + default MACHINE_QEMU_AMD64 + +config MACHINE_BANANAPI + bool "bananapi" + depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM + +config MACHINE_CONTAINER_AMD64 + bool "container-amd64" + depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM + +config MACHINE_DE0_NANO_SOC + bool "de0-nano-soc" + depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM + +config MACHINE_HIKEY + bool "hikey" + depends on DEBIAN_BULLSEYE || DEBIAN_BOOKWORM + +config MACHINE_IMX6_SABRELITE + bool "imx6-sabrelite" + depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM + +config MACHINE_NANOPI_NEO + bool "nanopi-neo" + depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM + +config MACHINE_NANOPI_NEO_EFI + bool "nanopi-neo-efi" + depends on DEBIAN_BOOKWORM + +config MACHINE_PHIBOARD_MIRA + bool "phyboard-mira" + depends on DEBIAN_BULLSEYE || DEBIAN_BOOKWORM + +config MACHINE_QEMU_AMD64_SB + bool "qemuamd64-sb" + depends on DEBIAN_BULLSEYE + +config MACHINE_QEMU_AMD64 + bool "qemuamd64" + depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM || UBUNTU_FOCAL || UBUNTU_JAMMY + +config MACHINE_QEMU_ARM + bool "qemuarm" + depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM + +config MACHINE_QEMU_ARM64 + bool "qemuarm64" + depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM || UBUNTU_FOCAL || UBUNTU_JAMMY + +config MACHINE_QEMU_I386 + bool "qemui386" + depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM + +config MACHINE_QEMU_MIPSEL + bool "qemumipsel" + depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || DEBIAN_BOOKWORM + +config MACHINE_QEMU_RISCV64 + bool "qemuriscv64" + depends on DEBIAN_SID_PORTS + +config MACHINE_RPI_ARM_V7 + bool "rpi-arm-v7" + depends on RASPIOS_BULLSEYE + +config MACHINE_RPI_ARM_V7L + bool "rpi-arm-v7l" + depends on RASPIOS_BULLSEYE + +config MACHINE_RPI_ARM + bool "rpi-arm" + depends on RASPIOS_BULLSEYE + +config MACHINE_RPI_ARM64_V8 + bool "rpi-arm64-v8" + depends on RASPIOS_BULLSEYE + +config MACHINE_SIFIVE_FU540 + bool "sifive-fu540" + depends on DEBIAN_SID_PORTS + +config MACHINE_STARFIVE_VISIONFIVE2 + bool "starfive-visionfive2" + depends on DEBIAN_SID_PORTS + +config MACHINE_STM32MP15X + bool "stm32mp15x" + depends on DEBIAN_BULLSEYE || DEBIAN_BOOKWORM + +config MACHINE_VIRTUALBOX + bool "virtualbox" + depends on DEBIAN_BULLSEYE + +config MACHINE_VMWARE + bool "vmware" + depends on DEBIAN_BULLSEYE + +endchoice + +config KAS_INCLUDE_MACHINE + string + default "kas/machine/bananapi.yaml" if MACHINE_BANANAPI + default "kas/machine/container-amd64.yaml" if MACHINE_CONTAINER_AMD64 + default "kas/machine/de0-nano-soc.yaml" if MACHINE_DE0_NANO_SOC + default "kas/machine/hikey.yaml" if MACHINE_HIKEY + default "kas/machine/imx6-sabrelite" if MACHINE_IMX6_SABRELITE + default "kas/machine/nanopi-neo" if MACHINE_NANOPI_NEO + default "kas/machine/nanopi-neo-efi" if MACHINE_NANOPI_NEO_EFI + default "kas/machine/phyboard-mira" if MACHINE_PHIBOARD_MIRA + default "kas/machine/qemuamd64-sb.yaml" if MACHINE_QEMU_AMD64_SB + default "kas/machine/qemuamd64.yaml" if MACHINE_QEMU_AMD64 + default "kas/machine/qemuarm.yaml" if MACHINE_QEMU_ARM + default "kas/machine/qemuarm64.yaml" if MACHINE_QEMU_ARM64 + default "kas/machine/qemui386.yaml" if MACHINE_QEMU_I386 + default "kas/machine/qemumipsel.yaml" if MACHINE_QEMU_MIPSEL + default "kas/machine/qemuriscv64.yaml" if MACHINE_QEMU_RISCV64 + default "kas/machine/rpi-arm-v7.yaml" if MACHINE_RPI_ARM_V7 + default "kas/machine/rpi-arm-v7l.yaml" if MACHINE_RPI_ARM_V7L + default "kas/machine/rpi-arm.yaml" if MACHINE_RPI_ARM + default "kas/machine/rpi-arm64-v8.yaml" if MACHINE_RPI_ARM64_V8 + default "kas/machine/sifive-fu540.yaml" if MACHINE_SIFIVE_FU540 + default "kas/machine/starfive-visionfive2.yaml" if MACHINE_STARFIVE_VISIONFIVE2 + default "kas/machine/stm32mp15x.yaml" if MACHINE_STM32MP15X + default "kas/machine/virtualbox.yaml" if MACHINE_VIRTUALBOX + default "kas/machine/vmware.yaml" if MACHINE_VMWARE + +endmenu diff --git a/kas/machine/bananapi.yaml b/kas/machine/bananapi.yaml new file mode 100644 index 00000000..53bd3db2 --- /dev/null +++ b/kas/machine/bananapi.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: bananapi diff --git a/kas/machine/container-amd64.yaml b/kas/machine/container-amd64.yaml new file mode 100644 index 00000000..93352c29 --- /dev/null +++ b/kas/machine/container-amd64.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: container-amd64 diff --git a/kas/machine/de0-nano-soc.yaml b/kas/machine/de0-nano-soc.yaml new file mode 100644 index 00000000..5dbe6916 --- /dev/null +++ b/kas/machine/de0-nano-soc.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: de0-nano-soc diff --git a/kas/machine/hikey.yaml b/kas/machine/hikey.yaml new file mode 100644 index 00000000..56133afc --- /dev/null +++ b/kas/machine/hikey.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: hikey diff --git a/kas/machine/imx6-sabrelite.yaml b/kas/machine/imx6-sabrelite.yaml new file mode 100644 index 00000000..466649d5 --- /dev/null +++ b/kas/machine/imx6-sabrelite.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: imx6-sabrelite diff --git a/kas/machine/nanopi-neo-efi.yaml b/kas/machine/nanopi-neo-efi.yaml new file mode 100644 index 00000000..a38e06d7 --- /dev/null +++ b/kas/machine/nanopi-neo-efi.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: nanopi-neo-efi diff --git a/kas/machine/nanopi-neo.yaml b/kas/machine/nanopi-neo.yaml new file mode 100644 index 00000000..7973e5ad --- /dev/null +++ b/kas/machine/nanopi-neo.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: nanopi-neo diff --git a/kas/machine/phyboard-mira.yaml b/kas/machine/phyboard-mira.yaml new file mode 100644 index 00000000..f2081819 --- /dev/null +++ b/kas/machine/phyboard-mira.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: phyboard-mira diff --git a/kas/machine/qemuamd64-sb.yaml b/kas/machine/qemuamd64-sb.yaml new file mode 100644 index 00000000..f2be984a --- /dev/null +++ b/kas/machine/qemuamd64-sb.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: qemuamd64-sb diff --git a/kas/machine/qemuamd64.yaml b/kas/machine/qemuamd64.yaml new file mode 100644 index 00000000..cb032e0c --- /dev/null +++ b/kas/machine/qemuamd64.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: qemuamd64 diff --git a/kas/machine/qemuarm.yaml b/kas/machine/qemuarm.yaml new file mode 100644 index 00000000..8aae6bdb --- /dev/null +++ b/kas/machine/qemuarm.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: qemuarm diff --git a/kas/machine/qemuarm64.yaml b/kas/machine/qemuarm64.yaml new file mode 100644 index 00000000..f965d27b --- /dev/null +++ b/kas/machine/qemuarm64.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: qemuarm64 diff --git a/kas/machine/qemui386.yaml b/kas/machine/qemui386.yaml new file mode 100644 index 00000000..913b419f --- /dev/null +++ b/kas/machine/qemui386.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: qemui386 diff --git a/kas/machine/qemumipsel.yaml b/kas/machine/qemumipsel.yaml new file mode 100644 index 00000000..961fcfe0 --- /dev/null +++ b/kas/machine/qemumipsel.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: qemumipsel diff --git a/kas/machine/qemuriscv64.yaml b/kas/machine/qemuriscv64.yaml new file mode 100644 index 00000000..57fd0980 --- /dev/null +++ b/kas/machine/qemuriscv64.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: qemuriscv64 diff --git a/kas/machine/rpi-arm-v7.yaml b/kas/machine/rpi-arm-v7.yaml new file mode 100644 index 00000000..26af1b63 --- /dev/null +++ b/kas/machine/rpi-arm-v7.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: rpi-arm-v7 diff --git a/kas/machine/rpi-arm-v7l.yaml b/kas/machine/rpi-arm-v7l.yaml new file mode 100644 index 00000000..86fdd02a --- /dev/null +++ b/kas/machine/rpi-arm-v7l.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: rpi-arm-v7l diff --git a/kas/machine/rpi-arm.yaml b/kas/machine/rpi-arm.yaml new file mode 100644 index 00000000..3be463e3 --- /dev/null +++ b/kas/machine/rpi-arm.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: rpi-arm diff --git a/kas/machine/rpi-arm64-v8.yaml b/kas/machine/rpi-arm64-v8.yaml new file mode 100644 index 00000000..76b0d42b --- /dev/null +++ b/kas/machine/rpi-arm64-v8.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: rpi-arm64-v8 diff --git a/kas/machine/sifive-fu540.yaml b/kas/machine/sifive-fu540.yaml new file mode 100644 index 00000000..f2bf8a13 --- /dev/null +++ b/kas/machine/sifive-fu540.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: sifive-fu540 diff --git a/kas/machine/starfive-visionfive2.yaml b/kas/machine/starfive-visionfive2.yaml new file mode 100644 index 00000000..0837308a --- /dev/null +++ b/kas/machine/starfive-visionfive2.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: starfive-visionfive2 diff --git a/kas/machine/stm32mp15x.yaml b/kas/machine/stm32mp15x.yaml new file mode 100644 index 00000000..9e54c31d --- /dev/null +++ b/kas/machine/stm32mp15x.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: stm32mp15x diff --git a/kas/machine/virtualbox.yaml b/kas/machine/virtualbox.yaml new file mode 100644 index 00000000..539f3e3b --- /dev/null +++ b/kas/machine/virtualbox.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: virtualbox diff --git a/kas/machine/vmware.yaml b/kas/machine/vmware.yaml new file mode 100644 index 00000000..6dc49edb --- /dev/null +++ b/kas/machine/vmware.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +machine: vmware From patchwork Fri Sep 22 09:09:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 3109 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:30 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f55.google.com (mail-lf1-f55.google.com [209.85.167.55]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 38M9ASPS032068 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:29 +0200 Received: by mail-lf1-f55.google.com with SMTP id 2adb3069b0e04-5041a779c75sf2446403e87.2 for ; Fri, 22 Sep 2023 02:10:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695373823; cv=pass; d=google.com; s=arc-20160816; b=GFDOglzKbsU92LPcQA/z3NpctDPi2v5FA7Nh8zOd9uOYH6QC3/jBVRYzi7km+pcMQD XjYFPNALTY5r3FpzwAA82SATwRz4krTr+fPIX8P0DtDE3vlu5LW9m/2tnrkMBuCyWOP+ /Yv3A9OpmC3cU1fRZNMaNWEmBnolB6sSEYlpi+fCkZm2DWc6MKkxZWXuHGeaJ3V3LuLj 3JT8c5YH+VU5V3aoe33o4alARbgD0ZF3bcFfoqfLKV3af/8O8y6SWHwc0NMISWnOu2YQ zJPzck+keJ22HgPIDR2w47y09pU1BWA0rIZHjnFLtkBbM7V2Upf01Zn4hUs+1YVmc737 0mKg== 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:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=2sHiOSF3vSKHTtdySFCK/qwvgoyjnptua5aLuaQ93YU=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=HJnyMMD/T0iIwSRoP6r1ohso/pC8ZBHaLK+NtlbC8bjbEpMRqrdjJgguraPRN/nPod osWL+CU/zrnIOmn6dmFBKXDqkWxuIzQBJJE6XkyWLDpImzd+VVFNT6vlXEqKgCBJkBY+ 2WBxXEfrMVaJl8h2ZE7JL8QLzc6urIm8KHRsThVBmeReQbrgwX7UaGtsLt7zz7E3qpk0 aJI7+kwqtYDg6GS9Gtr/jIamnl98hO+Ms6fSiwvPerIkeKjtghcx3OuK9H/RkrzeFvJN jrqD83x310PvrUBH2+fJIQIa2nHkZdoxm7i94+WmcTWW2yKqxoSYVlTSgcDw2qKWo6/t B64g== 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=1695373823; x=1695978623; 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:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=2sHiOSF3vSKHTtdySFCK/qwvgoyjnptua5aLuaQ93YU=; b=v9DyQv4HAnorO0mdFaqMFc6riYUb3/bh/2NYvHGkQY8by8xWV5ClUWHTJcYn5XREs3 W8hF3ksSln79nzHQ+9rgTC0ynEaccnL0xQD4pcKJxD8oT/iyHOLfvcYs4ez9acSkEQac 3/0VjOC243/RAMxksr6zw864+HOdTXloCVZiE0JeO2VkJzRFrOiP2w9IQ7D04/GYtvhj SMHuH7S/W3EwaCWqze46hRIZE4lpnExxyy3xZjp9SPxH1miqsJEpcWNmryrNNLkynBg6 vpMfI9vzab4a3dvbxUk0MumyHQCHwcLhVb61FLMoiDPAkD0a1Yai2G/0Qg5SoRZyVTRw fyFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695373823; x=1695978623; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=2sHiOSF3vSKHTtdySFCK/qwvgoyjnptua5aLuaQ93YU=; b=E0Rujv8q3OgDpCQ6LItNP/DvpXow6udF31r6zqt3pv/suB0zeDy5sjcMlzaQBBwa35 pInj5BciP1p+TBrOYGQNaYrWNRY4QgHx6NwNa3c1WYSULM/ZXdMHqX2jwan2v/YqbByE qhXoC4wbq8ztw3S3SwwdgnLiAQ/+YP3YTeI/JlhkkTkCMWV5TVkBQqUUQo+I56nDEQAN OZbgGx6ZtUgsF7jfzskohMvPVUNiwLiXLEYmD8gIjfnIraFGPmd0vNhS4KEdW1++kMw+ 3qNAusO5ktBWrHZ469ykr4R3yb8Y2O4L5IkHnao95zefPIA0sxoFMCmTUxHGxC1LVziW n55w== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOJu0Yxd19XRH8EcL5bhhWU9lz4NjTX6R/hORWChREOQsLQ5Yqi74YEV Mm19AfSRQaavMlCYmMo36Bw= X-Google-Smtp-Source: AGHT+IESAj6TwuLUNz66w0NhghmRmXKyuhqYrlSGKGnGDOIYdCSkGBGiCp+MQ7CHb3YhRJtUv4kDIA== X-Received: by 2002:ac2:5dd7:0:b0:502:d302:e025 with SMTP id x23-20020ac25dd7000000b00502d302e025mr6590486lfq.2.1695373822547; Fri, 22 Sep 2023 02:10:22 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:8c1a:0:b0:504:21fa:eb91 with SMTP id o26-20020a198c1a000000b0050421faeb91ls559897lfd.0.-pod-prod-02-eu; Fri, 22 Sep 2023 02:10:20 -0700 (PDT) X-Received: by 2002:ac2:5a50:0:b0:500:90d1:90a6 with SMTP id r16-20020ac25a50000000b0050090d190a6mr6863851lfn.63.1695373820318; Fri, 22 Sep 2023 02:10:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695373820; cv=none; d=google.com; s=arc-20160816; b=rCoiMEMpDfNI2RHicTZNaK7YEG3BzhmE6iDur8ZlVpGKCBpS8IU2Ji68saEdgQ6OPd pypgLOWFgSnCYuUo+Kqp7eq7HfvTm55v6bGRLIiTeMewE1Z3Q7gvbo0YDsrd9eHffZJ9 qaEx7Cu1Ipn5qpJdZVrCEpbzEWRTqT0Nk8fiiSymYsLyb/Gkwne+cCE9h+1ZBdRok61V T7VcL9YaoBXbwvJLXWpXb76X5/r7EHNYsNO0J7bD666fSeEjE47bLA0d64woCCz3ispl O8L2eer3EzuhwMJXlqFqfUSK8eqtibQ4CdOnXhSHR5nOuJnoZ8bOpCgUxWSXHkyGqauF c/Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=NXDYg5WwIxhuOMF8DyCL8lK+pviZBGD1Q1dgWjVaCmo=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=YMm4AcAL2xgWXQbd9MuZjG8GK/oyNOuCynr09JDO97tuNPoShCIQCJjvYI1amSVqhl UoGVse4fEnXI77XmEhsdt8QkOXnP9iYv/vYUJPCwy6u3AQOoI9lqmSJEkhT82NZpDcaI /jgFVgma6ueEqEIIn+3E8Q4uFEHT03nkz7TozhPcPwovWPEptgkJhlszN37/wwhEnRza sQRIUHvL2r9cg+k0ddXtfxsGWPpQzc/lH3mEso20mdZ/x5M2W60GetJiIEo/PdGxxKuc Ta6BHQL5qemldoloLaUNWcVIm77y9fKlB9JO7jGNh8boA6E0xaxfRCjkJiGLKUskWNSI dzaA== 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 bd19-20020a056402207300b0052e7b1828cfsi308123edb.5.2023.09.22.02.10.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Sep 2023 02:10:20 -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 38M9A3Z5031991 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:19 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 02/13] kas: Add a local copy of kas-container script Date: Fri, 22 Sep 2023 11:09:52 +0200 Message-Id: <20230922091003.20763-3-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230922091003.20763-1-ubely@ilbers.de> References: <20230922091003.20763-1-ubely@ilbers.de> 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?= Taken from revision `044c7d0` (tag `4.0`) of `kas` project [1]. Basic usage: ``` ./kas/kas-container menu ./kas/kas-container build ./kas/kas-container shell ``` [1] https://github.com/siemens/kas Signed-off-by: Uladzimir Bely --- kas/kas-container | 562 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 562 insertions(+) create mode 100755 kas/kas-container diff --git a/kas/kas-container b/kas/kas-container new file mode 100755 index 00000000..8fa2d16e --- /dev/null +++ b/kas/kas-container @@ -0,0 +1,562 @@ +#!/bin/sh +# +# kas - setup tool for bitbake based projects +# +# Copyright (c) Siemens AG, 2018-2022 +# +# Authors: +# Jan Kiszka +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +set -e + +usage() +{ + printf "%b" "Usage: $0 [OPTIONS] { build | shell } [KASOPTIONS] [KASFILE]\n" + printf "%b" " $0 [OPTIONS] { checkout | dump } [KASOPTIONS] [KASFILE]\n" + printf "%b" " $0 [OPTIONS] for-all-repos [KASOPTIONS] [KASFILE] COMMAND\n" + printf "%b" " $0 [OPTIONS] { clean | cleansstate | cleanall}\n" + printf "%b" " $0 [OPTIONS] menu [KCONFIG]\n" + printf "%b" "\nPositional arguments:\n" + printf "%b" "build\t\t\tCheck out repositories and build target.\n" + printf "%b" "checkout\t\tCheck out repositories but do not build.\n" + printf "%b" "dump\t\t\tCheck out repositories and write flat version\n" + printf "%b" " \t\t\tof config to stdout.\n" + printf "%b" "shell\t\t\tRun a shell in the build environment.\n" + printf "%b" "for-all-repos\t\tRun specified command in each repository.\n" + printf "%b" "clean\t\t\tClean build artifacts, keep sstate cache and " \ + "downloads.\n" + printf "%b" "cleansstate\t\tClean build artifacts and sstate cache, " \ + "keep downloads.\n" + printf "%b" "cleanall\t\tClean build artifacts, sstate cache and " \ + "downloads.\n" + printf "%b" "menu\t\t\tProvide configuration menu and trigger " \ + "configured build.\n" + printf "%b" "\nOptional arguments:\n" + printf "%b" "--isar\t\t\tUse kas-isar container to build Isar image.\n" + printf "%b" "--with-loop-dev Pass a loop device to the " \ + "container. Only required if\n" + printf "%b" "\t\t\tloop-mounting is used by recipes.\n" + printf "%b" "--runtime-args\t\tAdditional arguments to pass to the " \ + "container runtime\n" + printf "%b" "\t\t\tfor running the build.\n" + printf "%b" "-d\t\t\tPrint debug output (deprecated, use -l debug).\n" + printf "%b" "-l, --log-level\t\tSet log level (default=info).\n" + printf "%b" "-v\t\t\tSame as -d (deprecated).\n" + printf "%b" "--version\t\tprint program version.\n" + printf "%b" "--ssh-dir\t\tDirectory containing SSH configurations.\n" + printf "%b" "\t\t\tAvoid \$HOME/.ssh unless you fully trust the " \ + "container.\n" + printf "%b" "--ssh-agent\t\tForward ssh-agent socket to the container.\n" + printf "%b" "--aws-dir\t\tDirectory containing AWScli configuration.\n" + printf "%b" "--git-credential-store\tFile path to the git credential " \ + "store\n" + printf "%b" "--no-proxy-from-env\tDo not inherit proxy settings from " \ + "environment.\n" + printf "%b" "--repo-ro\t\tMount current repository read-only\n" \ + "\t\t\t(default for build command)\n" + printf "%b" "--repo-rw\t\tMount current repository writeable\n" \ + "\t\t\t(default for shell command)\n" + printf "%b" "\n" + printf "%b" "You can force the use of podman over docker using " \ + "KAS_CONTAINER_ENGINE=podman.\n" + exit 1 +} + +trace() +{ + [ -n "${KAS_VERBOSE}" ] && echo "+ $*" >&2 + "$@" +} + +enable_isar_mode() { + if [ -n "${ISAR_MODE}" ]; then + return + fi + ISAR_MODE=1 + + KAS_CONTAINER_IMAGE_NAME_DEFAULT="kas-isar" + KAS_ISAR_ARGS="--privileged" + + if [ "${KAS_CONTAINER_ENGINE}" = "podman" ]; then + # sudo is needed for a privileged podman container + KAS_CONTAINER_COMMAND="sudo --preserve-env ${KAS_CONTAINER_COMMAND}" + # preserved user PATH may lack sbin needed by privileged podman + export PATH="${PATH}:/usr/sbin" + fi +} + +enable_oe_mode() { + if [ "${KAS_CONTAINER_ENGINE}" = "podman" ]; then + # The container entry point expects that the current userid + # calling "podman run" has a 1:1 mapping + KAS_RUNTIME_ARGS="${KAS_RUNTIME_ARGS} --userns=keep-id" + fi +} + +run_clean() { + if [ -n "${KAS_ISAR_ARGS}" ]; then + set_container_image_var + # SC2086: Double quote to prevent globbing and word splitting. + # shellcheck disable=2086 + trace ${KAS_CONTAINER_COMMAND} run -v "${KAS_BUILD_DIR}":/build:rw \ + --workdir=/build --rm ${KAS_ISAR_ARGS} \ + ${KAS_CONTAINER_IMAGE} \ + sudo rm -rf tmp + else + trace rm -rf "${KAS_BUILD_DIR}"/tmp* + fi + + if [ "$1" != "clean" ]; then + SSTATE_DIR=${SSTATE_DIR:-${KAS_BUILD_DIR}/sstate-cache} + trace rm -rf "${SSTATE_DIR}" + + if [ "$1" = "cleanall" ]; then + DL_DIR=${DL_DIR:-${KAS_BUILD_DIR}/downloads} + trace rm -rf "${DL_DIR}" + fi + fi +} + +KAS_IMAGE_VERSION_DEFAULT="4.0" +KAS_CONTAINER_IMAGE_PATH_DEFAULT="ghcr.io/siemens/kas" +KAS_CONTAINER_IMAGE_NAME_DEFAULT="kas" + +set_container_image_var() { + KAS_IMAGE_VERSION="${KAS_IMAGE_VERSION:-${KAS_IMAGE_VERSION_DEFAULT}}" + KAS_CONTAINER_IMAGE_NAME="${KAS_CONTAINER_IMAGE_NAME:-${KAS_CONTAINER_IMAGE_NAME_DEFAULT}}" + KAS_CONTAINER_IMAGE_PATH="${KAS_CONTAINER_IMAGE_PATH:-${KAS_CONTAINER_IMAGE_PATH_DEFAULT}}" + KAS_CONTAINER_IMAGE_DEFAULT="${KAS_CONTAINER_IMAGE_PATH}/${KAS_CONTAINER_IMAGE_NAME}:${KAS_IMAGE_VERSION}" + KAS_CONTAINER_IMAGE="${KAS_CONTAINER_IMAGE:-${KAS_CONTAINER_IMAGE_DEFAULT}}" +} + +KAS_WORK_DIR=$(readlink -fv "${KAS_WORK_DIR:-$(pwd)}") +# KAS_WORK_DIR needs to exist for the subsequent code +trace mkdir -p "${KAS_WORK_DIR}" +KAS_BUILD_DIR=$(readlink -fv "${KAS_BUILD_DIR:-${KAS_WORK_DIR}/build}") +trace mkdir -p "${KAS_BUILD_DIR}" + +KAS_CONTAINER_ENGINE="${KAS_CONTAINER_ENGINE:-${KAS_DOCKER_ENGINE}}" +if [ -z "${KAS_CONTAINER_ENGINE}" ]; then + # Try to auto-detect a container engine + if command -v docker >/dev/null; then + case $(docker -v 2>/dev/null) in + podman*) + # The docker command is an alias for podman + KAS_CONTAINER_ENGINE=podman + ;; + Docker*) + # The docker command is the real docker + KAS_CONTAINER_ENGINE=docker + ;; + *) + # The docker command is an unknown engine + echo "$0: docker command found, but unknown engine detected" >&2 + exit 1 + esac + elif command -v podman >/dev/null; then + KAS_CONTAINER_ENGINE=podman + else + echo "$0: no container engine found, need docker or podman" >&2 + exit 1 + fi +fi + +KAS_RUNTIME_ARGS="--log-driver=none --user=root" + +case "${KAS_CONTAINER_ENGINE}" in +docker) + KAS_CONTAINER_COMMAND="docker" + ;; +podman) + KAS_CONTAINER_COMMAND="podman" + KAS_RUNTIME_ARGS="${KAS_RUNTIME_ARGS} --security-opt label=disable" + ;; +*) + echo "$0: unknown container engine '${KAS_CONTAINER_ENGINE}'" >&2 + exit 1 + ;; +esac + +# parse kas-container options +while [ $# -gt 0 ]; do + case "$1" in + --isar) + enable_isar_mode + shift 1 + ;; + --with-loop-dev) + if ! KAS_LOOP_DEV=$(/sbin/losetup -f 2>/dev/null); then + if [ "$(id -u)" -eq 0 ]; then + echo "Error: loop device not available!" + exit 1 + fi + sudo_command="/sbin/losetup -f" + sudo_message="[sudo] enter password to setup loop" + sudo_message="$sudo_message devices by calling" + sudo_message="$sudo_message '$sudo_command': " + # SC2086: Double quote to prevent globbing and word splitting. + # shellcheck disable=2086 + if ! KAS_LOOP_DEV=$(sudo -p "$sudo_message" $sudo_command \ + 2>/dev/null); then + echo "Error: loop device setup unsuccessful!" + echo "try calling '$sudo_command' with root" \ + "permissions manually." + exit 1 + fi + fi + KAS_WITH_LOOP_DEV="--device ${KAS_LOOP_DEV}" + shift 1 + ;; + --runtime-args|--docker-args) + [ $# -gt 0 ] || usage + KAS_RUNTIME_ARGS="${KAS_RUNTIME_ARGS} $2" + shift 2 + ;; + --ssh-dir) + [ $# -gt 2 ] || usage + KAS_SSH_DIR="$2" + shift 2 + ;; + --ssh-agent) + KAS_SSH_AUTH_SOCK=$(readlink -fv "$SSH_AUTH_SOCK") + shift 1 + ;; + --aws-dir) + [ $# -gt 2 ] || usage + KAS_AWS_DIR="$2" + shift 2 + ;; + --git-credential-store) + [ $# -gt 2 ] || usage + KAS_GIT_CREDENTIAL_STORE="$2" + shift 2 + ;; + --no-proxy-from-env) + KAS_NO_PROXY_FROM_ENV=1 + shift 1 + ;; + --repo-ro) + KAS_REPO_MOUNT_OPT="ro" + shift 1 + ;; + --repo-rw) + KAS_REPO_MOUNT_OPT="rw" + shift 1 + ;; + -v | -d) + KAS_VERBOSE=1 + KAS_OPTIONS_DIRECT="${KAS_OPTIONS_DIRECT} -d" + shift 1 + ;; + -l | --log-level) + if [ "$2" = "debug" ]; then + KAS_VERBOSE=1 + fi + KAS_OPTIONS_DIRECT="${KAS_OPTIONS_DIRECT} -l $2" + shift 2 + ;; + --version) + echo "$(basename "$0") $KAS_IMAGE_VERSION_DEFAULT" + exit 0 + ;; + --*) + usage + ;; + clean|cleansstate|cleanall) + [ $# -eq 1 ] || usage + run_clean "$1" + exit 0 + ;; + shell) + KAS_REPO_MOUNT_OPT_DEFAULT="rw" + KAS_CMD=$1 + shift 1 + break + ;; + build|checkout|for-all-repos|menu) + KAS_REPO_MOUNT_OPT_DEFAULT="ro" + KAS_CMD=$1 + shift 1 + break + ;; + dump) + if printf '%s\0' "$@" | grep -xqz -- '--inplace\|-i'; then + KAS_REPO_MOUNT_OPT_DEFAULT="rw" + else + KAS_REPO_MOUNT_OPT_DEFAULT="ro" + fi + KAS_CMD=$1 + shift 1 + break + ;; + *) + usage + ;; + esac +done + +[ -n "${KAS_CMD}" ] || usage + +KAS_EXTRA_BITBAKE_ARGS=0 + +# parse kas sub-command options +while [ $# -gt 0 ] && [ $KAS_EXTRA_BITBAKE_ARGS -eq 0 ]; do + case "$1" in + --skip|--target|--task) + KAS_OPTIONS="${KAS_OPTIONS} $1 $2" + shift 2 + ;; + -c|--cmd|--command) + KAS_BITBAKE_C_OPTION_ARGS="$2" + shift 2 + ;; + -E|--preserve-env) + echo "$1 is not supported with kas-container" + exit 1 + ;; + --) + KAS_EXTRA_BITBAKE_ARGS=$# + ;; + -*) + KAS_OPTIONS="${KAS_OPTIONS} $1" + shift 1 + ;; + *) + KAS_FILES= + # SC2086: Double quote to prevent globbing and word splitting. + # shellcheck disable=2086 + for FILE in $(IFS=':'; echo $1); do + if ! KAS_REAL_FILE="$(realpath -qe "$FILE")"; then + echo "Error: configuration file '${FILE}' not found" + exit 1 + fi + if [ -z "${KAS_FILES}" ]; then + KAS_FIRST_FILE="${KAS_REAL_FILE}" + KAS_FILES="${KAS_REAL_FILE}" + else + KAS_FILES="${KAS_FILES}:${KAS_REAL_FILE}" + fi + done + shift 1 + if [ "$KAS_CMD" = "for-all-repos" ]; then + KAS_REPO_CMD="$1" + shift 1 + fi + ;; + esac +done + +if [ -n "${KAS_FIRST_FILE}" ]; then + KAS_FILE_DIR="$(dirname "${KAS_FIRST_FILE}")" + KAS_REPO_DIR=$(git -C "${KAS_FILE_DIR}" rev-parse --show-toplevel 2>/dev/null) \ + || KAS_REPO_DIR=$(hg --cwd "${KAS_FILE_DIR}" root 2>/dev/null) \ + || KAS_REPO_DIR=${KAS_FILE_DIR} +else + KAS_REPO_DIR=$(pwd) +fi + +SOURCE_DIR_HOST=$( + grep -e "^_source_dir_host: " "${KAS_WORK_DIR}/.config.yaml" 2>/dev/null | \ + sed 's/_source_dir_host:[ ]\+//') +if [ -n "${SOURCE_DIR_HOST}" ]; then + KAS_REPO_DIR="${SOURCE_DIR_HOST}" +fi + +if [ "${KAS_CMD}" = "menu" ]; then + if [ -z "${KAS_FIRST_FILE}" ]; then + KAS_FIRST_FILE="Kconfig" + fi + + # When using the menu plugin, we need to track the KAS_REPO_DIR outside + # of the container to later allow a simple `kas-container build`. For + # that, we tell the kas menu plugin via an env-var about the location + # on the host. This data is then added to the .config.yaml where it can + # be evaluated by the next invocation of kas-container. + + if ! [ "$(realpath -qe "${KAS_REPO_DIR}")" = "$(realpath -qe "${KAS_WORK_DIR}")" ]; then + set -- "$@" -e _KAS_REPO_DIR_HOST="$(readlink -fv "${KAS_REPO_DIR}")" + fi + + BUILD_SYSTEM=$(tr '\n' '\f' 2>/dev/null < ${KAS_FIRST_FILE} | \ + sed -e 's/\(.*\fconfig KAS_BUILD_SYSTEM\f\(.*\)\|.*\)/\2/' \ + -e 's/\f\([[:alpha:]].*\|$\)//' \ + -e 's/.*default \"\(.*\)\".*/\1/') +else + if [ -z "${KAS_FIRST_FILE}" ]; then + KAS_FIRST_FILE="${KAS_WORK_DIR}/.config.yaml" + fi + + BUILD_SYSTEM=$(grep -e "^build_system: " "${KAS_FIRST_FILE}" 2>/dev/null | \ + sed 's/build_system:[ ]\+//') +fi + +if [ "${BUILD_SYSTEM}" = "isar" ]; then + enable_isar_mode +elif [ -z "${ISAR_MODE}" ]; then + enable_oe_mode +fi + +set_container_image_var + +KAS_REPO_MOUNT_OPT="${KAS_REPO_MOUNT_OPT:-${KAS_REPO_MOUNT_OPT_DEFAULT}}" + +KAS_FILES="$(echo "${KAS_FILES}" | sed 's|'"${KAS_REPO_DIR}"'/|/repo/|g')" + +if [ "$(id -u)" -eq 0 ] && [ "${KAS_ALLOW_ROOT}" != "yes" ] ; then + echo "Error: Running as root - may break certain recipes." + echo "Better give a regular user docker access. Set" \ + "KAS_ALLOW_ROOT=yes to override." + exit 1 +fi + +set -- "$@" -v "${KAS_REPO_DIR}":/repo:${KAS_REPO_MOUNT_OPT} \ + -v "${KAS_WORK_DIR}":/work:rw -e KAS_WORK_DIR=/work \ + -v "${KAS_BUILD_DIR}":/build:rw \ + --workdir=/repo \ + -e KAS_BUILD_DIR=/build \ + -e USER_ID="$(id -u)" -e GROUP_ID="$(id -g)" --rm --init + +if [ -n "${KAS_SSH_DIR}" ] ; then + if [ ! -d "${KAS_SSH_DIR}" ]; then + echo "Passed KAS_SSH_DIR '${KAS_SSH_DIR}' is not a directory" + exit 1 + fi + set -- "$@" -v "$(readlink -fv "${KAS_SSH_DIR}")":/var/kas/userdata/.ssh:ro +fi + +if [ -n "${KAS_SSH_AUTH_SOCK}" ]; then + if [ ! -S "${KAS_SSH_AUTH_SOCK}" ]; then + echo "Passed SSH_AUTH_SOCK '${KAS_SSH_AUTH_SOCK}' is not a socket" + exit 1 + fi + set -- "$@" -v "${KAS_SSH_AUTH_SOCK}":/ssh-agent/ssh-auth-sock \ + -e SSH_AUTH_SOCK=/ssh-agent/ssh-auth-sock +fi + +if [ -n "${KAS_AWS_DIR}" ] ; then + if [ ! -d "${KAS_AWS_DIR}" ]; then + echo "Passed KAS_AWS_DIR '${KAS_AWS_DIR}' is not a directory" + exit 1 + fi + set -- "$@" -v "$(readlink -fv "${KAS_AWS_DIR}")":/var/kas/userdata/.aws:ro \ + -e AWS_CONFIG_FILE="${AWS_CONFIG_FILE:-/var/kas/userdata/.aws/config}" \ + -e AWS_SHARED_CREDENTIALS_FILE="${AWS_SHARED_CREDENTIALS_FILE:-/var/kas/userdata/.aws/credentials}" +fi + +KAS_GIT_CREDENTIAL_HELPER_DEFAULT="" + +if [ -n "${KAS_GIT_CREDENTIAL_STORE}" ] ; then + if [ ! -f "${KAS_GIT_CREDENTIAL_STORE}" ]; then + echo "Passed KAS_GIT_CREDENTIAL_STORE '${KAS_GIT_CREDENTIAL_STORE}' is not a file" + exit 1 + fi + KAS_GIT_CREDENTIAL_HELPER_DEFAULT="store --file=/var/kas/userdata/.git-credentials" + set -- "$@" -v "$(readlink -fv "${KAS_GIT_CREDENTIAL_STORE}")":/var/kas/userdata/.git-credentials:ro +fi + +GIT_CREDENTIAL_HELPER="${GIT_CREDENTIAL_HELPER:-${KAS_GIT_CREDENTIAL_HELPER_DEFAULT}}" + +if [ -n "${GIT_CREDENTIAL_HELPER}" ] ; then + set -- "$@" -e GIT_CREDENTIAL_HELPER="${GIT_CREDENTIAL_HELPER}" +fi + +if [ -f "${NETRC_FILE}" ]; then + set -- "$@" -v "$(readlink -fv "${NETRC_FILE}")":/var/kas/userdata/.netrc:ro \ + -e NETRC_FILE="/var/kas/userdata/.netrc" +fi + +if [ -t 1 ]; then + set -- "$@" -t -i +fi + +if [ -n "${DL_DIR}" ]; then + trace mkdir -p "${DL_DIR}" + set -- "$@" \ + -v "$(readlink -fv "${DL_DIR}")":/downloads:rw \ + -e DL_DIR=/downloads +fi + +if [ -n "${SSTATE_DIR}" ]; then + trace mkdir -p "${SSTATE_DIR}" + set -- "$@" \ + -v "$(readlink -fv "${SSTATE_DIR}")":/sstate:rw \ + -e SSTATE_DIR=/sstate +fi + +if [ -n "${KAS_REPO_REF_DIR}" ]; then + if [ ! -d "${KAS_REPO_REF_DIR}" ]; then + echo "Passed KAS_REPO_REF_DIR '${KAS_REPO_REF_DIR}' is not a directory" + exit 1 + fi + set -- "$@" \ + -v "$(readlink -fv "${KAS_REPO_REF_DIR}")":/repo-ref:rw \ + -e KAS_REPO_REF_DIR=/repo-ref +fi + +for var in TERM KAS_DISTRO KAS_MACHINE KAS_TARGET KAS_TASK \ + KAS_PREMIRRORS DISTRO_APT_PREMIRRORS BB_NUMBER_THREADS PARALLEL_MAKE \ + GIT_CREDENTIAL_USEHTTPPATH; do + if [ -n "$(eval echo \$${var})" ]; then + set -- "$@" -e "${var}=$(eval echo \"\$${var}\")" + fi +done + +# propagate only supported SHELL settings +case "$SHELL" in +/bin/sh|/bin/bash|/bin/dash) + set -- "$@" -e "SHELL=$SHELL" + ;; +*) + set -- "$@" -e "SHELL=/bin/bash" + ;; +esac + +if [ -z "${KAS_NO_PROXY_FROM_ENV+x}" ]; then + for var in http_proxy https_proxy ftp_proxy no_proxy NO_PROXY; do + if [ -n "$(eval echo \$${var})" ]; then + set -- "$@" -e "${var}=$(eval echo \$${var})" + fi + done +fi + +# SC2086: Double quote to prevent globbing and word splitting. +# shellcheck disable=2086 +set -- "$@" ${KAS_ISAR_ARGS} ${KAS_WITH_LOOP_DEV} ${KAS_RUNTIME_ARGS} \ + ${KAS_CONTAINER_IMAGE} ${KAS_OPTIONS_DIRECT} ${KAS_CMD} ${KAS_OPTIONS} +if [ -n "${KAS_BITBAKE_C_OPTION_ARGS}" ]; then + set -- "$@" -c "${KAS_BITBAKE_C_OPTION_ARGS}" +fi +# SC2086: Double quote to prevent globbing and word splitting. +# shellcheck disable=2086 +set -- "$@" ${KAS_FILES} +if [ "$KAS_CMD" = "for-all-repos" ]; then + set -- "$@" "${KAS_REPO_CMD}" +fi + +# rotate any extra bitbake args from the front to the end of the argument list +while [ $KAS_EXTRA_BITBAKE_ARGS -gt 0 ]; do + arg="$1" + shift 1 + set -- "$@" "$arg" + KAS_EXTRA_BITBAKE_ARGS=$((KAS_EXTRA_BITBAKE_ARGS - 1)) +done + +trace ${KAS_CONTAINER_COMMAND} run "$@" From patchwork Fri Sep 22 09:09:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 3111 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:31 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f188.google.com (mail-lj1-f188.google.com [209.85.208.188]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 38M9AUDt032095 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:30 +0200 Received: by mail-lj1-f188.google.com with SMTP id 38308e7fff4ca-2bfeaf8cc4bsf25113761fa.0 for ; Fri, 22 Sep 2023 02:10:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695373823; cv=pass; d=google.com; s=arc-20160816; b=a4z4VfOImU19BaQ0BBB3S6bQj6LvBEKBUOiZC4+WHa2DiDUMdBW+dqTBA2+CaPBqgu EhD0ZaTbFItS9zBJSO1MMEG1TdFa1Ha/1qOzH4RnnFdTQqryMN33H6OayJa9vfkvmIwO jRupVgu8lxpMPFCSTBz5GAvAUv4k/OnIUzmj8R6py8a2UUH8ZpBalYQK3/JixCvX9ytg wLqfYwK6AXe1s10e3bS3soc/yyKWSZzIdLSfU4wxToP5mto4iQzvZHovMGgBC8r1fbUO FjfYOWzHu8QGyO00qWjhYWtt0VN9OpfSlffhTalgWGu7KyLfC9Ju1zNPArzammXpbaCC GeYQ== 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:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=x39LQKvzHQW9DoDyURs+hxYuwaW6uwqZj+jJtcgRyRk=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=U7MtineeUHciUjizA4dkgUfEbxhfI7JNiGS3Cmm+icrv7HUFtD5Sq70YghqtDC+j2r pXvNuDw0S2oIdVbZNQK5HmLjFrIzc/s6ykXuMjYfC2jm0kb4JfOEKmUJSeNLPK8zr6rC KsGseipCxh1mSqB8E9wngIyQAjXkbAj0Hyrgy8Tg6NP3WJeiP563JyPuC6/dKKdEMObN Z9jrfS3nW9Y/oEQEXG/dPWzRiG7e/6IHAvFN2PqGA7fBK/DmSSpbc6OAPM3URe5pEyWg /kkdmAi0uhbQOTG8Gmnz1+SIjeFxZspd3bWkt+ummUlhyOxjAcz/Qcc7ekX9wm+VveBO rKdQ== 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=1695373823; x=1695978623; 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:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=x39LQKvzHQW9DoDyURs+hxYuwaW6uwqZj+jJtcgRyRk=; b=Qvvx8e7a6tjaB7ATpeS5wUF2zZhWbez589vydui6KsBSbYNJGJZMarGzYaIi6ObML9 Qv072L/Y5Has/JxWzidkc1xeaehwyti0wg+a0qVnkL0U9U7FSHyY9NEdKxQ2kilRu4gf dgSx18/hsF4QJq+R0+M2WPrO0QPqj/9FeIgB8AfUgoJlj60V8k4i9hT87GQMAcyN1rM4 1ADOm4AUH4HHyj8AEhSEyPARxkJ5HkkKDKpBuSzYmforZkWv8KD9mg7dfkC9/aQ8cHhP rVB8JnP7+8NTR6Midr9eNm+mXp2zxa+vNK9/PvDkKG0xSoSeJWqusRk2hTy8MkXHKCjw WQig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695373823; x=1695978623; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=x39LQKvzHQW9DoDyURs+hxYuwaW6uwqZj+jJtcgRyRk=; b=b4R+WMLaZYrOQ/oIvRS9yJkZQTmaIYceZg15YkqjkysCbSISt9KWUz3DYtFp6vKYek ovGvdeizBoeqMXuTHYY88F0anZY3Vn4qI0HMzSxoakWMoy32vVO0fVGOKoQvnjVyWPut LU9riKKC/NhYCQ3R5c6EFKkWK9NTDqOjKlEJi3lfN7thZsqDCZn/Td0j8zGktwjSCF1f 72pRLNIUydyGxKrDSG0iAILQreiCt/VmttCBmEq2pVqds5obVw3vZJbbGe/UVcrWkAg7 BSLJB+XFmK9+/2/k8mfQZMbErSQxoBsWyDmKYcI/sR2YGPETEpLjlp1qvMhcXVlr+Bs1 sjjw== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOJu0Yy1vFnXTXmkfT3hrAplOmsewdwSCt1W6Jq4dUfhOzZeYvdPTpNo 9+Edfn5+DAl+kSuA1b0Z9Ic= X-Google-Smtp-Source: AGHT+IEgbv3E/GZm1ZgdoppEIRnNcYx5s0Y4Awpby3GygT0KZvWcwn7OxLwfGPlHaWmg+V+1yAfqHA== X-Received: by 2002:a2e:9c49:0:b0:2b6:de52:357 with SMTP id t9-20020a2e9c49000000b002b6de520357mr6041305ljj.40.1695373823014; Fri, 22 Sep 2023 02:10:23 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:bcc4:0:b0:2b9:722f:8f69 with SMTP id z4-20020a2ebcc4000000b002b9722f8f69ls586954ljp.1.-pod-prod-03-eu; Fri, 22 Sep 2023 02:10:21 -0700 (PDT) X-Received: by 2002:a2e:924d:0:b0:2c0:2f51:cb98 with SMTP id v13-20020a2e924d000000b002c02f51cb98mr7040540ljg.11.1695373820880; Fri, 22 Sep 2023 02:10:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695373820; cv=none; d=google.com; s=arc-20160816; b=IWsXKr46VO/Ft+yJZodgcpJgPX7YQH1DPqN6auFbj1Or+O3J9fjeVsAT/NlG8tcppw U1yaD9lNAYe/nCCcwCd/X+LySigUWKiZsqXN4SZZUb29Xeh8nXN4YUerZzbSmb6VuIpF LkbqNpfGPtOrCY7r8DAPAFvBwVLpIDW4g6tmhtAzv99NwhLzsCNgAbTX5NvgDI0SjOFG 8sQoa1p8Bb/bNeNWS/vLa3DfqMymMEypwLXf7pEP708HkHStNgC23/MJDe34M8Jpk2bl CW1ZoSLvQ1u6PYIgs11KvF8LqfpptjEaGCjH4iMf4z7bhDqvWhOrewsBA1V3pb3FJYmM IZ5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=8CY7HhlJimauZaWLYx1l+JWGceoqTuwtXnIfQ0/CMH4=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=yuyzEX/cm222pK2F1y0gedpkkdT+awFRM12g7kDmgIz9enCXIhKWDw19mLhWvKV9NN 8zWcyBNvMwg22WFtcHy27DVxj5pGqRcfQ0YOd6bN8q0ltunp8oOprtT0vSY3BLFoWTvx FTUWZnCxazoPV2r+NUCoisppRlSf9+MtOicRN3OIpC/XW5bY1MgU9DiVPIDKofrxDrhd 5qk4MUqUx3lL2HJZHil7aO3uF5fFPmOBFF9GByV3mC5zNQPflHUBZ0WTcGMK0ihNbazz 4OmlcVqomyHVzC3aYgb4b93IQ1rk9fAg97rLz0VvwTryGxsQ3DDB2bl8mLbIY9jpsnIm Lxzg== 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 u3-20020a17090657c300b009adbab54deesi241946ejr.2.2023.09.22.02.10.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Sep 2023 02:10:20 -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 38M9A3Z6031991 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:20 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 03/13] kas: Add mirror selection Date: Fri, 22 Sep 2023 11:09:53 +0200 Message-Id: <20230922091003.20763-4-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230922091003.20763-1-ubely@ilbers.de> References: <20230922091003.20763-1-ubely@ilbers.de> 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 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 --- Kconfig | 1 + kas/opt/Kconfig | 42 ++++++++++++++++++++++++++++++++++++++ kas/opt/mirror-debian.yaml | 10 +++++++++ kas/opt/mirror-ubuntu.yaml | 10 +++++++++ 4 files changed, 63 insertions(+) create mode 100644 kas/opt/Kconfig create mode 100644 kas/opt/mirror-debian.yaml create mode 100644 kas/opt/mirror-ubuntu.yaml diff --git a/Kconfig b/Kconfig index 591fe765..a62fbf6c 100644 --- a/Kconfig +++ b/Kconfig @@ -16,3 +16,4 @@ config KAS_BUILD_SYSTEM source "kas/distro/Kconfig" source "kas/machine/Kconfig" +source "kas/opt/Kconfig" diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig new file mode 100644 index 00000000..06a9e3e5 --- /dev/null +++ b/kas/opt/Kconfig @@ -0,0 +1,42 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH +# +# Authors: +# Uladzimir Bely + +menu "Mirror selection" + +config MIRROR_DEBIAN + bool "Use specific Debian mirror" + depends on DEBIAN_BUSTER || DEBIAN_BULLSEYE || 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.yaml" + depends on MIRROR_DEBIAN + + +config MIRROR_UBUNTU + bool "Use specific Ubuntu mirror" + depends on UBUNTU_FOCAL || UBUNTU_JAMMY + 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.yaml" + depends on MIRROR_UBUNTU + +endmenu diff --git a/kas/opt/mirror-debian.yaml b/kas/opt/mirror-debian.yaml new file mode 100644 index 00000000..4dd4fc17 --- /dev/null +++ b/kas/opt/mirror-debian.yaml @@ -0,0 +1,10 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +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.yaml b/kas/opt/mirror-ubuntu.yaml new file mode 100644 index 00000000..3774b079 --- /dev/null +++ b/kas/opt/mirror-ubuntu.yaml @@ -0,0 +1,10 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + mirror-ubuntu: | + DISTRO_APT_PREMIRRORS += "\ + http://archive\.ubuntu\.com ${MIRROR_UBUNTU_URL}\n" From patchwork Fri Sep 22 09:09:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 3110 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:31 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f63.google.com (mail-lf1-f63.google.com [209.85.167.63]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 38M9ATxe032080 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:29 +0200 Received: by mail-lf1-f63.google.com with SMTP id 2adb3069b0e04-503c774fd61sf2251974e87.3 for ; Fri, 22 Sep 2023 02:10:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695373824; cv=pass; d=google.com; s=arc-20160816; b=GAfZ9YDrYNpabnNkeF1pJVSpDHuvGVTKEsAhkVDhphL6PDWfst79Qsx7yRvP0KtIZU BXeTQvLMW4N3sJigJiETkPHEQJqj9xLOlAnklDLshnajrw24/Mn8VJaAtkZCOap2brA3 ybAI6LSmgZ8FEfqf/DKbwM/m+63pE8DX5Q7m3bRndRsKzSLuwYeP+52i519TQhazPqJy djnoTDJ5GyF6scp0yjB4TEnghrQKyg1MAgQq9sqDxNidTTbHBmYPRdqZ8Px9tyTcwmBB GwVdEaABrV1F73jSQXbkwv4NQ9QvDKTf1YH1gxQS9G+Rbzf9f/42hxAz9AOQQuB7reV8 AHEg== 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:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=3giYidd6W6jF78QLuQeCtyyjhb5I5uXfqm/cxrq7vV4=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=jZ2zAmyuMAqfanPxL5/qzTCunvy3HNrSAFsTnizodVqgPYbM4UvyhtvprTXE43NCxr B516N0oY47gT32sidIHle/SDPpn6FuwjEGmWW+Cboaq21iQYBIjPpNtv9/lVsz4lL4as k6LroOV5poKdEB5sTMu9RKe6nvKpuVeKBEFMMBA6pp5K3AT96mNj3ETwYjcQwNmj2G3V dC/UjOMYyexg6c4/3CNtV9EaykisFvTo2lISBna7TOoEjbLi6gRUL0gP8cjMRzs8as/4 94O9jMwvar2kKsu5dNXVjWeYDvhFwDGu3zfI7yIjDxZKMOsoZRNtWruTO3rIPsipPfaO cIDg== 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=1695373824; x=1695978624; 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:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=3giYidd6W6jF78QLuQeCtyyjhb5I5uXfqm/cxrq7vV4=; b=bHF/BFqi5nGUSiQT61v/fTrE5loIaz4EJuZS1Sxgbrclm26utxF8ho8ytnRw0nBeIg PuyE8TmibxRl3SjyZEGvKW3SQO3xK9wVxzB64DXR4vPyRtaaFf0Fuyhru0Z6WtoKLwsP v1RqejdEG73wePqMM0WL8+3F4G+hQKsqafhBQexjRW5dfI2ym6P6zUaLYzFgCA2LpQ3r MRHmtdWzQb+XdGkqklLsM9j18GF1D2q7STs90mElW2NMOLNHxmH9P67IhJhuWBcqVsz3 KNleyZI4cmVgoAos3OPLXZLlT/VmOgi2dhxWjSFTtifyRgPUoYyxJwpcaLTNG9C4aM5k 4FCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695373824; x=1695978624; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=3giYidd6W6jF78QLuQeCtyyjhb5I5uXfqm/cxrq7vV4=; b=UQ9UIHBn5xNpd4t/RrwE8FJ0dtBdeVBXwYtHWyY7LLRAAKElw+4bT/Wc176457/K7N GMD85sJJMFypwEdparjhLDc/VyMseaSbUOjaiIUxFaYpqyOu4qjSWtlW2ob7l0krmfKy O0qnPxm0br3BS+Ziw2HLmwwwxtOVnpZUMiDPaQwkMkcjG3hpMktKugEggx+xC3zyjQwi 0En1jJGj/pMNLiKRxWggE/s6us+uepkfot7htjkdgqDi7hlAOHjg98x9uwRo3A2KN4R9 afjHAjSBOw/N68vK2+QMf8iqpsxBsobuZzMOfWiITM0Nn/NiW3SLpATjETe0pgDqNKS8 b0lA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOJu0Yzn+MH+orq91sKy5FPAIiQUTN8XooiHuwa5R3ccXd08NjOdXu0L XaDZLCsQMzSaleH+ufPcCkQ= X-Google-Smtp-Source: AGHT+IFrIUdUgmuNMUs0K3Rm+qscehqu9dyLGo3ltvI0carU2JzfA8w4CFuOlUwnoM3Ig6mTDrP0cw== X-Received: by 2002:a05:6512:312d:b0:4fe:347d:7c4b with SMTP id p13-20020a056512312d00b004fe347d7c4bmr6091284lfd.7.1695373823537; Fri, 22 Sep 2023 02:10:23 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:534:b0:500:80c9:a128 with SMTP id o20-20020a056512053400b0050080c9a128ls550847lfc.0.-pod-prod-03-eu; Fri, 22 Sep 2023 02:10:21 -0700 (PDT) X-Received: by 2002:a19:5f15:0:b0:4ff:7602:5879 with SMTP id t21-20020a195f15000000b004ff76025879mr6573258lfb.55.1695373821419; Fri, 22 Sep 2023 02:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695373821; cv=none; d=google.com; s=arc-20160816; b=lueojsK2r0U7ZozUJ1xJbzgOSD8mHyjcV9J9XeAd0awD2HXCHIl3yIRpaPAxCK5jGh jtATKQgRhPXgAfd7mLA0t9NMqWY6hysIzsv7PJ55Hs6ILmokNVhIsU4ksaYSaU6biEdz Rwgoj9gwDrnkna6Nl0s1AozJFgUZv31+tGlkzkfN26LGjnIvkNY0iaposBpRlenh3Y7T BJTrBmIYO/JaFobMoEFcGZHp69zEkUBu2IcH3F/RJ8h7MTn0iJKfgbgv2JRAiL3CF4vZ YZ5GtQqBB4FXfTdwJQIIc3hFcK9TxLO0c/aNRMGEBHw+tLnz8ahBzSLkukmDMuvrfuYy 095w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=1fLMmt3+ajPOypDDpcqcrKxjWB1AgC2Tftxb5D33FwE=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=xwga7KDYT+t4OE3weocq5hjOStwhMIZLbpXHmyG8Ha8NVqGhHZdB9ZjUlDt79P6ZoQ 0TSqbHJnshW/PsLyjesJd6ioxY14DWu5SB83/s0GFoo2ZrEq9Ya9N36lkG+EPVIqcl2h cb7IRiv6yKC+rUwsvYKXdv0G6TuBzBBK8ZuhSCu7Xlk+wCYVDJBt64YxPj9aPRhuXizL J1/q2b7/SHX+jGvzbAsezZ3XkMmPxeM1pLJGji1V7K8qjxAblDRk0QT+bkb+3/gVjvRp jB+TZ1YYVp3XK0BVuoqcX4mVxtuG1t+kLLbwl39vDCPC3mrT/hc3oUvK4ucbw4RiO+bf tTZA== 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 v21-20020ac258f5000000b004fbcd4b8b84si262072lfo.0.2023.09.22.02.10.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Sep 2023 02:10:21 -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 38M9A3Z7031991 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:20 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 04/13] kas: Add packages selection Date: Fri, 22 Sep 2023 11:09:54 +0200 Message-Id: <20230922091003.20763-5-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230922091003.20763-1-ubely@ilbers.de> References: <20230922091003.20763-1-ubely@ilbers.de> 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 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 --- Kconfig | 1 + 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 ++ 16 files changed, 281 insertions(+) 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 diff --git a/Kconfig b/Kconfig index a62fbf6c..5a3050a4 100644 --- a/Kconfig +++ b/Kconfig @@ -16,4 +16,5 @@ config KAS_BUILD_SYSTEM source "kas/distro/Kconfig" source "kas/machine/Kconfig" +source "kas/package/Kconfig" source "kas/opt/Kconfig" diff --git a/kas/package/Kconfig b/kas/package/Kconfig new file mode 100644 index 00000000..139651cd --- /dev/null +++ b/kas/package/Kconfig @@ -0,0 +1,154 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH +# +# Authors: +# Uladzimir Bely + +menu "Packages selection" + +menu "Isar packages" + +config PACKAGE_COWSAY + bool "cowsay" + default y + +config KAS_INCLUDE_PACKAGE_COWSAY + string + default "kas/package/pkg_cowsay.yaml" + depends on PACKAGE_COWSAY + + +config PACKAGE_ENABLE_FSCK + bool "enable-fsck" + default y + +config KAS_INCLUDE_PACKAGE_ENABLE_FSCK + string + default "kas/package/pkg_enable-fsck.yaml" + depends on PACKAGE_ENABLE_FSCK + + +config PACKAGE_EXAMPLE_RAW + bool "example-raw" + default y + +config KAS_INCLUDE_PACKAGE_EXAMPLE_RAW + string + default "kas/package/pkg_example-raw.yaml" + depends on PACKAGE_EXAMPLE_RAW + + +config PACKAGE_EXAMPLE_MODULE + bool "example-module" + default y + +config KAS_INCLUDE_PACKAGE_EXAMPLE_MODULE + string + default "kas/package/pkg_example-module.yaml" + depends on PACKAGE_EXAMPLE_MODULE + + +config PACKAGE_EXAMPLE_PREBUILT + bool "example-prebuilt" + default y + +config KAS_INCLUDE_PACKAGE_EXAMPLE_PREBUILT + string + default "kas/package/pkg_example-prebuilt.yaml" + depends on PACKAGE_EXAMPLE_PREBUILT + + +config PACKAGE_EXPAND_ON_FIRST_BOOT + bool "expand-on-first-boot" + default y + +config KAS_INCLUDE_PACKAGE_EXPAND_ON_FIRST_BOOT + string + default "kas/package/pkg_expand-on-first-boot.yaml" + depends on PACKAGE_EXPAND_ON_FIRST_BOOT + + +config PACKAGE_HELLO + bool "hello" + default y + +config KAS_INCLUDE_PACKAGE_HELLO + string + default "kas/package/pkg_hello.yaml" + depends on PACKAGE_HELLO + + +config PACKAGE_HELLO_ISAR + bool "hello-isar" + default y + +config KAS_INCLUDE_PACKAGE_HELLO_ISAR + string + default "kas/package/pkg_hello-isar.yaml" + depends on PACKAGE_HELLO_ISAR + + +config PACKAGE_ISAR_EXCLUDE_DOCS + bool "isar-exclude-docs" + default y + +config KAS_INCLUDE_PACKAGE_ISAR_EXCLUDE_DOCS + string + default "kas/package/pkg_isar-exclude-docs.yaml" + depends on PACKAGE_ISAR_EXCLUDE_DOCS + + +config PACKAGE_ISAR_DISABLE_APT_CACHE + bool "isar-disable-apt-cache" + default y + +config KAS_INCLUDE_PACKAGE_ISAR_DISABLE_APT_CACHE + string + default "kas/package/pkg_isar-disable-apt-cache.yaml" + depends on PACKAGE_ISAR_DISABLE_APT_CACHE + + +config PACKAGE_KSELFTEST + bool "kselftest" + default n + +config KAS_INCLUDE_PACKAGE_KSELFTEST + string + default "kas/package/pkg_kselftest.yaml" + depends on PACKAGE_KSELFTEST + + +config PACKAGE_SAMEFILE + bool "samefile" + default y + +config KAS_INCLUDE_PACKAGE_SAMEFILE + string + default "kas/package/pkg_samefile.yaml" + depends on PACKAGE_SAMEFILE + + +config PACKAGE_SSHD_REGEN_KEYS + bool "sshd-regen-keys" + default y + +config KAS_INCLUDE_PACKAGE_SSHD_REGEN_KEYS + string + default "kas/package/pkg_sshd-regen-keys.yaml" + depends on PACKAGE_SSHD_REGEN_KEYS + +endmenu + +config KAS_IMAGE_PREINSTALL + string "Distro packages" + default "fdisk iproute2 iputils-ping ics-dhcp-client" + 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/package/packages-distro.yaml" + +endmenu diff --git a/kas/package/packages-distro.yaml b/kas/package/packages-distro.yaml new file mode 100644 index 00000000..a4bf9149 --- /dev/null +++ b/kas/package/packages-distro.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + packages-distro: | + IMAGE_PREINSTALL:append = " ${KAS_IMAGE_PREINSTALL}" diff --git a/kas/package/pkg_cowsay.yaml b/kas/package/pkg_cowsay.yaml new file mode 100644 index 00000000..1b1a174d --- /dev/null +++ b/kas/package/pkg_cowsay.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + package-cowsay: | + IMAGE_INSTALL:append = " cowsay" diff --git a/kas/package/pkg_enable-fsck.yaml b/kas/package/pkg_enable-fsck.yaml new file mode 100644 index 00000000..2ea836d0 --- /dev/null +++ b/kas/package/pkg_enable-fsck.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + package-enable-fsck: | + IMAGE_INSTALL:append = " enable-fsck" diff --git a/kas/package/pkg_example-module.yaml b/kas/package/pkg_example-module.yaml new file mode 100644 index 00000000..f756d681 --- /dev/null +++ b/kas/package/pkg_example-module.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + package-example-module: | + IMAGE_INSTALL:append = " example-module-${KERNEL_NAME}" diff --git a/kas/package/pkg_example-prebuilt.yaml b/kas/package/pkg_example-prebuilt.yaml new file mode 100644 index 00000000..81800d85 --- /dev/null +++ b/kas/package/pkg_example-prebuilt.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + package-example-prebuilt: | + IMAGE_INSTALL:append = " example-prebuilt" diff --git a/kas/package/pkg_example-raw.yaml b/kas/package/pkg_example-raw.yaml new file mode 100644 index 00000000..65298e70 --- /dev/null +++ b/kas/package/pkg_example-raw.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + package-example-raw: | + IMAGE_INSTALL:append = " example-raw" diff --git a/kas/package/pkg_expand-on-first-boot.yaml b/kas/package/pkg_expand-on-first-boot.yaml new file mode 100644 index 00000000..d5dea83d --- /dev/null +++ b/kas/package/pkg_expand-on-first-boot.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + package-expand-on-first-boot: | + IMAGE_INSTALL:append = " expand-on-first-boot" diff --git a/kas/package/pkg_hello-isar.yaml b/kas/package/pkg_hello-isar.yaml new file mode 100644 index 00000000..391707ea --- /dev/null +++ b/kas/package/pkg_hello-isar.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + package-hello-isar: | + IMAGE_INSTALL:append = " hello-isar" diff --git a/kas/package/pkg_hello.yaml b/kas/package/pkg_hello.yaml new file mode 100644 index 00000000..9bb35486 --- /dev/null +++ b/kas/package/pkg_hello.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + package-hello: | + IMAGE_INSTALL:append = " hello" diff --git a/kas/package/pkg_isar-disable-apt-cache.yaml b/kas/package/pkg_isar-disable-apt-cache.yaml new file mode 100644 index 00000000..bca3a6e9 --- /dev/null +++ b/kas/package/pkg_isar-disable-apt-cache.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + package-isar-disable-apt-cache: | + IMAGE_INSTALL:append = " isar-disable-apt-cache" diff --git a/kas/package/pkg_isar-exclude-docs.yaml b/kas/package/pkg_isar-exclude-docs.yaml new file mode 100644 index 00000000..5eca26fa --- /dev/null +++ b/kas/package/pkg_isar-exclude-docs.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + package-isar-exclude-docs: | + IMAGE_INSTALL:append = " isar-exclude-docs" diff --git a/kas/package/pkg_kselftest.yaml b/kas/package/pkg_kselftest.yaml new file mode 100644 index 00000000..f87080aa --- /dev/null +++ b/kas/package/pkg_kselftest.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + package-kselftest: | + IMAGE_INSTALL:append = " kselftest" diff --git a/kas/package/pkg_samefile.yaml b/kas/package/pkg_samefile.yaml new file mode 100644 index 00000000..9738cf64 --- /dev/null +++ b/kas/package/pkg_samefile.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + package-samefile: | + IMAGE_INSTALL:append = " samefile" diff --git a/kas/package/pkg_sshd-regen-keys.yaml b/kas/package/pkg_sshd-regen-keys.yaml new file mode 100644 index 00000000..94fe6e47 --- /dev/null +++ b/kas/package/pkg_sshd-regen-keys.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + package-sshd-regen-keys: | + IMAGE_INSTALL:append = " sshd-regen-keys" From patchwork Fri Sep 22 09:09:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 3112 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:32 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f190.google.com (mail-lj1-f190.google.com [209.85.208.190]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 38M9AUmM032101 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:30 +0200 Received: by mail-lj1-f190.google.com with SMTP id 38308e7fff4ca-2bffb48a78csf24872101fa.0 for ; Fri, 22 Sep 2023 02:10:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695373824; cv=pass; d=google.com; s=arc-20160816; b=tqozV0DEGHlERbTcbw9fmCS4OoLnTXYHwPNkAIJZzDQ+mwWHN+QpJzJUPe/wgEr7vz 78H6TxdZwL72JZ2vuYz+SBShwg/kOCh06qpzbRQNsSRjA5026YGGjLnzp3sVv8Kla64T U9GddxlKhiHHfVdRGWoEWrP2EbEh/wV8IAB+URgexh6OZNAoEZU0ciY0EFMn+s79pKat X5GmZ/FABoGzPR3slYmhVusHg9sAIaTyTQvm2C6kYzlk0G1Bdxx+KUbKVugmBo8js8XF yO6kkj7OYDjyxp6An/LFtCQqh/D95bnNOzp17JrLpNPiZQPjrFbeomqpx+xAwJQKyRKQ rX6Q== 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:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=zKhxXDM7GTETjNZDO0ZMNbQFgRNlejjSglB1lLkQS0Q=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=nS6KtYvJ7RyMcLfrweTbNtGkqFbUadNI3w3VdkCU0DTtI9cm4dLQZZslQBeQJKgEdQ 3AR3mH0Bwa3k6yJxOwmqJ3mQVGfW5FMPjRtuzDJVfuMQyADaEy1L6iWoNtCROUZao23X 6QvoaT7pEgvUpA8RvJkbW5ZZVb1hHwTsYR9JgiciD6d3SKD9O2UBPayMr79mcgttL+K8 EHgKgB3SLXd/5OZJp+j/gpWtomJ1NA4X0sSwgRUNvw+bF096i73NNMD6LvkAcYhBqdD9 O8s3l6VAqikC47+StQJQ15urcXuvHismM6h/0EK/su8a8F9YQOTGHXyd0P8wFVTDcghs 4KJg== 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=1695373824; x=1695978624; 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:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=zKhxXDM7GTETjNZDO0ZMNbQFgRNlejjSglB1lLkQS0Q=; b=i8mz8T0UTsPlPj94+Or2jRHpBQ9cLOnThMYOmBgSym81TRNSNdN/d53CxxleERxjGR 14k4kYShNFZyj2DX4YnP6ohIolJTJLHzqgeUZbKqIc3G9NREJFPeqZ+yh6Z91f0kDNMx 9+RPDUH089BN3ZABsIXtP9Tu4tLKp1Z4UZppfmFYfh8Ex3yc6DVIYN+Fi6iUUx384CcK Rwd7xyhAG1KSn/BRTcAsVm7p3WnosfLWwp2exrk5phuEZv76rLcST5BASdRFcC9uJpK1 Te9sEGHkJuHkmjU/nKeisNpb3c5fNRGek8qUi+3OMCtWLcY72q7TDXSDDHqLkQz1SYot lwFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695373824; x=1695978624; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=zKhxXDM7GTETjNZDO0ZMNbQFgRNlejjSglB1lLkQS0Q=; b=XP0W9GWEA104Q6gskpfw21pTMW04W7UuU4XziUxjY59Eu2321CG6vsUqYj1/l5slBM LpI631xZcTOuVAvA1SZSzJ3suIVOZ/PeVKRc6iSaP3aqGvHehI26cSGjfvNYHdb13bLX A+xIyq7SJgFIzNn6GYSzrNMyfxz7zX3PFeCx5pRRz7uE9Kt2IqVkOgqbItweQ6RvfLJc e46RLwqeTnW5WhCAqsJoAIu4wMlLxNLVX6BJs7errNBhGOfnQIE+5mxlS93IMS1vs0hQ GOVpocS6D/LhT301S1Tx6fp8XWUom7FkK8e7SUecI8HNyylMqL1OB4R0KTJl48CH31au 9DpA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOJu0YxxCY5vCW7dAaBGcD4cb/dwJ6wVEtbVgT1xxSbrlmMbHXw+xCDu 1Q5sMmIrcJwc3B1Fb2zuitA= X-Google-Smtp-Source: AGHT+IHfWBBUQaDycJ25/9Gp+MQ/vCcnv1Ji9aCTH7lgK7ZpcCozxHzMql/04YHGNxa/Q/WvA+OIcw== X-Received: by 2002:a2e:9f15:0:b0:2bd:1804:29ee with SMTP id u21-20020a2e9f15000000b002bd180429eemr830812ljk.18.1695373823962; Fri, 22 Sep 2023 02:10:23 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:bba2:0:b0:2c1:261b:7353 with SMTP id y34-20020a2ebba2000000b002c1261b7353ls600670lje.0.-pod-prod-00-eu; Fri, 22 Sep 2023 02:10:21 -0700 (PDT) X-Received: by 2002:a2e:b170:0:b0:2bd:21ea:bf0a with SMTP id a16-20020a2eb170000000b002bd21eabf0amr827634ljm.2.1695373821822; Fri, 22 Sep 2023 02:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695373821; cv=none; d=google.com; s=arc-20160816; b=afO82VsZLMMieGzrou2O0KXF1DuvP1pA/vbWxWdzeLliIKhhDEGFlVnvmK+tGK//jt XYhXzlPE5aR8YHL5prqeUScNjxsJKQyXbeO86F2U+T3AQYvfe/VlA17dG2aIMvfOhq/K gVcJfWGVJZOAH2lxA91CDRjUWPYzyXh2d8ATUjer9DMeL55peaRcLl8p4B/09kR5IxOi OjdyROlQnknBRhxF3Ss4cF1X5wM/12ligLjOt4daY25q4PKikF09eXz5gUagonQPd1c+ rCTwauMPLOCay0elj+7+stCMEIHPO9D8MlUcccgMWSVTDkvBRtOuiX6u06ALNILQQeRt kUgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=2ieaJ6sA/OVrtG5d5vBva7qrDMXgldNBDAzyLRxlkc4=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=tXc82flPKF98tOwFkWMjf4oGnPGphS1NwTaw/Co+zrboUwioBNmt96pdFHLCsclLlt M1oUJodtH9OZk3IDiOwcNrGnd9Xt2dcoCJfjoytyXuebBtHfeaKbHIavTP0zNaiJJ1ky RUeKKVKbY9oO1Vf10k3tmmqiJ5+BjHRyFnLAkX1r2hHnDWkBKOozSH73L1rqzyahzVEP hBgY2z26PMcch2cpQhNG4JiwtUcK0Kuove9UEAyQWGvdburK6A0HPpxOgMab/gB42Doa cwbKQ6yfYdzTpQq1+TTcAb+jV4kP/Qtmr8PFx6f3/AfGHFvt2BLYeM8iwS2QWbxrEr8M KNyw== 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 u16-20020a2e9f10000000b002bced4ef910si295595ljk.3.2023.09.22.02.10.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Sep 2023 02:10:21 -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 38M9A3Z8031991 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:20 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 05/13] kas: Add COMPAT_ARCH support Date: Fri, 22 Sep 2023 11:09:55 +0200 Message-Id: <20230922091003.20763-6-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230922091003.20763-1-ubely@ilbers.de> References: <20230922091003.20763-1-ubely@ilbers.de> 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 adds an option to the menu that can enable or disable COMPAT_ARCH support for amd64 and arm64 architectures. Signed-off-by: Uladzimir Bely --- kas/opt/Kconfig | 9 +++++++++ kas/opt/compat-arch.yaml | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 kas/opt/compat-arch.yaml diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig index 06a9e3e5..02375399 100644 --- a/kas/opt/Kconfig +++ b/kas/opt/Kconfig @@ -40,3 +40,12 @@ config KAS_INCLUDE_MIRROR_UBUNTU depends on MIRROR_UBUNTU endmenu + + +config COMPAT_ARCH + bool "Enable compat arch support" + +config KAS_INCLUDE_COMPAT_ARCH + string + default "kas/opt/compat-arch.yaml" + depends on COMPAT_ARCH diff --git a/kas/opt/compat-arch.yaml b/kas/opt/compat-arch.yaml new file mode 100644 index 00000000..520bc705 --- /dev/null +++ b/kas/opt/compat-arch.yaml @@ -0,0 +1,10 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + compat-arch: | + ISAR_ENABLE_COMPAT_ARCH_amd64 = "1" + ISAR_ENABLE_COMPAT_ARCH_arm64 = "1" From patchwork Fri Sep 22 09:09:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 3117 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:34 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f64.google.com (mail-lf1-f64.google.com [209.85.167.64]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 38M9AX2o032164 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:33 +0200 Received: by mail-lf1-f64.google.com with SMTP id 2adb3069b0e04-50335ee6011sf2434863e87.0 for ; Fri, 22 Sep 2023 02:10:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695373825; cv=pass; d=google.com; s=arc-20160816; b=u+DVqheq86A9JvsTgSB15GhAYoRhecIZphW25bmVcjuYkc0Tui2tavZ8F3y9uzMOyk +Z5FxXg9CBXtU3XwvHbOtoSmd2xNu2tgaKpYISjaVI8RSf/l8mhYc+A5zStmuXc3Z+45 1CWN+p9deGFDnzXjMy4F/JpVRbxlKgBHOQ9jc9goqHRCRxyIJKnH8/Mn4zhZY6R5Swfk c4rZaWTTvm4stQFVJvsTapEYykeppoOJYUVcjXuzq1uiyRVGyLCBQ95Y4cLa5aI8kJZa DBOUF0zv74TnyXsiRpEjbN+Ja2bBZSrHmIXadbvu/jtXEhls5XcFZQPKJwX15U309QVs ZYpw== 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:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=MaIyKt0ILqyKC+bgJhMYxZNuZgntjGbQ09CUDhld8Bw=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=W/V0dcNXMwK8wMpH7ylpvTZR6oLVAaI2ALLTmIKjAq6DzQmrsrZKBExKP/cTEAGWsU EUR1CxXIEmCKCxmcxVehI3auS4Eoslr6uBTZHXPBy0LrZfDMhcwIJDaguQP28cyb2b9F mpjDtiDTIp6yU4hppnBrRItj5C7R4u1EAtoj0ytLdVmIUVqaOK5Ub/xl5r25tJcaKiWb X+xaNN1JmlJkgGPmXHUHEcgiFvfXjTmrn9ek2SnlIc71HuxZYltS5gUPVsQgikpZkF3d c2u0jfSPHh6vWZ1Lk1Gx2B74FuHMdaNiBErXWTr7Am6ZeGcgrcvmbXT7VvNHqKpuj2in UD/g== 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=1695373825; x=1695978625; 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:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=MaIyKt0ILqyKC+bgJhMYxZNuZgntjGbQ09CUDhld8Bw=; b=r5xuyMtN1jaQXDO1Gm0Ny+0RcyonXk+HjbvIQvBwlkSvnLDQMIBzXkIkx7snjvn5vb TIR4SABZKvgm0yuKgG8LUMxffKfi/IcIRllBus2aBwbK4zCvdQwYdt5/e97UPrmrLWjL GKq+daS6N3buL2/2FVPNmqjoIDSPmu3FAvWcINsJz6+Pt0zuDlviP/0toGujKgnIJVnk BeOHUjMxchOc3nikHAVubiS/WFqeGc6uxfryR4aEd4uOKk8me03pACDP/BMC6gkasmEN eQLq2HZpwRFFizBnocHDMisbMI5Kl4fMVavpcu+uHGbF0PTzXXNf6EsQCV3ppC1dsj4/ tWZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695373825; x=1695978625; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=MaIyKt0ILqyKC+bgJhMYxZNuZgntjGbQ09CUDhld8Bw=; b=LspBvVZegpGKZtHOXTrJyM82VWpizFQztlU7rtF7JESEWWr4DQbSIcovDV7XXXamTq cT2i1olo4lQStz+9S2IDQnuuNKn7jVL4le9KuH0KHVuQ5g5ACeJxsu3wLbXC1idLyxM9 s5OHv3xe/0ESyUdzS/G9ob8PKCEYDypIVOohKWcTAKv+Nxoa9hg7yTgl3TRFAvtVNj5+ 8ffyQ7lLZWQ1dixzwjXPWspDWTyt98sS/6/Ok/FjrmBS8HCWX+6won7oCVSB6zzgUBkZ mEiuOmEuLBExO8lbJD4EhfVdVtm+M2pN8FhjEYPs/DvWB3L6iLU2o2JXgfdumB9Yv0Hi 9JEQ== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOJu0YzFjFeXCmXnvwry6x2BWvXZOcyo5HNGsiSbTlNGjfa7qU4uGi5F ClCcCDdx6dbM4dTqNzf13jo= X-Google-Smtp-Source: AGHT+IG0C+/oSo7hsDoKJ31B6Wu7itqXSHMcqWagg/qRFpbrroUwtrN6jYi5H+OY0a8fz4Z6imCzXQ== X-Received: by 2002:a05:6512:4020:b0:4ff:80d4:e132 with SMTP id br32-20020a056512402000b004ff80d4e132mr8936299lfb.29.1695373824314; Fri, 22 Sep 2023 02:10:24 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:3b9c:b0:504:30ef:f2c7 with SMTP id g28-20020a0565123b9c00b0050430eff2c7ls141227lfv.1.-pod-prod-05-eu; Fri, 22 Sep 2023 02:10:22 -0700 (PDT) X-Received: by 2002:a05:6512:ea1:b0:500:95f7:c416 with SMTP id bi33-20020a0565120ea100b0050095f7c416mr8261572lfb.7.1695373822076; Fri, 22 Sep 2023 02:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695373822; cv=none; d=google.com; s=arc-20160816; b=vcbxgzDOqrzufRR4Ef8dsY3kWUnhiGTvsunbUJ5mtRsinlMEmG7lUcWVusel2yBRoR Wy0mB1gkuI3hrg5l7nIMsmoGjqLFlYDcNZZLuhstrW80iY3V8hSg1k+lJJhgDZx8/agt Rq6lqlFR2CExR2ucXDSncrcUThx2Dmg5hz0szYv5dylXAGZ62LLs2tp0XvnVJJs2brcP a+N2tAjRwG0Pk46jPMd6VMThFWqh0XbVoQNVGNuRUTNsgxA/Y1isTdZoqWW8Bwin2dWA v1psDnFo87Km1+zvmiyL/Bao56tddfvGz4SW9sKJVZYO3fYhoDFlFcCn0gflM0TDfgl4 lqMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=Y0f9fS+ipD2iW/k2/8R8BP/15FVGgpscYwQPelm1+e0=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=OlBNjQMnKPr954gGPgIehbAmAiSw4DqdZbfEy+cPLZnY90bce9F3215hyhyhzP+JvO 98Nr5FONL20zkMyyZ7Cy2V++AbUSzTpIgHXcvGSu9etE9GNoXtW2AL7kUPlfZD/1cbjY dS1yT/Viad4Pnsz/V8Zk9AmM/8ViixMiZ6TtdrY42ZJHK+4iX/MTTXB53xSB2fzDUiwD 7aUkIuUklriH0lLMSbONbHDljp4+v3ZHYINx3MV76ereh4NUmq8VOMJ3TQVKkg5I40km k0YDjXEyp0OLlxKhTNSWjqOWnv0fIzWZU//qCIjQCNJzbA2N8X6LZjwA230sjSzaGuRU g0Gw== 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 bi35-20020a0565120ea300b00503ce43f46asi158100lfb.11.2023.09.22.02.10.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Sep 2023 02:10:22 -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 38M9A3Z9031991 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:21 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 06/13] kas: Add cross compilation mode selection support Date: Fri, 22 Sep 2023 11:09:56 +0200 Message-Id: <20230922091003.20763-7-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230922091003.20763-1-ubely@ilbers.de> References: <20230922091003.20763-1-ubely@ilbers.de> 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 adds an option to the menu that allows to enable support of cross-compilation via ISAR_CROSS_COMPILE variable. The option is enabled by default. Signed-off-by: Uladzimir Bely --- kas/opt/Kconfig | 10 ++++++++++ kas/opt/crosscompile.yaml | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 kas/opt/crosscompile.yaml diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig index 02375399..76a00d6a 100644 --- a/kas/opt/Kconfig +++ b/kas/opt/Kconfig @@ -49,3 +49,13 @@ config KAS_INCLUDE_COMPAT_ARCH string default "kas/opt/compat-arch.yaml" depends on COMPAT_ARCH + + +config ISAR_CROSS_COMPILE + bool "Enable cross compilation mode" + default y + +config KAS_INCLUDE_ISAR_CROSS_COMPILE + string + default "kas/opt/crosscompile.yaml" + depends on ISAR_CROSS_COMPILE diff --git a/kas/opt/crosscompile.yaml b/kas/opt/crosscompile.yaml new file mode 100644 index 00000000..1b927ebd --- /dev/null +++ b/kas/opt/crosscompile.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + crosscompile: | + ISAR_CROSS_COMPILE = "1" From patchwork Fri Sep 22 09:09:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 3114 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:33 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wr1-f55.google.com (mail-wr1-f55.google.com [209.85.221.55]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 38M9AVGW032119 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:31 +0200 Received: by mail-wr1-f55.google.com with SMTP id ffacd0b85a97d-31fd48da316sf1335127f8f.3 for ; Fri, 22 Sep 2023 02:10:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695373824; cv=pass; d=google.com; s=arc-20160816; b=w7nsHkjNk5CuZq64MH6LCO7/atp0Nb/3nxAmBZXfx317DyVpHd4F4lnEGxdJL3dkj2 FgvfzgglQdB5b1Linbja1R18Dyn3aHqJnvB+OODhonEG+qfmYTFe3y7HvZULij2249wl ix0NDh+LBuz7vL+bS80rP4jCjtrlw6ULy0QGmrLqv5cqmI7M6p+OISHbKdzpaGBc9EDI RpCbcMmiSN/GNODvbAkKd9kMap4MsJw6MKi2Gm2edm2bC/peT49X5aqt6nAHdRLBdJbd +V/q58vmYlGDzOm3gjJhneH+3iILx8pwAP09JSbuwNRgH6Pd0oKuihRUbmHe5gwy1L7L 28uQ== 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:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=nsEr8l+nmv33CLrZaZD7HfLlCsre8VvHW3RsQLUxBLI=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=N72fZIAPTKO6yTD2D8b9OX4o21nWKCZd/K5+mZRXuQgdC9ZSNWdErmPGrppFYKRWMs 5Xvb9I95tPfB8i9G/I7Bneg8VuUeV3epRR535c7x4WXhWRoCjadL32NMaYq6ETfupYK4 XIQQAQoW6t/W5yr/OjOk8F5yZcsHK27c19Wszg04XapOMhZkTOp3B1laMIRdKeg6yoOW JpnBD8XfdNV2DpaE3L39+8+5SAn7Af75iq1QTB1xEoVGYqkq3xnLlMhNh5KqyLFsVSEm lYISGkfKRKKw/LjMkpeDoS6UaOdS3jzmvmt374M+l/hljHO/eeCUmyXZldeXVKY8f91J 5siw== 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=1695373824; x=1695978624; 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:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=nsEr8l+nmv33CLrZaZD7HfLlCsre8VvHW3RsQLUxBLI=; b=Th4PIX0QcKtbofy80YYNMeHCNOtSyGAcVYZ9Zwn+A9LjZ1Y1iP9tdGFbrgMX78WRQy 5hqVUy3cLUpQ8opp6HTpGFDqVb0RFFsVFp2iU7Sw1n8LlSk9P2wRwcIJ4qCJOLRTGcRb zW3eKs+ogYflAR52hoCywjs6dggWnVaKnfcEIjocdGOHSPVHXg0cwM2C16k04fynXVhG Y8g+g8iYc2w4mEvrKPEDia2YZrSKZAmNPMWt/zAbb1IdCmfFzpjMjJOrNDy40YKKOQeY k1vOFX40ajdFu+8x4gRocSwLFOfwBIpn70l44MoBe/JO77ohtFXmgsJdsq+Evvl1TQN+ hKSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695373824; x=1695978624; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=nsEr8l+nmv33CLrZaZD7HfLlCsre8VvHW3RsQLUxBLI=; b=HMR9CsatB3L8AOKaG+cV6cr4IWw2pkUTZsoDeoE9TXoMBeAHFezAMin+pvHOjJavGJ vodPRHrv5GJ5/iIDJp2rMjBVAycTqO6L7X2L2pdcL6WzC+/1R+kzdi4MeTKBBLeaeyQK Yadwk28hl3Mi/AH/+AyAg/8e3xWTKD8dYUKAMwb1mvWzBvWu11JGjsBaykC6R3ncgKeY 392PGKeWFHgl6icKaaJjsJG/orF6hruMTRDUUkeijR7HRyZDLutK0BMTltJrrp/PZMpv PdkRTdNEL92h5/2Aynn2gDTU2wIwhTbdqZVtobSNySzFNd6qNK6E8fUaHv5//mCBUPns U25A== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOJu0Yz0APYdlYdRy/qr8dwqqhRVIDThvzpHJKWToZRFh/L0VEWyB44R 0xB4c0IR7DK5ylpl3nJc6zI= X-Google-Smtp-Source: AGHT+IGme/lGJiLzIP286noiVLCg/VLfqGl/qgg1N5EQ9r0ViY+Nx+DOPtH5Oetrb/bXZ6CnnI1i6g== X-Received: by 2002:a05:600c:5103:b0:405:3a3d:6f53 with SMTP id o3-20020a05600c510300b004053a3d6f53mr2413253wms.3.1695373823913; Fri, 22 Sep 2023 02:10:23 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:502b:b0:403:419:ace4 with SMTP id n43-20020a05600c502b00b004030419ace4ls149391wmr.0.-pod-prod-09-eu; Fri, 22 Sep 2023 02:10:22 -0700 (PDT) X-Received: by 2002:a05:600c:2245:b0:402:eab3:b4e9 with SMTP id a5-20020a05600c224500b00402eab3b4e9mr7821624wmm.33.1695373822017; Fri, 22 Sep 2023 02:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695373821; cv=none; d=google.com; s=arc-20160816; b=igkbCP3qzcCXdZz+L9uAX+PLY9ZjtoItrqeGfckYXBQ0z0PJeYK91mvxH5Bn8HJlvF ZycKxfsCoaV6DAOeqYCo1eY5px/SmA8C62wZJ/hXTHtmabofGZb9Y3sFthHJNagvGyVJ E1ez0FJtAen+ce5WlDT68KZamad7M26HRlJCc3myQwocOPQ30ORmTVLwJEqwaK5neln/ GAoXuN63/eZu+gU73K/DbcuPq9PT6AaIhAmVvdSroEFqSWpemMNXfe/ML3zlpkYahnUR 83e5jyvI9wCvAhabhw93HpSlFBD/jKqmhsHJ8vs+KxEpzNYV3IMv7zBmQGGAS9dnox85 OFqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=COqDLyeWtHp3bGkwiSsX8QhRiW2wUOiCg/HeDNMvTxI=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=iGrlu9Vl8KwUJTs4En51IkGiCXd4nYSCqZV+ccxMv4DAqA4ix6l1WSh8EA3JItYGSy PVOYUCge9809L6MiZeIiMVD85qopife/5ZmFndVRfnefG5GJz6YkSO70v6tOJufi+QCd voo1+rDv8H+5eChlocx+od0LjJgKlz90khsUvNf6EdHMAw46jcfvCH9wXkTOpZZX3Z8w NJj6LL2eyNhuNkvN4Q9tPng5tYAmglTCfi43ysfsUVccYHGQ4lAU/BDdMweuy98kHa9/ kCwMUX2YFDWvOyRJY/M06piF3e1Mcaha5d95SWOlpjzNAwZnU/bAk6UH3VoGcIRj4WXd QlOw== 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 f8-20020a05600c4e8800b004045b3248b8si475417wmq.0.2023.09.22.02.10.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Sep 2023 02:10:21 -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 38M9A3ZA031991 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:21 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 07/13] kas: Add ccache option Date: Fri, 22 Sep 2023 11:09:57 +0200 Message-Id: <20230922091003.20763-8-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230922091003.20763-1-ubely@ilbers.de> References: <20230922091003.20763-1-ubely@ilbers.de> 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 adds an option to the menu that allows to enable or disable ccache support for the build. The option is enabled by default. Signed-off-by: Uladzimir Bely ccache --- kas/opt/Kconfig | 10 ++++++++++ kas/opt/ccache.yaml | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 kas/opt/ccache.yaml diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig index 76a00d6a..0bf6dfe8 100644 --- a/kas/opt/Kconfig +++ b/kas/opt/Kconfig @@ -59,3 +59,13 @@ config KAS_INCLUDE_ISAR_CROSS_COMPILE string default "kas/opt/crosscompile.yaml" depends on ISAR_CROSS_COMPILE + + +config USE_CCACHE + bool "Use ccache during build" + default y + +config KAS_INCLUDE_USE_CCACHE + string + default "kas/opt/ccache.yaml" + depends on USE_CCACHE diff --git a/kas/opt/ccache.yaml b/kas/opt/ccache.yaml new file mode 100644 index 00000000..143c080e --- /dev/null +++ b/kas/opt/ccache.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + ccache: | + USE_CCACHE = "1" From patchwork Fri Sep 22 09:09:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 3120 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:23:48 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f60.google.com (mail-wm1-f60.google.com [209.85.128.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 38M9NmhX000441 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:23:48 +0200 Received: by mail-wm1-f60.google.com with SMTP id 5b1f17b1804b1-404fa5c1d99sf14798215e9.3 for ; Fri, 22 Sep 2023 02:23:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695374623; cv=pass; d=google.com; s=arc-20160816; b=m8yeR83qz8rOINWzjd4Hrx99VOwBejTdnHBZeK2EpMUom+3bqwQdLw+EH8fJNq99eR s9tFB2S77xQ2DXD5Ly3pG9e0YhItdesPKS+WPJkYT8yrsQNXIsuzygfTcg2n1zDj2WZh pt/JbzQ0uocrfE8lkidkuJbHFWheBt7J4/bFP8NvdawV3jD/OWgsRPMZbQ00sZ8/jLBM oRStmlTp6EFrWJoWe3Fh2zwu2LAlrzJ6pnBEBRSmhi3/VHY64PHSnhGFtatfHymsmP3d 26NX5i4fN1CWdwYf9B9/AnfATzHn0xcJnzc0RcRa+fhzYSt4a3KGm+44vd2yh7fS4VuW sU0Q== 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:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=E6f8HiBKsZ9I8jBhQvUQZV4asdRkPENWpSKB+fXooLA=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=ha4hOQHR4RoLLctgb1rdaKOMQ0REcnUbvol6UUM9OZWRG+dkzsYVQdH5MfNyB3+sm1 DA+3b+5LUZSDFFe5JmXiTJIPa+XZWOFaZpUpJ/3oMCIh0iv7y78BQTZQOlKZdz0+viR4 /QQsjRxPmg5RIWu44X99yJMmo91qMNwYOar0Zcam1rMyvkjsM5L9dBWZdpXtfkVGi/JG eAN792evBs3t26xXKTjxLUBhEJbgtqiyFHCiXvLwo7kfInGGdMdFdQAMavRmwQ6HlGsh h1X1l3ri1hIavcStNdEce1gvZT9R2+wMro35VNgZkFgUW+z+DvehrUH7BC3yY+0AKXwW QXyQ== 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=1695374623; x=1695979423; 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:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=E6f8HiBKsZ9I8jBhQvUQZV4asdRkPENWpSKB+fXooLA=; b=OSZCFYyZNKXySit20xjhlC8hE0pQrr5uRTBqZMtljfhj995z6vWLpiTSm1rzZsWm9q 5m7VxP5xbTLMqW/umVC/HaWrOMDD9fSVLy6ciMDu2OlTKFQI4srFbxDlwUv7HQV1XOJl G6B1T+25DLHgCuhB/zvBslUhuidgbaQJXsgdjuhcc5SAJC9E6pyfHPF8sDl5iB/OqZAa WwkOSMZbt4/thGj3eUnUY6xxxqWST1V0SVW42tTYYyyWJVyNPFDrpFyqxVR1K+o/zJ1q DyXv3KFus+kUxjhiCX8C7dBLoqsWzdUaU/e32CTRPtw0mYYaDQYQ944fbt7IIjGkREfU FaWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695374623; x=1695979423; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=E6f8HiBKsZ9I8jBhQvUQZV4asdRkPENWpSKB+fXooLA=; b=MMwEfYIv538ZswOeHth6cHQmz9HPx5UPz9lkRcsgcGGXA/KHYNOs3bqJHBjdeMYX6A 5yYpT7YcbpHSi34VW1DX9VUSIWkyYwDqEXbtfd/Z4pUuzDbdXU6tz171LgUS/1MORpZo dQn6wXqDWrG9piKtR36n7JH8Q2vN4kTcPieI8zRGK/X06kGGLCQekh3219i3+zu2k9nV zXjsiK/g3A/AGrUFkL7sOe4Ph8JLnXY7YWhsNFq0KGqbQvwTazK5YwiLOf3RwN95ReF/ dKMQN9ch0xQWEaB2P+SKzBWsr4HgN1psTJWD8OCyhHahseukVNemYkJQKjzCQo7vmU1q iogw== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOJu0Yz6IRvMLJtDuOoa/9axAMYeZk+NH2mht+rl6eqAOsNFMf4zua5s 4n5EDuqOgdSPBDNa9cbw1G4= X-Google-Smtp-Source: AGHT+IEUtiDvkRctZdnRHY8ltbSBtPUkrwaSfVmnFBGOoWG8HRCx3nkItLPEFwAYzYNRIJEdfPGkOw== X-Received: by 2002:a05:6402:cae:b0:532:ec54:bfff with SMTP id cn14-20020a0564020cae00b00532ec54bfffmr7264007edb.16.1695373824114; Fri, 22 Sep 2023 02:10:24 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6402:298:b0:528:8932:bc6 with SMTP id l24-20020a056402029800b0052889320bc6ls224096edv.0.-pod-prod-01-eu; Fri, 22 Sep 2023 02:10:22 -0700 (PDT) X-Received: by 2002:aa7:d84d:0:b0:52a:38c3:1b49 with SMTP id f13-20020aa7d84d000000b0052a38c31b49mr5819797eds.40.1695373822327; Fri, 22 Sep 2023 02:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695373822; cv=none; d=google.com; s=arc-20160816; b=AB32qdH8fXv699a7xxVLmStQqQXv/z6naRr+y48WBoDrGSlCHaA3xqW5sgIpMOKAdm 9R1TiY6EVS1Ai4zwJx2OB8GGUXWzGjVQTgHFWEePxT1eJaesF0aoG9Bz1wvMNfzQjr6K I0QPBrqVoz8Gn3TGDEKH02LbyWJpVypPVgFJ1fqJJX0D56yMybl2ho+4HLp3ROml5YwM HSuDKO473C1wLcRZy8lY/lJdytzmZlt01phIbnhFQGKjBD4AvDvrzSwwLzIMqfzHTy0Z HYbtPaA9OjvGmiyCAqRZo76QQlqLZnFXw+CjWbrJs9fSqLAky1xUKjmFQxYGvm7xxzLc kLaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=2BEwz/BAoGHC3xcZC6GS7nfv3t7Ej7e5pPodxO8Iw54=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=Tf43JYVU6Yx7ShlIT2GE3dKrIWYp7RIgNGmcv8WWmAhbzsX96XKGt3JQszkaHCwUKS yxi2/KbPRGVr0dzEK5Q60N4hLsvCaJmpN2jBQStTG7ivBOlG7bpuzj7GlFNvNshEd+Gi h2Ddl2PuzFwVq8eWOfhm1VEsRruHSiD1zb1p2sFuTzS5BEhrJYOYmc6zb9XyYLYgiH4O QgGfkUKgSJM3VQhfAjcNiQ5NoJ1tlRM/s1i3Y1l9QLp4iiobX/Z5LsqIbmpC4BZHfBbW uvqRfmV4HaJPJQbI835EmL2LZo2Fn+9cn9nnMF0dTPWoYrKYolQaYDmYUP1yDOcHOtT1 iNVQ== 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 i42-20020a0564020f2a00b0052c239f87a5si335386eda.3.2023.09.22.02.10.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Sep 2023 02:10:22 -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 38M9A3ZB031991 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:21 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 08/13] kas: Add image type selection Date: Fri, 22 Sep 2023 11:09:58 +0200 Message-Id: <20230922091003.20763-9-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230922091003.20763-1-ubely@ilbers.de> References: <20230922091003.20763-1-ubely@ilbers.de> 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 allows to choose between base and debug Isar image. Signed-off-by: Uladzimir Bely --- Kconfig | 1 + kas/image/Kconfig | 32 ++++++++++++++++++++++++++++++++ kas/image/isar-image-base.yaml | 7 +++++++ kas/image/isar-image-debug.yaml | 7 +++++++ kas/isar.yaml | 3 --- 5 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 kas/image/Kconfig create mode 100644 kas/image/isar-image-base.yaml create mode 100644 kas/image/isar-image-debug.yaml diff --git a/Kconfig b/Kconfig index 5a3050a4..538c0a1b 100644 --- a/Kconfig +++ b/Kconfig @@ -16,5 +16,6 @@ config KAS_BUILD_SYSTEM source "kas/distro/Kconfig" source "kas/machine/Kconfig" +source "kas/image/Kconfig" source "kas/package/Kconfig" source "kas/opt/Kconfig" diff --git a/kas/image/Kconfig b/kas/image/Kconfig new file mode 100644 index 00000000..8e617386 --- /dev/null +++ b/kas/image/Kconfig @@ -0,0 +1,32 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH +# +# Authors: +# Uladzimir Bely + +menu "Image type selection" + +choice + prompt "Image type selection" + default IMAGE_BASE + +config IMAGE_BASE + bool "Base image" + help + This is the basic Isar image with bare minimum of preinstalled packages. + It's technically close do the debootstrapped system with packages + required to boot up the system. + +config IMAGE_DEBUG + bool "Debug image" + help + This image includes some tools preinstalled useful for debug. + +endchoice + +config KAS_INCLUDE_IMAGE + string + default "kas/image/isar-image-base.yaml" if IMAGE_BASE + default "kas/image/isar-image-debug.yaml" if IMAGE_DEBUG + +endmenu diff --git a/kas/image/isar-image-base.yaml b/kas/image/isar-image-base.yaml new file mode 100644 index 00000000..0666510f --- /dev/null +++ b/kas/image/isar-image-base.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +target: isar-image-base diff --git a/kas/image/isar-image-debug.yaml b/kas/image/isar-image-debug.yaml new file mode 100644 index 00000000..94c5a334 --- /dev/null +++ b/kas/image/isar-image-debug.yaml @@ -0,0 +1,7 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +target: isar-image-debug diff --git a/kas/isar.yaml b/kas/isar.yaml index c8dec31c..df26b780 100644 --- a/kas/isar.yaml +++ b/kas/isar.yaml @@ -6,9 +6,6 @@ header: build_system: isar -target: -- isar-image-base - repos: isar: layers: From patchwork Fri Sep 22 09:09:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 3115 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:33 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f56.google.com (mail-ed1-f56.google.com [209.85.208.56]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 38M9AWhE032154 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:33 +0200 Received: by mail-ed1-f56.google.com with SMTP id 4fb4d7f45d1cf-5311e3d0df5sf1450338a12.0 for ; Fri, 22 Sep 2023 02:10:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695373824; cv=pass; d=google.com; s=arc-20160816; b=rMTZwaLlERg509HMMvWxFYbtyeDuIUP9Sws4yvKpQvy51FmDxvYu9AOHQiYv4DFbWQ nqiFyWwXWPTxoJYXWRp6CffDCbUcHuNeayCpf9QN6emAZ+UEsnp12ZxiXDICeOIe391y eAfZGjFBFivhGFPq1UNNOYoExyoeQ0DTK15nRLF7x1AF7kaI8BytR1ujwxxHxHtbIJay P+NaDNRz9aWqjuTF8S8+tbae03jZbL5VnYhigF3VejsYnUN2Ah7tjFkW3RrrriZMDEA0 CNCB2wqmukaHQ4XJ1YPDHuPgvCFzmiHx9yqT3wkGq0vtotavp+3c4AF2b5PzZpP7Vvpm lbKA== 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:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=fTd1PpQdB0TA9KG8Sk8WyDxzqqOiSpiSQmKrWhBBUuw=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=P2gJTCU3TM7AjuY7hIEM18H64knMP932enINRkYgKGnG57mEKQchALrjSJqU2roXIg X9U1hPFQEvI+ctk6b8sPxuKX0uH1fQ+gIJiEEkuN+4zRaoUnHR8QLbHnbstg4WSGlfd/ EN1ZD/84tVUhnuuo8FH2lFXmHl0CCwYreD0nlWZLPlv2a1v9SHxyLTg4PaLig2cXUwlM m9uz2xtgV1UtwqgssZCy64j84iXtaW37fljByIJhOHcnJyaLOQEPot5ezcVuAL4k5Wxy Kfq05Mlh6fRKYeRu26NMd4cTOwVJfG4tJOSNJUj7oSDmOePPQFr4suPn5aL9ykr61Z+2 /Z5g== 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=1695373824; x=1695978624; 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:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=fTd1PpQdB0TA9KG8Sk8WyDxzqqOiSpiSQmKrWhBBUuw=; b=DpBRj0zE30enEVkSK7ndzwGPtdUID12T+Gtp9uSrMbXVzURMryCz13inQMMRcd1UY9 XGA3FDUI5o6r6mO43T753iYspr68M8kq7AfCLjIHdIommpEReMqqVjbzASt0um2YiB7A 2exBHPgsIfeRGIB0pHrxolYJgoIAw6+N50977Ll1ynTVD47mCqggtoIZOIGkHlTveNWv 5Jxz9otnnVE28yg1OmjqlRp/gyoBMhzw6ZXPlMkGcUgwIgvdidKYqU4mwsRdxt+iHGq1 uwIyoIpKkeKY95Qu6o/wqVfALWqJNx2H7WA1kn1qT3mJYZN35VkwEgmCgghj5VnVQ6Fx Y8PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695373824; x=1695978624; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=fTd1PpQdB0TA9KG8Sk8WyDxzqqOiSpiSQmKrWhBBUuw=; b=NGJrwhqvzJIL46L3l6+p3swXLKVwSAlD5E7Ko1/g3O13rzn6DFl3TfuEW709E9w7YJ jbPCkmMOzh3udpwaesRkQeh+lk/pKv9fQWDyFlFIEjFdxWcTIQ7hNqHWACKitMgVQ8F3 TW+E/fmQfWkuvNaZqU/nncAJdhTRFwxrhJN7CNDHqxkHCMfkYFcqCLgREy4JqpLyNqHN +mAGJYPPbYvtHN1Y41/jr/9L6yUR9Jvd/R0jmeGnpM9alv6yY14nYCfu27xkhR+no04l dxqJK4/KK2+RQAkL44dd/uUbwBDiddXQ1iCiVLMlT5v+pFzDkUnWYyseSJxfOrr0eOlC KORA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOJu0YxQ5+jOOiDCYDBsLgMjSdZ2nemsxO5SmOMKZjo2mDy+AFFDdmZe SjZiB4RngjVZw5R3XmYeEGE= X-Google-Smtp-Source: AGHT+IFzx0OEyurebrz6eYDYN466zmWEcrNxiy/sJS1D1NFnn3mhvKRNYUUOw+n1tHQsn7NLe5qmfQ== X-Received: by 2002:a05:6402:714:b0:525:73dd:4f71 with SMTP id w20-20020a056402071400b0052573dd4f71mr6911000edx.14.1695373824509; Fri, 22 Sep 2023 02:10:24 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aa7:c481:0:b0:525:5162:2bbc with SMTP id m1-20020aa7c481000000b0052551622bbcls200560edq.1.-pod-prod-08-eu; Fri, 22 Sep 2023 02:10:22 -0700 (PDT) X-Received: by 2002:aa7:d0d2:0:b0:51e:309:2e11 with SMTP id u18-20020aa7d0d2000000b0051e03092e11mr7392656edo.36.1695373822595; Fri, 22 Sep 2023 02:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695373822; cv=none; d=google.com; s=arc-20160816; b=gobsKaloTa0jZoM81aKHXMJe9cQwx7bGmg+idJK/bhvStSFKErEBtvKBc2kQPfTfLu RpmHghh369MCPH198i0DEU4Hz81JEvHXaA6z5pCDYNlZaCzJgvGK6kWOhpIWYAl+o6FQ 45YiqDNNSa3EayPI0SRngTV7XZkMymPsG0jh8+eX1+EkT3l8FjcL5MWIjuulQLVPHVAm 37hSvPbJCdY4iZXH3DTpX/x1MxtjM6jw4TkuNptdAUabMbg0ybAYQl8Azter/kRwiV7T bDIIlWJDKCRNnNva6Z/+5s0uKdd05NMzjOp4dQjAUPDW7xbqbZhftHPRVe3FuQzTGFWP 9Hiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=+1sNxUuzcS+HgW80ep5obUXTE1un+V61py2uBnPxA9Q=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=HkX3vQf2g8C+zTjJ6aeNMcOG8qlXhAw5HGrcKbXcuxyXNEL36TuMrcZYzNNuUkqArc W/PxIsnETGnbv8ZY1RSGpvWdsAk7f7GhP7gROD75oLv4C1VpjO7eY0zfeL0GF4ObZNJT WgwSAlvxpsUTggt6RY3M9/b9Q+PJEpgN2RIzqYWxdh4ioc2IUPwJkmP1KeQnvipTWIjr QRe5fTPOExiBaSXPHZloJ047UPbanxVbi8AOv/faJEUZyepYk4TvhpTQGnNvjgg5Xr6X zkXxT4pzX3x5wzfQu7DC0DRv8QBZRAWdB60oGhu7UDRBZvNBCFBQZNAAWSeu1G7WViIX kWOQ== 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 g19-20020a056402321300b0051fe05f750asi303201eda.2.2023.09.22.02.10.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Sep 2023 02:10:22 -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 38M9A3ZC031991 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:22 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 09/13] kas: Add IMAGE_FSTYPES selection Date: Fri, 22 Sep 2023 11:09:59 +0200 Message-Id: <20230922091003.20763-10-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230922091003.20763-1-ubely@ilbers.de> References: <20230922091003.20763-1-ubely@ilbers.de> 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 makes possible to adjust IMAGE_FSTYPES variable. Signed-off-by: Uladzimir Bely --- kas/opt/Kconfig | 24 ++++++++++++++++++++++++ kas/opt/image-fstypes.yaml | 9 +++++++++ 2 files changed, 33 insertions(+) create mode 100644 kas/opt/image-fstypes.yaml diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig index 0bf6dfe8..29415cfc 100644 --- a/kas/opt/Kconfig +++ b/kas/opt/Kconfig @@ -42,6 +42,30 @@ config KAS_INCLUDE_MIRROR_UBUNTU endmenu +config KAS_IMAGE_FSTYPES + string "Additional image fstypes" + default "" + help + Space-separated list of additional image fstypes to generate. Default + machine configurations set up IMAGE_FSTYPES variable, but it's possible + to select additonal ones to generate. + The following IMAGE_FSTYPES are supported: + cpio + fit + docker-archive + ext4 + ova + tar + ubi + ubifs + wic + They can be followed by suffixes like ".gz" for compressing the image + +config KAS_INCLUDE_IMAGE_FSTYPES + string + default "kas/opt/image-fstypes.yaml" + + config COMPAT_ARCH bool "Enable compat arch support" diff --git a/kas/opt/image-fstypes.yaml b/kas/opt/image-fstypes.yaml new file mode 100644 index 00000000..f0658cbf --- /dev/null +++ b/kas/opt/image-fstypes.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + image-fstypes: | + IMAGE_FSTYPES:append = " ${KAS_IMAGE_FSTYPES}" From patchwork Fri Sep 22 09:10:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 3116 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:34 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f58.google.com (mail-ed1-f58.google.com [209.85.208.58]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 38M9AXLK032176 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:33 +0200 Received: by mail-ed1-f58.google.com with SMTP id 4fb4d7f45d1cf-530761547fasf1420493a12.3 for ; Fri, 22 Sep 2023 02:10:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695373825; cv=pass; d=google.com; s=arc-20160816; b=FDBSPqVBf07IapGBpOr6vsIhshTidA1BTHaQvh9WsSaLR4YsgezCBL/+RpGWb6gL/Q P4geK3HIBF/qagb/s8vfIQoc4cmws4wvN3I7kkqBeuOp4ouByxB7wtpuRNL5kMGMF2TG pt0R5vKbXojatgcNFeawMzZjoVS7wDDZnfZs7EmWomY8QKKOCoypIBDe1X1kx6r6FnnU /T2cvo34/i0JNJN+DIUWiyyQk70tQCgJoRUsE9uU/fQebWHx3htCd7Et6wuY/ClmBUXx 6UKXQnpUk58PJJmINyf+me3GsV42SVPwfmwf/Hop8FftqzLz4hwpdIPyK2zE4CS3fEhV 2guw== 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:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=UdDzSzvMBxSazepHzSaqow+XcYsXgJPul0TEUebAai4=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=eKrYJU5gORJj555q+jmqGcK8ilSNGvIRYc8wmn6TfrIdsMDlYQANq0o74cV85FKDK+ uZzNEMTf4bZUa5/CfRlA8DXh2fDXbvVs3Ep+7zjxqx4qSGAdmKE00ekezTz7lnWSi7D6 KOLoaD4EANmojHQ4mxSn1cCbqcj+DZEamSoLN2w1UEkzoBxPKHTKL5glLcEAZ+lbhWKv 1jMkO+6ylwKbijbNDK20JJxJVqeoZcKtnf6poxFfKxPEivAhaj7Wf4O9Ud4A/J8c6Hur APq2QvJVA5HgCEtY899SL6ybBztEWFHqpLaXlDs1QNDRX+78hGsmwSj33WBevQKeVW+R h/sQ== 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=1695373825; x=1695978625; 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:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=UdDzSzvMBxSazepHzSaqow+XcYsXgJPul0TEUebAai4=; b=baGdO9Iz6B7XVlPPvgKW9p5lEU3WTTLYPjl1ILmZcl30uPXjUdDzoUHjqB06r1Ro1N vPrjRniL+LcHeP56AsILHoEaOf8qUGuQhLYxI9o7pK4LmHI8L7AJNHypK9whaAuNWNCz 8bu/0Z3LG41ZFcixOpcG23foiZyiWWvwYll+1sXOXtCR6qkBW0yY7WCL1e56bi24jy8g JbLwXepV/T76MkwoGLN58diw6dFspJiiFW95MfY2tdyN8GeCdGJzNv23wjKALs/0UEZI nt78ujFUjozYZln28fCAsUNx6BUzKb3QKaLd2QG5bnnBe0xEAh8vcFFM80DGoxiEzL59 5yeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695373825; x=1695978625; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=UdDzSzvMBxSazepHzSaqow+XcYsXgJPul0TEUebAai4=; b=aila097l5oGqinIjZSCK92fGP5fgx5XPJBNhvKkvRICXuLK24nq+9U+wce5DT7l35Y zu8ngDWjb2h1FFW4gdLAavkKvETvN1zDK3Xh277TRhhbWQXHv1RIHA6TIRvj/8YC0j3h 2+MZD9N3mVTgVFNI5lxFsyIeS5Qr46+1TOb28W3cUnVDTDVmQsdrIiOJwR9YK8PY+cDC gmd/YQbdzNRV7tG2XSIqwqhiUoxT9wrkfySbQ7zM3OskNo1vrwcgs9vM2lfaavylanw3 3tM1qsNrPYc4dLoeTloGAes0LU2cztmGxEGTZlK9oQw1bp03UThUGSudV9inQfhM3rQI J1xw== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOJu0Yw7nWKVpCEceREz/a3eHr/xQ7NqmREqmKOPNBMqnaAPzH6X7AJc tOraUBZckhZ7BrMZkcKY7wQ= X-Google-Smtp-Source: AGHT+IEff1UwijhfJqBEhLnr95izTiI7pzWFKkSLM8UptnpYNXFSQT2t+ioM+h8bPthsf6W/K0Af2A== X-Received: by 2002:aa7:d68d:0:b0:523:4a4e:3b57 with SMTP id d13-20020aa7d68d000000b005234a4e3b57mr7110706edr.13.1695373824715; Fri, 22 Sep 2023 02:10:24 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aa7:c481:0:b0:525:5162:2bbc with SMTP id m1-20020aa7c481000000b0052551622bbcls200567edq.1.-pod-prod-08-eu; Fri, 22 Sep 2023 02:10:23 -0700 (PDT) X-Received: by 2002:a17:907:3e15:b0:9ad:e403:239f with SMTP id hp21-20020a1709073e1500b009ade403239fmr8759640ejc.16.1695373822928; Fri, 22 Sep 2023 02:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695373822; cv=none; d=google.com; s=arc-20160816; b=dEX2xVP3uoP5wGYirHGY9KPzzmujp6LNBlgUi5EktPtTHEg0S/+NTKvVrSl9t+H432 w5ddB0o9JiQJK60MJ8qHCfLhqij2HfgsIfj9CDj3blAlxHa2+y+I6azKOfhdWj+0+5dP ZEtR2f45wU84DwKZImgZTjSErLaLqLocY1ybZWyf8W+rbQN/9EUsaiti8uQa6FuUtHTN O5MdJV1QRP79W+2SkWJpxgUyt16NL82+Jg1sVMG9/2v1S5rjruFZZCEi7AV4+GlvwzQt Rh5He8cuCpcTjWd6jgSSU7FU26DUDyJT+gvsWP7dqrn+7OY6WOGcrP0I4oKYVpUTVRpf lEgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=Xo0U+kcKZddWkbJqmmha/9aKw0rIAPMcF5RmCepYzmM=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=rMepaXNJMTlp2NOCieZC5T1bzjP9zaXx+O088CcbL6WGFbtgiCwikx/rLq+M12wK4V IEyjo1RRxLpVke+i+cpieQtDqsyOrsRhFY3FxntadyLZhMaDxGs7QTsLCwsA7F2sD/+n qtaXI83H0RbwN0YvkIYclFVIxIihHx5RP0I1xPHUDotBMNcG7LCCR63dcAdawqlIhteu UnmtbaYK8mwe0BdRoOREzpG3fMlGxvYRcw3En/8w7j1viIUHfgcVDTGTRo8XcV2K4XoP nCDmi5W+aakV+YMyacBG5SwSXloc2y6qJ2N+n5m7tZ2fOpdb9lv+K9HU+a2SAhj8t2cv ro4Q== 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 jz8-20020a17090775e800b009ae3e884341si317078ejc.0.2023.09.22.02.10.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Sep 2023 02:10:22 -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 38M9A3ZD031991 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:22 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 10/13] kas: Support CACHE_DEB_SRC option in menu Date: Fri, 22 Sep 2023 11:10:00 +0200 Message-Id: <20230922091003.20763-11-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230922091003.20763-1-ubely@ilbers.de> References: <20230922091003.20763-1-ubely@ilbers.de> 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 allows user to select this option in the menu. Signed-off-by: Uladzimir Bely --- kas/opt/Kconfig | 12 ++++++++++++ kas/opt/cache-deb-src.yaml | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 kas/opt/cache-deb-src.yaml diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig index 29415cfc..328ac5e6 100644 --- a/kas/opt/Kconfig +++ b/kas/opt/Kconfig @@ -93,3 +93,15 @@ config KAS_INCLUDE_USE_CCACHE string default "kas/opt/ccache.yaml" depends on USE_CCACHE + + +config CACHE_DEB_SRC + bool "Cache all source packages" + help + This feature allows to download srcpackages for any binary package that + took part in the build (including ones downloaded from distro mirrors). + +config KAS_INCLUDE_CACHE_DEB_SRC + string + default "kas/opt/cache-deb-src.yaml" + depends on CACHE_DEB_SRC diff --git a/kas/opt/cache-deb-src.yaml b/kas/opt/cache-deb-src.yaml new file mode 100644 index 00000000..6a170cd9 --- /dev/null +++ b/kas/opt/cache-deb-src.yaml @@ -0,0 +1,9 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + cache-deb-src: | + BASE_REPO_FEATURES:append = " cache-deb-src" From patchwork Fri Sep 22 09:10:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 3113 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:32 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f60.google.com (mail-lf1-f60.google.com [209.85.167.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 38M9AU0f032104 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:31 +0200 Received: by mail-lf1-f60.google.com with SMTP id 2adb3069b0e04-502b134fd49sf531957e87.0 for ; Fri, 22 Sep 2023 02:10:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695373825; cv=pass; d=google.com; s=arc-20160816; b=WIr188w6m1Cx1xAE0TI0/7mwb49azgwuMZTa6FLNsmZnT4EBOdjj9h7jY0gFyQOHuV aIpX5drKr+qVxm6xLGPvoXvv5aZBb6bizZlOMZizM7Jb/nIrFEkTVKU1MemODfC393wa nZZ/xP21ZhApJsWXFLdpNh5WATeOah5OLAdRI2Nk2LjYiHj687bIZkwUjpoLYga0cITi 6Ye9ajNQXiy+kxtmYyNiemN7F/VvmwnEdGht9u9/GNIYE2yeTm9c1oxincp9tOyVml8+ qGaBNU1yX/cTJKl3JJbbBChOtnxTFh+GMxt2RA2XUPzwANN5d/bzc/E5qMP/ci+YA9FE p0wQ== 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:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=NF4I+qZHzU+bR19L40PaTx8cKp/aS1xVZ5ZdEB6wZvo=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=T9Jjpd2XLmfR4z5LBrg9madKozS2kb9vh+JOpnUmptfh8p1VDovdLZTUlWEy4jHUCK iUChDv1IA6HQnyPbNgKJxMbO0BJ6dW1mpCk7XWfeqjUyXpjuDArXY+X4V/AaQP2YN4UJ B/yrKOCOHGPny2DguwtI/7XhThUQDNVbwGYFhbrCT44Ahf4NbmWKg2EG4feHz/A2z1Ye 1IMOfXIbVqcst/EYT2UanFTlAw3v5vd+Mh+0nrlUe5r9vxyEFtFAHc7qJbtcWHw4GkKM UC/M51Yw/vZvSV4ApkVNwjLtpDLbt9a/2XXB6hp7BxE3gcC9gceqyz9VrYtSOqU2/Byw p/Gg== 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=1695373825; x=1695978625; 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:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=NF4I+qZHzU+bR19L40PaTx8cKp/aS1xVZ5ZdEB6wZvo=; b=hb667bsg3p3dNPf6jQPPj6sjeZldYET7VNn7yQlz9GQSYEwSGL4bwREZ257DzojGFr 4l19W589cbwB5dhuP4RybpRORQ8vizjGhDaVsw4I9m3b2NRGDXibO5uWfFdj6aQ0l3r/ qkkwBD1bPA/zU7dMgGOlh1Zd67Zmi9JK5cDMCGSFxogujbLKKfbMRJ8r3bNyRn76+qo9 sBU9H2ywUtreFgQEtQghPQcQjds/aCxh6DorVYY/cVZBsLROnkQnRNetxf9WNXC+h4NP VJs1ujmo2ELZCed6N1i5gIGpYDa6M50ilsriBw5wApVuQDBYR+MOSBgvUAHKIaUAx9uT y2Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695373825; x=1695978625; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=NF4I+qZHzU+bR19L40PaTx8cKp/aS1xVZ5ZdEB6wZvo=; b=aZaXpPWi4aoUfNoatxemQWYHHr9xRg4M/Tzu1Mm/n7+ddUNJ9WLeAinahJJIwVqlKw BiOfxvrXp0ndUWHPznh6SK1M4suM2m4M9Dsrlm9eWmRCdAJY+RtR1esTM5zcszd2wznB RKKt3uFNoYGyLlUEgg5x1FKkXdHgdPj1W4r+yLuqtrVK8w+UZ6ETGvJ9LER8Q634tAq9 u/ZXX2o9DQJej7+HvIAVjgU3MITD5j/prPz9Nu6NW2NzCQb21GK/BjwpyzilY69PA34l 1qyE3NiniU6ma321wZfuGp+d7jOZA8HoMdehzvb8hnK3OzWs6TrcYiInBWLCJy10/4zO V5bA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOJu0Yw2fY95jBWFr4SBLXW6GIbKtiWwSc+ji5Nqi2/cnOELvIQcBFx+ 8vYJZxfrk+wYnJqfCSr1zbg= X-Google-Smtp-Source: AGHT+IH66uwXIfc5gXjhcOoDeF8bM9ZR7cWrXD3fZd5xaDftjciCGo8eGo8w2MKTuK0hICvkHP4b9g== X-Received: by 2002:ac2:52b6:0:b0:502:d90a:b265 with SMTP id r22-20020ac252b6000000b00502d90ab265mr5920285lfm.1.1695373825255; Fri, 22 Sep 2023 02:10:25 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aa7:d3c1:0:b0:532:c9b6:5c15 with SMTP id o1-20020aa7d3c1000000b00532c9b65c15ls837569edr.1.-pod-prod-07-eu; Fri, 22 Sep 2023 02:10:23 -0700 (PDT) X-Received: by 2002:a17:906:1da:b0:9ae:4eb9:e09b with SMTP id 26-20020a17090601da00b009ae4eb9e09bmr6643882ejj.27.1695373823254; Fri, 22 Sep 2023 02:10:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695373823; cv=none; d=google.com; s=arc-20160816; b=kH92isZWfn6IPCqKFp6xeFpA7JEAT0/YS5KiRzuSErwh/H/5GIbKf6LqhePa48x6zd 2pUXhXHn+UHBfJZfeypcCr+jhQa/eE7zqMPjPtHoeBdkKnxiCzNbMSinvV5jwCDrpbM0 ZZ6F07Rmjqkf+5XnW4tmByCCBCVgT/GQHeXYVDzodNK4GLzdB9/Lc3P3Z/1+7P9b0QWK S76qQOkWJO8pVgQRzwJz6SiIJ9Y2LEB7kvKxJF121cw8LShCYzpuX+nZC8lFaUKLG0mZ XsIbp7IiL3LBWMHXDNyrRo1UwsvckMezf1gaYzhhM3bqDu45EkJYvEX4ORK7ztP9xAni /vTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=Of34GLEisqVs1Gf7Oj9I31/KGjYNFq6H/6KSRFxcUJo=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=GpK0cnBP8g7RD4YmJvLpQd1Ubuw5lS9aS3LSmZ0wA1WVj31qlOOhMeCzaBUy2pdPto NgOcwsr8Kv5JhxO9oREZSAF+0jTN+LFrBf2Rh/y3K8qA6GfXWISx8TdZ8P4VDPuFU99L LyGC5FXA1rIGzOmo6tDPQYb1EW9GW7Wc7/uYt0DT2TkmEYw9Wbf0QQHgoisV+zG7DXRD sFnjdlGERgTyjH9MlJEHrj9E2EJBJ1DvUCmJOeB4Z09FGN8lOAHd6UiyLzptTeyLCN3F jfM8FeuXPEBdSYLLPfmQJCPE/ozR/ogygTwbD9ZbIVtvxYtrHO9VHtkzpgJpFmboZGd9 GMcw== 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 jz8-20020a17090775e800b009ae3e884341si317081ejc.0.2023.09.22.02.10.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Sep 2023 02:10:23 -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 38M9A3ZE031991 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:22 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 11/13] kas: Add options to activate predefined users Date: Fri, 22 Sep 2023 11:10:01 +0200 Message-Id: <20230922091003.20763-12-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230922091003.20763-1-ubely@ilbers.de> References: <20230922091003.20763-1-ubely@ilbers.de> 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 allows to enable 'root' and 'isar' users and set their passwords. Signed-off-by: Uladzimir Bely --- kas/opt/Kconfig | 40 ++++++++++++++++++++++++++++++++++++++++ kas/opt/user-isar.yaml | 19 +++++++++++++++++++ kas/opt/user-root.yaml | 11 +++++++++++ 3 files changed, 70 insertions(+) create mode 100644 kas/opt/user-isar.yaml create mode 100644 kas/opt/user-root.yaml diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig index 328ac5e6..87fef870 100644 --- a/kas/opt/Kconfig +++ b/kas/opt/Kconfig @@ -42,6 +42,46 @@ config KAS_INCLUDE_MIRROR_UBUNTU endmenu +menu "User management" + +config USER_ROOT + bool "Activate 'root' user" + help + Enables root user. + +config KAS_USER_ROOT_PASSWORD + string "Password for 'root' user" + default "root" + depends on USER_ROOT + help + Set password for 'root' user. + +config KAS_INCLUDE_USER_ROOT + string + default "kas/opt/user-root.yaml" + depends on USER_ROOT + + +config USER_ISAR + bool "Activate 'isar' user" + default y + help + Enables `isar` user. + +config KAS_USER_ISAR_PASSWORD + string "Password for 'isar' user" + default "isar" + depends on USER_ISAR + help + Set password for 'isar' user. + +config KAS_INCLUDE_USER_ISAR + string + default "kas/opt/user-isar.yaml" + depends on USER_ISAR + +endmenu + config KAS_IMAGE_FSTYPES string "Additional image fstypes" default "" diff --git a/kas/opt/user-isar.yaml b/kas/opt/user-isar.yaml new file mode 100644 index 00000000..67611a40 --- /dev/null +++ b/kas/opt/user-isar.yaml @@ -0,0 +1,19 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + user-isar: | + GROUPS += "isar" + GROUP_isar[flags] = "system" + + USERS += "isar" + USER_isar[gid] = "isar" + USER_isar[home] = "/var/lib/isar" + USER_isar[comment] = "My isar user" + USER_isar[flags] = "system create-home" + + USER_isar[password] = "${KAS_USER_ISAR_PASSWORD}" + USER_isar[flags] += "clear-text-password" diff --git a/kas/opt/user-root.yaml b/kas/opt/user-root.yaml new file mode 100644 index 00000000..65428e24 --- /dev/null +++ b/kas/opt/user-root.yaml @@ -0,0 +1,11 @@ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14 + +local_conf_header: + user-root: | + USERS += "root" + USER_root[password] ??= "${KAS_USER_ROOT_PASSWORD}" + USER_root[flags] += "clear-text-password" From patchwork Fri Sep 22 09:10:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 3119 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:35 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f184.google.com (mail-lj1-f184.google.com [209.85.208.184]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 38M9AYea032271 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:34 +0200 Received: by mail-lj1-f184.google.com with SMTP id 38308e7fff4ca-2c12c3e4595sf21244911fa.1 for ; Fri, 22 Sep 2023 02:10:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695373826; cv=pass; d=google.com; s=arc-20160816; b=Va//P+JOxCqGBnZRoqjnmYI+duezaPUq29yOcoJpo1w1sWcbDuhoSBOxGxXdUAtaOS VSgL0mW1INB0+aLCJC9NAYCH38YVeRBEecU1NnsztAFAnxzLFCy+3EvzvR2xnMVjcW1b Auq85Ee+/OkJxxh6RvHDpg1iLn87fm5oAPnPqB2EOCT8q5dtcKKxU02Vpa/F7qS4/pE8 9qAK3nHGgXvaiKo2nhw1/z4smMBOtq9vuheGy3bwEfAaQGm4ZQ9MBDAWck0Nm41wFFBE Wb/AdBaZUn3lViIPXYAfVJmrp9OxyLIozZBzXWybNPTu2fLFguIsTl7+muTay6+4D6pr Jm/g== 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:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=+TQLjcToPieBQv1ctFuBsNZAvG7d5HTGADLlbKJJdk0=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=pdhbmtEDyHKWEIWYssmlSRm70kJ8qIG6KMuAPLbZAk+UDJHpVagoRs72vkPR8aaHf/ sH4AjNpc0gWlyaGZ6mYMKLVrJ6D9oIOsvXUdIEz3eyL4yy6CPv02Ow/rwseawQsuRqiS euzK25ufpl8cq42EAHgjt5+zxF1AmpnaVajZLXOSuePhthp9V9Oj4f6/lQno49Q24t51 g71+/alhwZFREXiMerP5vaxOXjHoh6rQUd7rUTf2CnOQvf/KMcMOE5mUrJcUB38DzvM3 HENb6yo8OTvyfni2yl410mtwgqkAHbAP6X4zSi9MQ4AoCcqBrLPufVJ+ps4jyUJGD4DN xr2w== 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=1695373826; x=1695978626; 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:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=+TQLjcToPieBQv1ctFuBsNZAvG7d5HTGADLlbKJJdk0=; b=v28Ty3SwCOiUy+ikx6z0awy0SkrDGN7Gl0zlGzEr90ugDE70SXfh6gYTLV3cgdakUx qQDjol4GqS7lN3aXAISVsk3ALlah8x87ayWBv/ww9ffMtfjr1EIMH40MtCwXupfbXdU9 zQerKg5QQsy0vnCATftNqYXHBFIggrDBBY65nn5r6ToYH2Xh8WG9zjMN2p8MhvmYPKhd FlFBcBaPX8hSFdoOETZmWbTZ6PqZlqkOMbVeiHm71oIfwF6dYV3phnABpF0UwU4s7XmG c6dC5DCU444THBWqU5YaiUZfIFz0wp41lQKTbaH+G5K7fDjEcoVbbMT17OeYzjqENOkD gq1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695373826; x=1695978626; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=+TQLjcToPieBQv1ctFuBsNZAvG7d5HTGADLlbKJJdk0=; b=fz8S//o8aasnvgx3KDnYsH+YNPDN1Z8xnpTF9vE21/xk8PoYVmXn2MuKaWoQXSF/hz 4yIgkK14nXiKiHpWqz9xPXNPDYi2PfTTHQNzRce+h2sP9iVqDh5h32tFMrP6L3r0XYrT riF54O4AgZlJHsLvWSg8q+g2E7wCsCYrbLbu7BpE/jTJjMzQYaVVBjS0ieYFUQUwTwHP J/Xt1cEIFqfN6sg3uS4OuHDOZBhGrmUEKXRZgcUb7qF1UkS7IVcgctb+b36M+0+5Wp0W aWwI4M1m+xarNVg34TjbN6Jh90VFLvpi0wN4DU6bUmh+ExD9jmhT9/kaNnxdc61Ej5bt ZaIg== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOJu0YxZnnsj9ujKckhTiX0PHiwqXxyqw6z0qnugct35NpSAjLQ3xzLa qQnrh+4wt8q5fTEYvef8bBw= X-Google-Smtp-Source: AGHT+IEQ+gGLGvZSLfte7ae5siqUgPMTMl8zdSEIkgjLz194L8wSWaa8T2aUm16HutOY9J6Q2ZbFlw== X-Received: by 2002:a19:7009:0:b0:503:264b:efc9 with SMTP id h9-20020a197009000000b00503264befc9mr6799244lfc.18.1695373825980; Fri, 22 Sep 2023 02:10:25 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:3b9c:b0:504:30ef:f2c7 with SMTP id g28-20020a0565123b9c00b0050430eff2c7ls141245lfv.1.-pod-prod-05-eu; Fri, 22 Sep 2023 02:10:24 -0700 (PDT) X-Received: by 2002:a2e:900c:0:b0:2b6:a3a0:5f7 with SMTP id h12-20020a2e900c000000b002b6a3a005f7mr7572795ljg.9.1695373823929; Fri, 22 Sep 2023 02:10:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695373823; cv=none; d=google.com; s=arc-20160816; b=qFBy2Fbp9xsftJCKIitZ+A/AGklxVxB0RwNexqLmNo+t5Tq5UaSf7p/0+6ynO4a1l6 zawPyjC++oIJBu6/x/ospqIVcR2IHnWTXE0P5gCaTnNS/pkaIobGY2/KTvDUpU/sk0Fx S+k8ocSToj6Ef1x66P/D2Vx+jRLaSxsGqxDzfjcJJu/Fjl60FxWv4zdBxQipvgtt84bZ TAaKkF3riw4P3TUbU+mfe5iusZNOIsQQDW78p4TsDtU0TPjSFYAxCHIXeaCN8b3XlBu3 NwyDlaG8hnpR9jhpl/Siy8iHY1z5MVTtTdwKDKhLO2QkOEaHQ5/mrBYA2hysFOsFaTJI 03pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=SXm3oMYf8bYm6JrnmIQpFbIRwgvOsuXPdg1O2c+IXsM=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=PWvIBA0akUY+gNvoQgB3b0WRKozO03EdF9DEFR3W7kYamITyqlz22vd/4X6EfHa/+r UrG280/v1UWr+TleKumOJK645J023Xo47vnyvnd9EquJCdGVsmNZQXtfR32eLm+0lwkR dHiM9Bo2WixULVDWDHbbGsKub/mQo5wbf78xAvpAh7ZA3nvmWEsLhTx0a1tDZkhzqTMB YC0v7QJr+5jcEItYdvQ1IWYQP8zztxk1ixyCVyHCyDBC5LMpSPsBd+q4ChlMrQYfTxQX 1G8WOtcoDoey8iHyC2my1iHQYVdQ2mfsHUnlJnu2AfcRIANnsEn7x4AjVKam3NPIlR+W 2dsQ== 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 b32-20020a05651c0b2000b002c0305c9237si242975ljr.0.2023.09.22.02.10.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Sep 2023 02:10:23 -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 38M9A3ZF031991 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:22 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 12/13] kas: Add kas/README.md Date: Fri, 22 Sep 2023 11:10:02 +0200 Message-Id: <20230922091003.20763-13-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230922091003.20763-1-ubely@ilbers.de> References: <20230922091003.20763-1-ubely@ilbers.de> 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?= Add a brief description of `kas-container` usage. Signed-off-by: Uladzimir Bely --- README.md | 3 +++ kas/README.md | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 kas/README.md diff --git a/README.md b/README.md index 118acf52..f549aa9f 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,9 @@ https://github.com/ilbers/isar/ Instruction on how to build can be found in the [User Manual](doc/user_manual.md). +For beginners, it could be easier to use kas-based approach that allows to +simply configure and run build using menu. Look at [kas/README](kas/README.md) +for the instructions. # Try diff --git a/kas/README.md b/kas/README.md new file mode 100644 index 00000000..d821f0c8 --- /dev/null +++ b/kas/README.md @@ -0,0 +1,36 @@ +# Support of kas + +[kas](https://github.com/siemens/kas) is a tool to setup bitbake based projects. + +Directory `kas` contains required configuration fragments to setup and build +Isar with `kas-container` script and Kconfig language. + +## Requirements + +Since kas uses Docker or Podman based containers, users that runs Isar build +using `kas-container` script should be allowed to run these containers in +privileged mode. + +## Configuring Isar build + +``` +./kas/kas-container menu +``` + +This creates `.config.yaml` file in isar root that stores the configuration. + + +## Building Isar after configuration done + +``` +./kas/kas-container build +``` + +This generates `build/conf/` configuration and starts building Isar using +kas container. Required image will be downloaded if not yet). + +To access bulid shell, the following command can be used: + +``` +./kas/kas-container shell +``` From patchwork Fri Sep 22 09:10:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 3118 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:35 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f59.google.com (mail-wm1-f59.google.com [209.85.128.59]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 38M9AX8k032233 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:34 +0200 Received: by mail-wm1-f59.google.com with SMTP id 5b1f17b1804b1-402cba95486sf14880045e9.0 for ; Fri, 22 Sep 2023 02:10:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695373826; cv=pass; d=google.com; s=arc-20160816; b=UUxrbbxJlMnHWkDRrrU77MYLuMOMMep3fsWxyo1buUk5RwfRT9tf20wJJ7F5x/DTPx NXaubcl1XatdZi/UukFXsQbLDD6F+CJLUJs3vh1iBpOk69fEi7HQUgRymwctN2cR5Cmo owvseLrV5jyRa9ilyJwpMWunsOGf0zSdbLYPUbaxz8MvOxaXmaXSzpafVZzRmVpHIq5n a6faVotI3Xnlq/xBsxiHG9EPtaNHt2ErYHNvYVIUPMT5VHnqn1JUtWwe9V806rgyzLAI H2b2q7J9RokLeT9lUZACGnsD8BYHLw6Rf9leX2qV92UBvT5ii1RE39M/AUdNGQBbij2p LHZQ== 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:references:in-reply-to :message-id:date:subject:to:from:sender:dkim-signature; bh=wh77r3eB9Uw8LJdzb32uO7OBdlo63XUQiX50PlHO2/4=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=f2iZGi+rql/b0u30T2Le0nLm1mZTwkVncGNsf0IEFdpCtq+QalXmnQS5VkRy7U1lcL 8pqYgAiAq/aLXjPtOu5lvDBc9g6ZfWv9MxH68DRaIX1q6IkjkxCX2WA7Tb+EWDbILUT3 BafZm7ViLJQyNE3z6yzBd/GxmVXamMjdSyNMtECQiZ+hQXdMIVH54nYyXzaX3hP2BD+1 aentWhNEesc8M9frc9ZKyZl/qaxZVey9yu6nqSGszmo6JaEUsJm68whJf6H5kimPAOy8 TgTfDZkmBC51PXEFFlPa9vwco+1IJCi+ecD3a1Kq28OBEQz496gIXtr/W2dMcvnAg81w 0UxQ== 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=1695373826; x=1695978626; 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:references:in-reply-to:message-id :date:subject:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=wh77r3eB9Uw8LJdzb32uO7OBdlo63XUQiX50PlHO2/4=; b=jVk6bV8s9mDLgOUw7AewP7ILCCiHZWw/vHWZCGcQXGPG/wCB55TLN+tPiLEH4Dqd9s /IHReFgwB5ZvDC3OQTzHIq9WGIAqqaHhjNjYS/MUOYNUlqJTAfOEPqNiLy21lyKu9ZgT JuYn0DftyHdFwfG+eE5sIXtWusYkkhdMQYNq4t9ZUheHTWsJ1p4d+JnMOKxY/kizA8a2 Zw7i1G9l+qO8ooA9uptXnRX1RUuqu/sfilLbh8nF+4wp9zPhBOIIx22arZSfUmn+CzaI 1O9fMXNVsbcCNfHyS6BpyrJWS4LkNrbt+8v2QahPX9uiD0+6nm1vhVzboDJluCZH7UlY FXEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695373826; x=1695978626; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=wh77r3eB9Uw8LJdzb32uO7OBdlo63XUQiX50PlHO2/4=; b=dDyih0aIUV5ew6hMTLdjWY35RZT5J9+cl/cJ0GX/SDA0K3FDkhQ5YVSV7jGZwJSZ/R InPSCvHvOoNoHptFGoMQCWz8kNadC3Hn8hlcwd5xT+taSvz/ewgh7qlYiiCt5dY5+5SW Sb10O7RGPuAM7iVVWitV32JAKKszgwhausP1AdjJirRxBSgvdAPDGQddIX/oTBmDq2gp 31hfxMvNXPhtXnsydfW0vZgFZcgr7xy5ubHjmC/Nlid3jnvEnTwqO7ykIJkFTROp1wkQ cEHnJRpWbtrOH7g5po7SUYMNU+npXE2aJzcpwJRfWmWETLDgN/svmx0t9mXDj5dhmoQJ w7cA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOJu0Yzl4xZkX9wkEJcLdSu49GChrtydLdtOac2t2x7iHJ32Hige4tIV vw4rqY+kEcL9pvUM3nVv6XM= X-Google-Smtp-Source: AGHT+IEjaBdrAlS9YDvtEBsW6QZS653KDVXuNH8Wvv+1ys27GRI2l0NxQhHHUst7O4tJTWxRW8SyhQ== X-Received: by 2002:a05:600c:ad4:b0:400:419c:bbde with SMTP id c20-20020a05600c0ad400b00400419cbbdemr7279186wmr.18.1695373826015; Fri, 22 Sep 2023 02:10:26 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:3c81:b0:405:8e:cdfc with SMTP id bg1-20020a05600c3c8100b00405008ecdfcls149393wmb.1.-pod-prod-09-eu; Fri, 22 Sep 2023 02:10:24 -0700 (PDT) X-Received: by 2002:a5d:530e:0:b0:31a:e744:1297 with SMTP id e14-20020a5d530e000000b0031ae7441297mr6323832wrv.50.1695373824026; Fri, 22 Sep 2023 02:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695373824; cv=none; d=google.com; s=arc-20160816; b=GA5nwwTyftbG/yVPDL66M6GmiXkAaJGqv9McfKkT33Sv9ib043Ma8k5EJvRafZlejX LnS8aOFvy3jm8kxI1HlaBmh5QUcK7AdA0GEEUPKdUS65DW3mRVvBxukG7I+zq7Q6PbGu gyJO69BgYzUlKl1Fuw/lk/0Ord9Jb2P38e16DwxT5eOZNdSgZyRSa7C1q8OL/t3k9YCZ hBW8zMY0G5SAF5tr/ZP0sl7sbX48nwtYiPoZ6TxIuWlct19FQ7KghuWqNlNmxZNrLdON F8Hhdgfn3vEYA5YN4XmNjja9iuWdQaw974N28pyijqlQiokOfyJw6UmvAeUjbyouxOnl 2WTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=Wjt6bplkHtbk2Q2H42ebKQ7BHr3+YtybcFkMeSrL/Bc=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=x/TnNX2lIVeOJdgXRQe5p7TrLzUyQto2XXABH6IDae6ZpCwW8xAhoMF4W+g7IeY51j DaT3H7LodbY2q+qvyDYH2ZrivrfzlZZz7TZYVDCqiJtpnwGh7XTGonuDg1Zt9aFVH4sD aXZ67esLOwt8gfFAJWI3exP4LcZ8qDRQDmPwtxBqnLhbypbt+p88PR0xXuuM6/VMsT/W 0sXpgvkJQK9r6VeUUyG6U8dloaLaJZmcYoVGZP7Ij8VnCI3QeKBuVSihVpb4ZeYMoKfu LxWGSJSFwTFw0qkJGKoGtHv53O+Pbzt/KaZF1KvUAyKFIjwIOJwKuxZU1otmU7nL8Rv2 wsvw== 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 e3-20020adffc43000000b0031ac9fda4c5si220195wrs.8.2023.09.22.02.10.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Sep 2023 02:10:23 -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 38M9A3ZG031991 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 Sep 2023 11:10:23 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 13/13] scripts: Add a script to generate kas yaml configs Date: Fri, 22 Sep 2023 11:10:03 +0200 Message-Id: <20230922091003.20763-14-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230922091003.20763-1-ubely@ilbers.de> References: <20230922091003.20763-1-ubely@ilbers.de> 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?= The script simplifies generating YAML files for new distros, images, machines and Isar packages and helps to avoid copy-paste typos possible when using manual way. Signed-off-by: Uladzimir Bely --- scripts/generate_yaml.sh | 97 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100755 scripts/generate_yaml.sh diff --git a/scripts/generate_yaml.sh b/scripts/generate_yaml.sh new file mode 100755 index 00000000..3b4568b7 --- /dev/null +++ b/scripts/generate_yaml.sh @@ -0,0 +1,97 @@ +#!/usr/bin/env bash + +# This software is a part of ISAR. +# Copyright (c) 2023 ilbers GmbH +# Authors: +# Uladzimir Bely + +# +# Script to generate yaml files for kas configuration +# + +set -e + +cd "$(dirname "$0")/.." + +HEADER="\ +# This software is a part of ISAR. +# Copyright (C) 2023 ilbers GmbH + +header: + version: 14" + +# Scan for distro configs, except "debian-common" used only for including + +DISTROS=$(find {meta,meta-isar}/conf/distro -iname *.conf -printf "%f\n" \ + | sed -e 's/.conf$//' | grep -v "debian-common") + +for distro in ${DISTROS} +do + cat << _EOF_ > kas/distro/${distro}.yaml +${HEADER} + +distro: ${distro} +_EOF_ +done + +# Scan for image recipes + +IMAGES=$(find {meta,meta-isar}/recipes-core/images -iname *.bb -printf "%f\n" \ + | sed -e 's/.bb$//') + +for image in ${IMAGES} +do + cat << _EOF_ > kas/image/${image}.yaml +${HEADER} + +target: ${image} +_EOF_ +done + +# Scan for machine configs, except "rpi-common" used only for including + +MACHINES=$(find meta-isar/conf/machine -iname *.conf -printf "%f\n" \ + | sed -e 's/.conf$//' | grep -v "rpi-common") + +for machine in ${MACHINES} +do + cat << _EOF_ > kas/machine/${machine}.yaml +${HEADER} + +machine: ${machine} +_EOF_ +done + +# Generate configs for fixed list of Isar packages + +PKGS=" \ + cowsay \ + enable-fsck \ + example-module \ + example-prebuilt \ + example-raw \ + expand-on-first-boot \ + hello-isar \ + hello \ + isar-disable-apt-cache \ + isar-exclude-docs \ + kselftest \ + samefile \ + sshd-regen-keys \ +" +for pkg in ${PKGS} +do + package=${pkg} + + if [ "${pkg}" == "example-module" ]; then + package=${pkg}-\$\{KERNEL_NAME\} + fi + + cat << _EOF_ > kas/package/pkg_${pkg}.yaml +${HEADER} + +local_conf_header: + package-${pkg}: | + IMAGE_INSTALL:append = " ${package}" +_EOF_ +done