From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7216630053834063872 Date: Mon, 3 Apr 2023 03:01:16 -0700 (PDT) From: Srinuvasan Arjunan To: isar-users Message-Id: <06e04599-5749-418f-a162-2e3a9b019150n@googlegroups.com> In-Reply-To: <20230331103325.414901-1-srinuvasan_a@mentor.com> References: <20230331103325.414901-1-srinuvasan_a@mentor.com> Subject: Re: [PATCH] meta/classes/sdk.bbclass: add --transform in TAR_OPTIONS MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_14290_318505476.1680516076230" X-TUID: vn9ZCTl2wxrH ------=_Part_14290_318505476.1680516076230 Content-Type: multipart/alternative; boundary="----=_Part_14291_1437700509.1680516076230" ------=_Part_14291_1437700509.1680516076230 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi adriaan, Can you please have a look, addressed your comments. Thanks, Srinuvasan.A On Friday, March 31, 2023 at 4:03:49=E2=80=AFPM UTC+5:30 Srinuvasan Arjunan= wrote: From: Srinuvasan A =20 When we untar the SDK rootfs archive file, all the contents are extracted= =20 into the current directory, not a folder, this looks ugly hence fixed=20 it with the file name transformations option.=20 Signed-off-by: Srinuvasan A =20 ---=20 meta/classes/sdk.bbclass | 1 +=20 1 file changed, 1 insertion(+)=20 diff --git a/meta/classes/sdk.bbclass b/meta/classes/sdk.bbclass=20 index 06cae02..50f718c 100644=20 --- a/meta/classes/sdk.bbclass=20 +++ b/meta/classes/sdk.bbclass=20 @@ -53,6 +53,7 @@ ROOTFS_MANIFEST_DEPLOY_DIR:class-sdk =3D=20 "${DEPLOY_DIR_SDKCHROOT}"=20 ROOTFS_DPKGSTATUS_DEPLOY_DIR:class-sdk =3D "${DEPLOY_DIR_SDKCHROOT}"=20 IMAGE_FSTYPES:class-sdk =3D "${SDK_FORMATS}"=20 +TAR_OPTIONS:append:class-sdk =3D " --transform=3D"s|.|$(basename=20 ${PP_DEPLOY}/${IMAGE_FULLNAME})|""=20 # bitbake dependencies=20 SDKDEPENDS +=3D "sdk-files ${SDK_INSTALL}"=20 --=20 2.34.1=20 ------=_Part_14291_1437700509.1680516076230 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable =C2=A0 =C2=A0Hi adriaan,

=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Can you please have a look, addre= ssed your comments.

=C2=A0 Thanks,
=C2= =A0 Srinuvasan.A

On Friday, March 31, 202= 3 at 4:03:49=E2=80=AFPM UTC+5:30 Srinuvasan Arjunan wrote:
From: Srinuvasan A <srinuv...@mentor.com>

When we untar the SDK rootfs archive file, all the contents are extra= cted
into the current directory, not a folder, this looks ugly hence fixed
it with the file name transformations option.

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

diff --git a/meta/classes/sdk.bbclass b/meta/classes/sdk.bbclass
index 06cae02..50f718c 100644
--- a/meta/classes/sdk.bbclass
+++ b/meta/classes/sdk.bbclass
@@ -53,6 +53,7 @@ ROOTFS_MANIFEST_DEPLOY_DIR:class-sdk =3D "${DEPLOY_= DIR_SDKCHROOT}"
ROOTFS_DPKGSTATUS_DEPLOY_DIR:class-sdk =3D "${DEPLOY_DIR_SDKCHROOT}"
=20
IMAGE_FSTYPES:class-sdk =3D "${SDK_FORMATS}"
+TAR_OPTIONS:append:class-sdk =3D " --transform=3D"s|.|$(basename ${P= P_DEPLOY}/${IMAGE_FULLNAME})|""
=20
# bitbake dependencies
SDKDEPENDS +=3D "sdk-files ${SDK_INSTALL}"
--=20
2.34.1

------=_Part_14291_1437700509.1680516076230-- ------=_Part_14290_318505476.1680516076230--