From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 25 Oct 2024 15:14:17 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ej1-f59.google.com (mail-ej1-f59.google.com [209.85.218.59]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 49PDE9jp023583 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 25 Oct 2024 15:14:09 +0200 Received: by mail-ej1-f59.google.com with SMTP id a640c23a62f3a-a9a0ac0e554sf338958066b.1 for ; Fri, 25 Oct 2024 06:14:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1729862044; cv=pass; d=google.com; s=arc-20240605; b=dmZsjsOcN4zQFcgej9mVc8fSbEoV7vhGM+qZ/LIqAd5sEm9PouJ+PyJrzViCGoSTbB EPOPi4xe3okjAOq6HBhS39usn6fBOqooHB9F1K5sdtHhssMhkzyhyrMNbHMUqxQFG4/5 PXWkcYSi72S9kJUj9d9Phis98RFMsTBd1e3VCOH5j128LpmLViVESSAs4nmOqaY28VbO tBnXSp/cbf+pWAw0X2Efd3M//x8JeuuQ0dKAhqSmVMboGAxH17jKhqWqaPGI9ukT6bUU FVyAw/8RyoR4zAwL8k4LaBflpWjqgTJykZr/7VFd3aW5cDUU8rH8lgNAA1ga52BAdhOk 1J4g== 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:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id:sender:dkim-signature; bh=6hB2gSJ3NgRO0UhxhOllTPe3J9sYoU+MjOFmmPD7W2A=; fh=qXVpmi8AL+KzWGiwdDO50fktAchSegSVaIkGDXP6JDA=; b=JxwKhtHsUyFkIBNrbnAUepBeAKIVwa620SGj/lp4PWrDx6KbY4ZFUdxFsAfmam5B7W UidrHffO93aNLlN5J8RXUPcw9bYNJzD02x8LifPKLJdPyek3om7uZ4zPK5q131vE8cuu voOpnE9KGrQVNV5ybkQQ2lIMXxPelpw7FVqqaP8S+HwfO3ScIk23toihjMgGJtwvg54o eaxvOiBZd4kVQYzNJUkwEc9D81JqzjHnslV6W+y3QFl/oa1pgPDxof/znUb0z4V8rNg5 dNKKGDcP3MXxJ0pv6BLCIRUEq9rLfa8oyltyYForVpcLTgHq3CV/r+kHulSrOA1yUlF+ CrOg==; darn=ilbers.de 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=1729862044; x=1730466844; darn=ilbers.de; 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:user-agent:content-transfer-encoding :references:in-reply-to:date:to:from:subject:message-id:sender:from :to:cc:subject:date:message-id:reply-to; bh=6hB2gSJ3NgRO0UhxhOllTPe3J9sYoU+MjOFmmPD7W2A=; b=e6JuQwwHF+q4vEM/LHbxh1PXKlnc3dLun+na6nQ5dsvGYv1MGJc9PRvL+yBydnqlVq xXzfsICMYQrgH8NAR0+tssrIAnI1djKkBYX7rRlM/yAmhjpEFfIEJdQ7OD6Mm4R0TGtG o6nHhNrOlsSOU9hLN2FtF/UTipDaFCyiQ5g1F9I1zW6OCMw9ZnxYYd09w2E4qHjaLR0n r7zkjFZjwxyzrKyUfHY3brsx3QWNyhMKKmZMlLpUNmLjgoAc3iU9wP+6Wp7u+07PRKSU H1oEjbGWJ3Wi4lLrjUwhvrWolg9E90piHkI1FTq9kwFBdXDpYtVofeo1YnnETHnEgCTk gmWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729862044; x=1730466844; 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 :user-agent:content-transfer-encoding:references:in-reply-to:date:to :from:subject:message-id:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=6hB2gSJ3NgRO0UhxhOllTPe3J9sYoU+MjOFmmPD7W2A=; b=a981vGefRe7LDS3sMuc69sW8V93eeBgzvBlBabRZs8g/RHdgN1aPUTiEze5IyybmD5 OauqItArsDH2nKq6JahvgvwMdmguoKEl9RnIcVlW2ulHxr7X6JYxqeFjOuKIhpHKHn5j fC7nmdW73rQahMhbHt1ouX9+v3n1ookOhHsX6+xon0kb0VE/cW+2gZWaZCVfr7sCIFfx NJEynry3xQVkFrnLPSPTQYlqUY4o6wKAzoXOdzL658Wyi3p7siUaO4mx+hDsAfES728G yK66J464JgwEOGhl6+is60Hg0PNVQp1a4IHNRcW6DRJ+qjYeZcUD52zDs5dkK0c3NJN9 H2Gw== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCXeAI+QLMQ43aIWJItN4M2E4CHoKPiJil03yCEkkBAObZgl00oQCXL2kjC3SxVL9LOw2cHS@ilbers.de X-Gm-Message-State: AOJu0YxeUzSW13oWYV5YnQXiaCrRssTejtM0xz8uYfdrRyPL/OHjEM1K 2x65UYpV360r+93wdN4M2m5c2zKjsjbWbW1VKhvILWXnq6ZoN3Bi X-Google-Smtp-Source: AGHT+IHwV4OJHmpbOBGeplCDFKHCWlTVavItozxXIGU/uaZRkW5kgapJbsEDHE7KgUrak0uC/gL6Eg== X-Received: by 2002:a05:6402:358c:b0:5c9:3070:701e with SMTP id 4fb4d7f45d1cf-5cba2037cc9mr6314441a12.9.1729862043008; Fri, 25 Oct 2024 06:14:03 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6402:5245:b0:5c4:651d:a541 with SMTP id 4fb4d7f45d1cf-5cb9987e5bels41282a12.0.-pod-prod-00-eu; Fri, 25 Oct 2024 06:14:00 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUXr6gMALH1zR8rK3zgYwC6gfaQHKJY8vePMYKFCz7aMEmFQwn+A/YISJlrvBmoDUMTKfKP3NbTYzGK@googlegroups.com X-Received: by 2002:a17:907:1c08:b0:a9a:df:9e58 with SMTP id a640c23a62f3a-a9ad19d4db5mr544784266b.16.1729862040536; Fri, 25 Oct 2024 06:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729862040; cv=none; d=google.com; s=arc-20240605; b=G+XDE3aOLiirKuolRtydegeB8moAR/VfdUGIJWOtS/P9QnoS8eZBhlDJypvPjsfIQW 94HqRi7G9RNQyOGd7iyh2WbylnfhFBb3r83MypA7O8D+G+OM60ULGZGrzs6bdoXnzE9m UX/vpjuqbmkGlXiuk6ldGIF7O/x36XyEhlhfap5wuCQBd4fph50vZWkelFpoConIxCW+ cnYOHnk4TwNiHZRag/zuiTayNr/PtvqVAD9w/t4ZF2PTACvoIDnp52HLclPCNONJW+u1 vqHIYWVDjk/qZGxxBtJ2E10cbXYh4pXd0XqGkmwkC5PiRTT1UYHSVGNPtLtFl4L9ycAw vpDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id; bh=v/1cAioWa4xfKXEGBsAODXHI36vXjFtCKJqPd20Ayxc=; fh=nVESlvOQjD5dXVhuHMTN4WnNDcLawmQG4CZp/MWtHlM=; b=lE1dHWZLVk4hK7sQxh8pLmFTY4XimOdwWGKgNM+/lzvFKQatMJGbXqkIeDV8ifW+H4 8/Z1oqM8IZPVwkvX9oDWVEdI0WeHaCx4iFhDoNw0NhGXR7x6U//LRkZ/uyN5ZbYpGiXP RtYDUPIH2kc8oV8ObsGnjzjwDTeBjVw/yHcYaTWuW0YhJNKJ48CnLfcGisFwsoXe1ZUc H+uXdElxopRaSjKPryBt11Wd9W7QCuKishufM6f1s9qymBiVOTH+7ET86h3/kcCbvEUi +ogNQ0tZh+0hrc+Rd5rzaoYHYgwNrX3TeRurn7Xj6vFtwyaYXHnW58Ry/eeYK7qStbUZ DGoA==; dara=google.com 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 a640c23a62f3a-a9b1f29301bsi2709166b.2.2024.10.25.06.14.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 25 Oct 2024 06:14:00 -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 [127.0.0.1] (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 49PDDlpF023573 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 25 Oct 2024 15:13:53 +0200 Message-ID: <19e24d8e7b06465b0553cb95f2985b91466b220d.camel@ilbers.de> Subject: Re: [PATCH v3 2/2] linux-custom: Add a provision to support CONFIG_LOCALVERSION_AUTO From: Uladzimir Bely To: Jan Kiszka , "Arjunan, Srinu (FT FDS CES LX PBU 2)" , "isar-users@googlegroups.com" Date: Fri, 25 Oct 2024 16:13:47 +0300 In-Reply-To: <2b65e7e2-49ac-4a67-a3be-5641b7ab89fe@siemens.com> References: <20241024060903.1407158-1-srinuvasan.a@siemens.com> <20241024060903.1407158-2-srinuvasan.a@siemens.com> <2b65e7e2-49ac-4a67-a3be-5641b7ab89fe@siemens.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.0 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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-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-TUID: qmFwBnNLd2eE On Fri, 2024-10-25 at 11:09 +0200, 'Jan Kiszka' via isar-users wrote: > On 25.10.24 07:14, Arjunan, Srinu (FT FDS CES LX PBU 2) wrote: > > Hi Jan, > >=20 > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 Addressed the suggested points, Please confirm is > > this changes in V3 is fine or still need to look any changes? >=20 > Looks good to me now. >=20 > Jan >=20 > >=20 Just one more addition for patch v1. Since a new machine config is added, it is worth having kas menu item for it as well. Running `scripts/generate_yaml.sh` should help with it, but manual editing of Kconfig files (distro/ and machine/) is also required. > > Many thanks, > > Srinu > >=20 > > -----Original Message----- > > From: Arjunan, Srinu (FT FDS CES LX PBU 2) > > =20 > > Sent: 24 October 2024 11:39 > > To: isar-users@googlegroups.com > > Cc: Hombourger, Cedric (FT FDS CES LX) > > ; Kiszka, Jan (FT RPD CED) > > ; Arjunan, Srinu (FT FDS CES LX PBU 2) > > > > Subject: [PATCH v3 2/2] linux-custom: Add a provision to support > > CONFIG_LOCALVERSION_AUTO > >=20 > > From: srinuvasan > >=20 > > 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. > >=20 > > Presently ISAR doesn't have this support, hence add this provision. > >=20 > > 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" > >=20 > > 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. > >=20 > > Added qemuamd64-cip BSP to demonstrate this feature. > >=20 > > Signed-off-by: srinuvasan > > --- > > =C2=A0meta-isar/recipes-kernel/linux/files/x86_64_defconfig=C2=A0 |=C2= =A0 2 +- > > =C2=A0.../linux/files/debian/isar/version.cfg.tmpl=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 1 - > > =C2=A0meta/recipes-kernel/linux/linux-custom.inc=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 10 > > ++++++++++ > > =C2=A03 files changed, 11 insertions(+), 2 deletions(-) > >=20 > > 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 @@ > > =C2=A0# Copy of linux/arch/x86/configs/x86_64_defconfig for > > demonstration purposes > > =C2=A0 > > -# CONFIG_LOCALVERSION_AUTO is not set > > +CONFIG_LOCALVERSION_AUTO=3Dy > > =C2=A0CONFIG_SYSVIPC=3Dy > > =C2=A0CONFIG_POSIX_MQUEUE=3Dy > > =C2=A0CONFIG_BSD_PROCESS_ACCT=3Dy > > 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 @@ > > =C2=A0CONFIG_LOCALVERSION=3D"${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 > > =C2=A0 done > > =C2=A0} > > =C2=A0 > > +get_localversion_auto() { > > + if grep -q "^CONFIG_LOCALVERSION_AUTO=3Dy" > > ${S}/${KERNEL_BUILD_DIR}/.config; then > > + cd ${S} > > + if head=3D$(git rev-parse --verify --short HEAD > > 2>/dev/null); then > > + echo "-g${head}" >${S}/.scmversion > > + fi > > + fi > > +} > > + > > =C2=A0do_dpkg_source:prepend() { > > =C2=A0 dpkg_configure_kernel > > + get_localversion_auto > > =C2=A0} > > -- > > 2.39.5 > >=20 >=20 > --=20 > Siemens AG, Technology > Linux Expert Center >=20 --=20 Best regards, Uladzimir. --=20 You received this message because you are subscribed to the Google Groups "= isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= 19e24d8e7b06465b0553cb95f2985b91466b220d.camel%40ilbers.de.