From patchwork Thu Oct 24 06:09:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "srinuvasan.a" X-Patchwork-Id: 3882 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 24 Oct 2024 08:08:24 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-pg1-f191.google.com (mail-pg1-f191.google.com [209.85.215.191]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 49O688Wm016662 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 24 Oct 2024 08:08:14 +0200 Received: by mail-pg1-f191.google.com with SMTP id 41be03b00d2f7-7cd9ac1fa89sf519276a12.1 for ; Wed, 23 Oct 2024 23:08:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1729750082; cv=pass; d=google.com; s=arc-20240605; b=Ryua2DuhAQEDuZ6+F1STXKecIxjVWWpcTB3AtGhBgvx29XpM89dErXgUxvPqeL7ePt Vg7vf+XbYLLI6EuRneors/zDzcKk8ETtD7mgA4bag3nujVmieipWB6t3QwBauSY/7YIq EN/P4ggX2VyY2uG4PZFTE3kUfozhthkqw8YcKoPaNFt4Aos9Xk06INHhfF35+gqN5x3g aoplpRPui0s0daRYVTWCG4Jw1mQ2iRP2wpQBxfBNu1WtG7YjZAJ9UnhsFb9vH/659O7B GHORZtvuigwWljl/8msmFZHtIuJyoyZ+UCHCkDUMleW4t/zKhljDBHpnePCxTv6hTAYg IXww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5T5vIq6P2ru5/vI2G4jvDRVqlyp9ia0Ez4NubyzltJ0=; fh=I4UebOJ9qMWdJK5SitHiMR8CuRo1tPVWMUWrNVRMyNU=; b=FG+pSABXrZ2AJOsMBC4jOImU5YIFT6XqtxpHmtKF4hmGFTiWLGWohHOxxgHJeMgfS3 na2pE1YSZSnaZv8FJNMKgxlr9bw8csHzR7DtmhKNFm9Ieq83Nf9dcYndL25b6NRRuHhz rVmumihP2BsocoYcy8PYfRuCSTnKeniFtYuenwkWn61hDHLHCsZTnY4sqoHneNNu2h1X CO1UzQFUt4WriW248mBdLUK39PesWVg9xqk5IAHmBpNCc6J4A6wRA7zmL/QrFEopTULy qAwLrpEKjHlCefj2LrJNlN8Tvkm5ot8K8v5y5mD1jLtRaXr7WD/K07Y98Qssm2hU6ycP 6U3w==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=ifzABS2p; spf=pass (google.com: domain of fm-1324425-20241024060758e32dfbac87322e5003-r8l9bp@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-1324425-20241024060758e32dfbac87322e5003-R8l9bP@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1729750082; x=1730354882; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=5T5vIq6P2ru5/vI2G4jvDRVqlyp9ia0Ez4NubyzltJ0=; b=R08V6uQVMoJAcGUihjZTDSG7M/nXHFt9/e91TOar8oaZJxcTPLPHy8Vr+k8kd0t6ak z/V36EQgD8npnYpMb2wIRWMXIlVGkzuuSN7MR/auawEpTjOXcVV99FAhuMCmnO35zoxK rV9np4XS8lepBov0tSmZc8H/VGNXfIOidbVENoF0EtM5eEO50xj/JDlirUCpmVxgEDbZ 0NgHF0QsI/Jr9mvRG6h+aQFbxH1T/Yt9suy9iCmsy8GUJDpt9Q6i5RuhGWEyUMiofs93 8XNy4RXyNqWszcW7UJvjIwvrrBLNvTVjeEOJq55t2ZoyfWn//a06Cn/+jgJZM6Y8UxU4 K4EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729750082; x=1730354882; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5T5vIq6P2ru5/vI2G4jvDRVqlyp9ia0Ez4NubyzltJ0=; b=VgZTBOmJDwnoPoC7xZZy45jSF8L/NoeYHk3RAJdv7o7v1qL4JCAaYDHqa7jIaKdiPi GRrMizFtxp4rqfZBrDk0V689q+Hvy2UqRVo2ds3t63HiCIwPSk7ku99loR54HQnMPgn9 ADqdhPjsmNT9YAlOVnIHKLfMU3O0IgVL1Xdq/cko/qnBGc4JSb+0XaJkfXYfUKYFfSyw n2a1LdkEwmRCMoytT+h/sluOFMMo63CUeEBzBC226WUeurCce269+499qdmNEgj3QUNV 8YVlty3N+Wv9bABqCCpm+gFjD4Qr9Lr/uTR77+Sg8jIJ8kvKCD2pRcKeKElVP/1Nc8MN CTJw== X-Forwarded-Encrypted: i=2; AJvYcCVsQyBbP3Q/NcOFzj24WP2ocJXDoCgRlVA5QpX5QFPcogWcHMWlTMrIS7XfFNg8ebG2L8NWGM8=@isar-build.org X-Gm-Message-State: AOJu0YyIrAMmBj4RqFbHORifMk/nAQ/QHFmZmiREfzS5E3+0kPfIJNE2 VjaWLRKgk7Mg5uyu8gbvSABgPDnYqQWhGeOO185VGo2q6g+v9Gq2 X-Google-Smtp-Source: AGHT+IFwjqASugn7qfkwyPhPKb8+j3C/jLc3aMi/+8ZGa4H+ggIXDTjtvBvJsfrQ9lpYrwlbzrySNw== X-Received: by 2002:a17:902:ce04:b0:20b:9f8c:e9d3 with SMTP id d9443c01a7336-20fb9a57581mr10170575ad.55.1729750082332; Wed, 23 Oct 2024 23:08:02 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:903:2347:b0:20c:5fda:7b55 with SMTP id d9443c01a7336-20fb53aed13ls4921115ad.2.-pod-prod-08-us; Wed, 23 Oct 2024 23:08:01 -0700 (PDT) X-Received: by 2002:a05:6a20:43a9:b0:1d2:e81c:adc0 with SMTP id adf61e73a8af0-1d989d20edamr989410637.46.1729750081109; Wed, 23 Oct 2024 23:08:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729750081; cv=none; d=google.com; s=arc-20240605; b=fFI2N1Nhw3DGcCa+f4NDlxR7SL0Hr4ncAMiVFYMMxfCrK6jyq5DpAzo+bX6Y6L2KBb kkZ6VMh2b9qlgx4DrCVKpB3qRIIefYanxRjoUNjy9uDROBU5Hkm3OXIkuwXRhsw/lRYM 1FnjWIblyKWWqeaZQlHhgl+OT0tlQYy5sni+dYLqRjb8YsyjJTN1LTBSF0tBo5Q3T7+x 2Qx2GowF3YNGtWKQIphgqr7w4sYY9QDzIiP3Jn5+s4XMC12KZmLxzdwh2UMNXq5i1Hm2 RP6C/htHQ4DNYwa75rqbFUVnzRZ8RRO8ODwKwNUBYvHUUn2HAGa2QCY9zd58XnKnb47Z sWWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=oTY1rzTbAShx7KHCaCDyWPH1S7qXfZq9zfwNByDi74A=; fh=7w8uPGiMToa9ZVDAMG2h4OTikUm4uxVmIZ1hUqaFJ54=; b=dJy7zI6pluQAk+PToyyS6x6WDXVtk/30IZ3RWetiYUYVnKUDzmE5yHhomi2B4LW1pr tAK6YkutbMprMyf6z4+3ft+uuxDZgfyWXsULtYFNpxtVhMlvtSN6o/ah25RIKo1WjY+B CR8Vv7pdo0J3NNXUZL0hoeQAhnmTkChq15L1v+ygsF3aWMCXxVYwGOicG6by4JvaxxIb lQ6PEXl7GCSnIRDYrhFb2gp9YsORa3A6wrgY4DCaG9Ux2Q/W4SLEIvSN8TN3ePnS33Ce chLil8JO/iu3mcYQUHu+nfj+BRlP+GBNLVDj8z7juHJIV9Y/VREmhTJjaRgU1JB0rYta bWzw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=ifzABS2p; spf=pass (google.com: domain of fm-1324425-20241024060758e32dfbac87322e5003-r8l9bp@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-1324425-20241024060758e32dfbac87322e5003-R8l9bP@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-226.siemens.flowmailer.net (mta-65-226.siemens.flowmailer.net. [185.136.65.226]) by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-2e77e50ad96si26695a91.2.2024.10.23.23.08.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Oct 2024 23:08:01 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-1324425-20241024060758e32dfbac87322e5003-r8l9bp@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) client-ip=185.136.65.226; Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 20241024060758e32dfbac87322e5003 for ; Thu, 24 Oct 2024 08:07:59 +0200 X-Patchwork-Original-From: "srinuvasan.a via isar-users" From: "srinuvasan.a" To: isar-users@googlegroups.com Cc: cedric.hombourger@siemens.com, jan.kiszka@siemens.com, srinuvasan Subject: [PATCH v3 1/2] add new machine qemuamd64-cip and corresponding mc Date: Thu, 24 Oct 2024 11:39:02 +0530 Message-Id: <20241024060903.1407158-1-srinuvasan.a@siemens.com> In-Reply-To: References: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1324425:519-21489:flowmailer X-Original-Sender: srinuvasan.a@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=ifzABS2p; spf=pass (google.com: domain of fm-1324425-20241024060758e32dfbac87322e5003-r8l9bp@rts-flowmailer.siemens.com designates 185.136.65.226 as permitted sender) smtp.mailfrom=fm-1324425-20241024060758e32dfbac87322e5003-R8l9bP@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: srinuvasan.a@siemens.com Reply-To: srinuvasan.a@siemens.com 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-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: srinuvasan The newly added machine qemuamd64-cip provides to build the kernel from the cip git repository, this would be helpful to demonstrate the kernel built from git repo rather than tarball. Moreover, these changes needed to demonstrate the support of CONFIG_LOCALVERSION_AUTO. in defconfig to automatically append the version in kernelrelease. We chose this git repo method because the repository should contain the.git folder to get the latet HEAD revision to append into the kernel release. Note: The qemuamd64 machine no longer depends on the cip kernel, use qemuamd64-cip machine to build the images with cip-kernel and updated the KERNEL_DEFCONFIG accordingly. Signed-off-by: srinuvasan --- meta-isar/conf/machine/qemuamd64-cip.conf | 8 ++++++++ meta-isar/conf/mc.conf | 1 + meta-isar/conf/multiconfig/qemuamd64-cip-bookworm.conf | 4 ++++ meta-isar/recipes-kernel/linux/linux-cip_4.4.166-cip29.bb | 4 ++-- testsuite/start_vm.py | 2 +- 5 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 meta-isar/conf/machine/qemuamd64-cip.conf create mode 100644 meta-isar/conf/multiconfig/qemuamd64-cip-bookworm.conf diff --git a/meta-isar/conf/machine/qemuamd64-cip.conf b/meta-isar/conf/machine/qemuamd64-cip.conf new file mode 100644 index 00000000..50897ddc --- /dev/null +++ b/meta-isar/conf/machine/qemuamd64-cip.conf @@ -0,0 +1,8 @@ +# This software is a part of ISAR. +# Copyright (c) Siemens AG, 2024 +# +# SPDX-License-Identifier: MIT + +include conf/machine/qemuamd64.conf + +KERNEL_NAME = "cip" diff --git a/meta-isar/conf/mc.conf b/meta-isar/conf/mc.conf index 212d3e4d..2a7b69f3 100644 --- a/meta-isar/conf/mc.conf +++ b/meta-isar/conf/mc.conf @@ -21,6 +21,7 @@ BBMULTICONFIG = " \ qemuamd64-bullseye \ qemuamd64-sb-bullseye \ qemuamd64-bookworm \ + qemuamd64-cip-bookworm \ qemuamd64-trixie \ container-amd64-buster \ container-amd64-bullseye \ diff --git a/meta-isar/conf/multiconfig/qemuamd64-cip-bookworm.conf b/meta-isar/conf/multiconfig/qemuamd64-cip-bookworm.conf new file mode 100644 index 00000000..a6eaedd0 --- /dev/null +++ b/meta-isar/conf/multiconfig/qemuamd64-cip-bookworm.conf @@ -0,0 +1,4 @@ +# This software is a part of ISAR. + +MACHINE ?= "qemuamd64-cip" +DISTRO ?= "debian-bookworm" diff --git a/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-cip29.bb b/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-cip29.bb index 4e8fc08a..873ca7b0 100644 --- a/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-cip29.bb +++ b/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-cip29.bb @@ -1,7 +1,7 @@ # Example recipe for building the CIP 4.4 kernel # # This software is a part of ISAR. -# Copyright (c) Siemens AG, 2018 +# Copyright (c) Siemens AG, 2024 # # SPDX-License-Identifier: MIT @@ -13,4 +13,4 @@ SRC_URI += " \ SRCREV = "af3adf9f9c633ac0e1d68487d7fad22285dda8a3" -KERNEL_DEFCONFIG:qemuamd64 = "x86_64_defconfig" +KERNEL_DEFCONFIG:qemuamd64-cip = "x86_64_defconfig" diff --git a/testsuite/start_vm.py b/testsuite/start_vm.py index 2c986344..76814ee3 100755 --- a/testsuite/start_vm.py +++ b/testsuite/start_vm.py @@ -148,7 +148,7 @@ def start_qemu(arch, build, distro, image, out, pid, enforce_pcbios): def parse_args(): parser = argparse.ArgumentParser() - arch_names = ['arm', 'arm64', 'amd64', 'amd64-sb', 'i386', 'mipsel'] + arch_names = ['arm', 'arm64', 'amd64', 'amd64-sb', 'amd64-cip', 'i386', 'mipsel'] distro_names = [ 'buster', 'bullseye', From patchwork Thu Oct 24 06:09:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "srinuvasan.a" X-Patchwork-Id: 3881 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 24 Oct 2024 08:08:20 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-pg1-f192.google.com (mail-pg1-f192.google.com [209.85.215.192]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 49O68BdD016672 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 24 Oct 2024 08:08:12 +0200 Received: by mail-pg1-f192.google.com with SMTP id 41be03b00d2f7-7edb8c3e743sf103292a12.1 for ; Wed, 23 Oct 2024 23:08:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1729750086; cv=pass; d=google.com; s=arc-20240605; b=YFLg8xRrNatvLZv/PkERf7gVVqi6d+N+5caYH2afFsTLyQtoAZ2BUH+qdLX4Onf1zn 0aq4gJmM1ITq5s/69uM0/Gwik3IEvf25FHZE1b4pXiK5wM7TSlhR2JrpY/jKxUYvbNzw S5gcTT/dU/sSQEtdejZbsvmvFTfr/AWQ9wDq9PyBaGyMkGgjUc00EZY/tNiW89fzYEyR l9P/zSgTCn0PraqSeN3IiEsEh9YaEQgutdZE4850+N2yL96eBob718krqDRUSpUSJ/uw xzKKpy9JT8R2Urnn/fRsGvlKbWMA3Kfx0z1S4PtDql4TsOdTo3tdtzeQdrT+4W9kO4oJ /5eQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AB2yPvt/0YuW0uexkDmgvpo26Q+zl3xXmxldOde8VGI=; fh=jpjDESgBE5e5o3GNCFhQFF9jczJKcqNhc1SW8O/QVAg=; b=CGGp0u1Urv5jybEx1mYwY228lrWDewntP7ygjqXbUyNHuapwFqko0sTG/JPEWOuQq/ EOYnOVbNJD7ZDZ1RdJWIzmZhIMb0VN1O8WhVSGlSQ7/cw49hHYf2OOoK0WPInpSLpTlR Vg6qJ85G688VL9BoOc7HKZy43j3ILlRxzt1c+TP1Du3qnS5pLZ5VIlmGtitAX6YBr9Od NxsYdLvSmp4T1O8g/039P0fb+H+YE0H/Nda2yARHEUO2CR/a90LuYbi3yQRMWVRTxO+d rCqFcTvCIvOA48INAAJqfdokCEQxBtvqIe+XQyrvSwAaZHYYr2tp6YtUpJMrT6K7zlKy rlLw==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=AOYIR7l3; spf=pass (google.com: domain of fm-1324425-2024102406080206b622b7718421a173-0cra3t@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1324425-2024102406080206b622b7718421a173-0CrA3t@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1729750086; x=1730354886; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=AB2yPvt/0YuW0uexkDmgvpo26Q+zl3xXmxldOde8VGI=; b=p81qOq1WAGpA6LsDRWaKIe1zHKKx0yI9Ifrv4dp8JL0RtNslDwm9kLaOWOpiTxWyXY /0P9gRzG4dAA3+Qx/CKEVvo2n3/Wc6FSIK47W7b85tKHk6hQ9bIfbNz7FgP9U7Ijjkid 1qSJthoNCI08BL4gErCHMrukcVomGi0ROSje+Eyr1x/TtiT/4YQSX7jFTyKEAnAFaqXn ss2GTaBs9CPDp7r+q4k1iYPjuBGuE19OurmXEAj8Tq7d6EpAWfdBNTBUEitXIoN3lVLX 7P7lh/J4lsBNvjbgiBl7dWQ53RPdR9kguN6D319gnHjaHRybS5bjQq1KJG90qIlJdRpY kZ+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729750086; x=1730354886; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=AB2yPvt/0YuW0uexkDmgvpo26Q+zl3xXmxldOde8VGI=; b=AlxYKaM4rvV1lqXXP+gvG5z3TwTWL0tt88IxcWu0kIXRxhtZJImIUKVpe9n+ONFwMv qQEoqATIiuKYcLXKVop9Vw+LP+nG75fXRxJm1NBPi7Q2viD/nzPfn0a6LBYSNyzjbIwZ m8Qjg72ARUDZ+H5PsVLZMFby3yCYzO6du/oYqU71eP5nE+mk9Lzv73f5o6QFN1JnY7ZB Jz8bENzm9tiHgJhfkIUxDMi1Nt1E8sd+DTLJVFVLnzbOigcGWq5MWszrSMOC2TgO2rYt oMIOskBGhGLsz8aJeUlG+gPIyoUhXQfEOPvi4Z7iJ9KmnJJu7TfWkL8VQehAzsExTJoQ RMgw== X-Forwarded-Encrypted: i=2; AJvYcCXT8NEZksfVpaaok/ECSVQoaQUPZyyd5dF8k+DKoc4zC4oj14zhONML+y803AG1DVdsSegpp8Y=@isar-build.org X-Gm-Message-State: AOJu0YyDrwpyJkyawdBHVSnIMszWahrdvL/l8ovQswo6etoa8AAB/Hx8 oFMl0v1eWEU6R1juCPQjBRVxJUi2G5ufD64HvrP+YkLKWafFKjPs X-Google-Smtp-Source: AGHT+IEZE20+yhXseCmVJe9Qpr7VX42G06sXvrCPCYQySEgt1de5v4IDyBY5MhRvMhCD/XTzcpvCFQ== X-Received: by 2002:a05:6a21:1349:b0:1d9:fbc:457c with SMTP id adf61e73a8af0-1d978badf29mr6453738637.36.1729750085580; Wed, 23 Oct 2024 23:08:05 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6a00:cc3:b0:71e:6edf:b2ac with SMTP id d2e1a72fcca58-72040036840ls535857b3a.0.-pod-prod-01-us; Wed, 23 Oct 2024 23:08:04 -0700 (PDT) X-Received: by 2002:aa7:88ce:0:b0:71e:44f6:6900 with SMTP id d2e1a72fcca58-72030a8a42bmr7085210b3a.16.1729750084379; Wed, 23 Oct 2024 23:08:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729750084; cv=none; d=google.com; s=arc-20240605; b=OEi+miI1CQW37XHjnFumfiq9HlYfIeTd5mFiWCAtnyZhO0G1lR8AW80b4WfgV2IQwm rKT/1xYHv2Fcb3QU6+ZDbjwRtaimKKtX0vcqReC+/DIjyZirrTNauJQd4fCidI6oUNWv 2gbqfyHx/Qq27BMmblWxyh7fE9nvb/5kw4xZb5ONMgURXwbskEF/Gljq2BHdl2GdoCjJ p6dr6duxINDPV5osHw6a7h/5x4R0k3o2Ec976D4Mn81iFeSWlGn4RIPWHM6Qt5ZwlR38 FbvmdnYcS50p6ens+MpB2k/y2ae7ZzkVJWWSuU9WjJjyZl7gKXCyEpPASvjREBacnWVn XAXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=wQtq+y3PWsB1r+GkrRtU+mv0uh27XMPNPlSRmFOXVPU=; fh=7w8uPGiMToa9ZVDAMG2h4OTikUm4uxVmIZ1hUqaFJ54=; b=WF3saSap9CDTP5AToXv02jw3R/6r3GZxE4QUGKAYxq2PSwv2Tq/Z4KETb2fknyJMYv SKmzMz/h1HvSW871SUZDiLpiGn2+d/VRgCf9+Bka0EFixHdfE0bfLbVU0+E+WWjAML4t g8j4vbhHspvFC/5Dqh1YWXOBaTQ6DbUYdCv79zMBJUmiVm2uxsbzpsqnTx8d6vG/FZ5N Y79BOXy/qZbaFxoz3/OfRWC1LcgAYi4EBqDWAj0MQ8DJ268OvNJhVvBvYYgfXzYLQF27 nmopeHEJGcQpfi+T210aGXXaK4h4/SnGTP71kcBavbKsfUZ6u8pq/F9lVUoZdaU07kVi 3aVg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=AOYIR7l3; spf=pass (google.com: domain of fm-1324425-2024102406080206b622b7718421a173-0cra3t@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1324425-2024102406080206b622b7718421a173-0CrA3t@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-227.siemens.flowmailer.net (mta-65-227.siemens.flowmailer.net. [185.136.65.227]) by gmr-mx.google.com with ESMTPS id 41be03b00d2f7-7eaeab203c0si439422a12.2.2024.10.23.23.08.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Oct 2024 23:08:04 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-1324425-2024102406080206b622b7718421a173-0cra3t@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) client-ip=185.136.65.227; Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 2024102406080206b622b7718421a173 for ; Thu, 24 Oct 2024 08:08:02 +0200 X-Patchwork-Original-From: "srinuvasan.a via isar-users" From: "srinuvasan.a" To: isar-users@googlegroups.com Cc: cedric.hombourger@siemens.com, jan.kiszka@siemens.com, srinuvasan Subject: [PATCH v3 2/2] linux-custom: Add a provision to support CONFIG_LOCALVERSION_AUTO Date: Thu, 24 Oct 2024 11:39:03 +0530 Message-Id: <20241024060903.1407158-2-srinuvasan.a@siemens.com> In-Reply-To: <20241024060903.1407158-1-srinuvasan.a@siemens.com> References: <20241024060903.1407158-1-srinuvasan.a@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1324425:519-21489:flowmailer X-Original-Sender: srinuvasan.a@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=AOYIR7l3; spf=pass (google.com: domain of fm-1324425-2024102406080206b622b7718421a173-0cra3t@rts-flowmailer.siemens.com designates 185.136.65.227 as permitted sender) smtp.mailfrom=fm-1324425-2024102406080206b622b7718421a173-0CrA3t@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: srinuvasan.a@siemens.com Reply-To: srinuvasan.a@siemens.com 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-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: srinuvasan This change might be useful for downstream layers to set CONFIG_LOCALVERSION_AUTO in their base defconfig to append the version automatically to the kernel release. Presently ISAR doesn't have this support, hence add this provision. Here we try to find the CONFIG_LOCALVERSION_AUTO availability and .git present during build the kernel package, unfortunately we are not getting the .git directory in the dpkg_build stage even if we are fetching the git repo, this is due to sbuild always using the sources (dsc) file to build the package, when we generate the dsc file it creates the tar ball without .git, hence during the dpkg_build stage it is not possible to get the latest commit HEAD value using "git rev-parse --verify HEAD" To solve this issue, we have base .config and .git available in the do_dpkg_source stage, here we try to find the latest commit and write them into .scmversion file, later during the kernel build package stage we are calling the kernelrelease target to set the localversion, this setlocalversion script handle the availability of .scmversion file and append the string accordingly to the kernelrelease. Added qemuamd64-cip BSP to demonstrate this feature. Signed-off-by: srinuvasan Signed-off-by: srinuvasan --- meta-isar/recipes-kernel/linux/files/x86_64_defconfig | 2 +- .../linux/files/debian/isar/version.cfg.tmpl | 1 - meta/recipes-kernel/linux/linux-custom.inc | 10 ++++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/meta-isar/recipes-kernel/linux/files/x86_64_defconfig b/meta-isar/recipes-kernel/linux/files/x86_64_defconfig index f3bafe00..c27a5a61 100644 --- a/meta-isar/recipes-kernel/linux/files/x86_64_defconfig +++ b/meta-isar/recipes-kernel/linux/files/x86_64_defconfig @@ -1,6 +1,6 @@ # Copy of linux/arch/x86/configs/x86_64_defconfig for demonstration purposes -# CONFIG_LOCALVERSION_AUTO is not set +CONFIG_LOCALVERSION_AUTO=y CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y CONFIG_BSD_PROCESS_ACCT=y diff --git a/meta/recipes-kernel/linux/files/debian/isar/version.cfg.tmpl b/meta/recipes-kernel/linux/files/debian/isar/version.cfg.tmpl index 17effe52..1ab699f5 100644 --- a/meta/recipes-kernel/linux/files/debian/isar/version.cfg.tmpl +++ b/meta/recipes-kernel/linux/files/debian/isar/version.cfg.tmpl @@ -1,2 +1 @@ CONFIG_LOCALVERSION="${LINUX_VERSION_EXTENSION}" -# CONFIG_LOCALVERSION_AUTO is not set diff --git a/meta/recipes-kernel/linux/linux-custom.inc b/meta/recipes-kernel/linux/linux-custom.inc index 0f23d6f0..bf6c879b 100644 --- a/meta/recipes-kernel/linux/linux-custom.inc +++ b/meta/recipes-kernel/linux/linux-custom.inc @@ -296,6 +296,16 @@ EOF done } +get_localversion_auto() { + if grep -q "^CONFIG_LOCALVERSION_AUTO=y" ${S}/${KERNEL_BUILD_DIR}/.config; then + cd ${S} + if head=$(git rev-parse --verify --short HEAD 2>/dev/null); then + echo "-g${head}" >${S}/.scmversion + fi + fi +} + do_dpkg_source:prepend() { dpkg_configure_kernel + get_localversion_auto }