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: