From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7365782188524044288 Date: Mon, 6 May 2024 22:24:22 -0700 (PDT) From: Srinuvasan Arjunan To: isar-users Message-Id: In-Reply-To: <20240506071705.940343-1-srinuvasan.a@siemens.com> References: <20240506071705.940343-1-srinuvasan.a@siemens.com> Subject: Re: [PATCH] meta/classes/template: add BPN to default TEMPLATE_VARS MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_37722_1848187658.1715059462314" X-TUID: abB1QeN75RW1 ------=_Part_37722_1848187658.1715059462314 Content-Type: multipart/alternative; boundary="----=_Part_37723_114227550.1715059462314" ------=_Part_37723_114227550.1715059462314 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Monday, May 6, 2024 at 12:46:47=E2=80=AFPM UTC+5:30 srinuv...@siemens.co= m wrote: From: Srinuvasan A =20 Add the base recipe name (BPN) to default template variables, this would be= =20 helpful to replace the base recipe name in template file if the recipe=20 configured BPN across the builds.=20 Signed-off-by: Srinuvasan A =20 ---=20 meta/classes/template.bbclass | 2 +-=20 1 file changed, 1 insertion(+), 1 deletion(-)=20 diff --git a/meta/classes/template.bbclass b/meta/classes/template.bbclass= =20 index 7f8d5d8f..37e43196 100644=20 --- a/meta/classes/template.bbclass=20 +++ b/meta/classes/template.bbclass=20 @@ -4,7 +4,7 @@=20 # SPDX-License-Identifier: MIT=20 TEMPLATE_FILES ?=3D ""=20 -TEMPLATE_VARS ?=3D "PN PV DESCRIPTION HOMEPAGE MAINTAINER DISTRO_ARCH"=20 +TEMPLATE_VARS ?=3D "BPN PN PV DESCRIPTION HOMEPAGE MAINTAINER DISTRO_ARCH"= =20 do_transform_template[vardeps] =3D "TEMPLATE_FILES ${TEMPLATE_VARS}"=20 python do_transform_template() {=20 --=20 2.34.1 Hi All, Any feedback on this changes? Many thanks, Srinu=20 ------=_Part_37723_114227550.1715059462314 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

On Monday, May 6, 2024 at 12:46:47=E2=80= =AFPM UTC+5:30 srinuv...@siemens.com wrote:
From: Srinuvasan A <srinuv= ...@siemens.com>

Add the base recipe name (BPN) to default template variables, this wo= uld be
helpful to replace the base recipe name in template file if the recip= e
configured BPN across the builds.

Signed-off-by: Srinuvasan A <srinuv.= ..@siemens.com>
---
meta/classes/template.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/template.bbclass b/meta/classes/template.bb= class
index 7f8d5d8f..37e43196 100644
--- a/meta/classes/template.bbclass
+++ b/meta/classes/template.bbclass
@@ -4,7 +4,7 @@
# SPDX-License-Identifier: MIT
=20
TEMPLATE_FILES ?=3D ""
-TEMPLATE_VARS ?=3D "PN PV DESCRIPTION HOMEPAGE MAINTAINER DISTRO_ARC= H"
+TEMPLATE_VARS ?=3D "BPN PN PV DESCRIPTION HOMEPAGE MAINTAINER DISTRO= _ARCH"
=20
do_transform_template[vardeps] =3D "TEMPLATE_FILES ${TEMPLATE_VARS}"
python do_transform_template() {
--=20
2.34.1

=C2=A0 Hi All,
=C2=A0 =C2=A0Any feedback on this changes?

Many thanks,
Srinu=C2=A0
------=_Part_37723_114227550.1715059462314-- ------=_Part_37722_1848187658.1715059462314--