From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7216630053834063872 X-Received: by 2002:a1f:1610:0:b0:43f:cad6:2874 with SMTP id 16-20020a1f1610000000b0043fcad62874mr6490455vkw.1.1681306726188; Wed, 12 Apr 2023 06:38:46 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a67:c797:0:b0:426:b068:aa4a with SMTP id t23-20020a67c797000000b00426b068aa4als8799844vsk.9.-pod-prod-gmail; Wed, 12 Apr 2023 06:38:45 -0700 (PDT) X-Google-Smtp-Source: AKy350aO8f6KSyQiuKUbspPau9HBYDp2GHECuU1jgce9h9DPvAwkXen6SMQmB9JDdUQXu6EFYh5Q X-Received: by 2002:a67:e44a:0:b0:42c:9d0d:2dd9 with SMTP id n10-20020a67e44a000000b0042c9d0d2dd9mr118912vsm.31.1681306725366; Wed, 12 Apr 2023 06:38:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681306725; cv=none; d=google.com; s=arc-20160816; b=LTpceyfUZ3UxdHloebVx//f3xiSP7DJRjPgofbvhAXhR4MqU2RNkcTeStW/hd1N+tu 0AcCFDom6DsV3FhmB7b0miwnyAPDTcDTytqqv8/Ech8Fe/+18lmBAwbZW/LY/BkebDVU +2T2vIb0nuUX9E89WL3QPiJb8GkxUeb/OeiaUi4cToJFG2KDl3EP8o71VuDjbou73lm/ vfzEdJbGCACyySt/WmD6mF2mPu8ioF3kTKqsUHyzfVa6EhcZJfcFGBbkmUQ3Gb8bJigH tI1k/xBxk4KFLT2FgZZkClu6wfJg8wwRDaIYEp9mClM+6n2lW1lQPdIDFC3PpFBOmI/m Gqrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=aRTSMi+Wx7PrLw8X9GPcGqYrsIthD54ObXNuH9+1eO4=; b=PaDKMfJiaPbSVNdqYHo4/XI/3qrmU3mIRh4pbgOjjAP6JjONIQJm6aqf3lxbQTILRC ya9aSowbRIXpusr5+qrfQWR2v4ujHXYiVCLXMtJB6kPdND1Q9cgW9tWHYfBQX/o9AC93 ARDilC9+/F0WwM38Zrf9doBg6hI/1RuuDKm0zE6lEkZbLFIOwQYtrL5vOfvKYNn3PLQW DdShrpbeO1emoxKJKCMy7nUOiCIkA5rh0zzoaiVyyfO94nJBS2pw3DzVLWrnyn3a2lxI tpteB3zIjtxpzkRimbFdL3tP3COJwHJpJBa9xBXkKoa6Udwm0uuLu1W9kV5I1fk5N1RF BwaA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="sqt/qS3+"; spf=pass (google.com: domain of srinuvasanasv@gmail.com designates 2607:f8b0:4864:20::e2b as permitted sender) smtp.mailfrom=srinuvasanasv@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com. [2607:f8b0:4864:20::e2b]) by gmr-mx.google.com with ESMTPS id q11-20020ab06c4b000000b006919cae0238si2120170uas.1.2023.04.12.06.38.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Apr 2023 06:38:45 -0700 (PDT) Received-SPF: pass (google.com: domain of srinuvasanasv@gmail.com designates 2607:f8b0:4864:20::e2b as permitted sender) client-ip=2607:f8b0:4864:20::e2b; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="sqt/qS3+"; spf=pass (google.com: domain of srinuvasanasv@gmail.com designates 2607:f8b0:4864:20::e2b as permitted sender) smtp.mailfrom=srinuvasanasv@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-vs1-xe2b.google.com with SMTP id i8so2943285vsv.4 for ; Wed, 12 Apr 2023 06:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681306725; x=1683898725; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=aRTSMi+Wx7PrLw8X9GPcGqYrsIthD54ObXNuH9+1eO4=; b=sqt/qS3+4lydw8S8dURjuOvtRugmvn1mNzji4B7xUhlFutjcGRXLcjIcZljsRXw9qu ZNleQECWkCVGFMk2o4hhhDKvg7z1XXjXCi4shc3embqZglk28b6zXjXngjXkE232HxOD 8W8zbecrNVEN4+QPhIMAHi99dPk6+/g6hNGcl/tr3wSfDzKU1uUeawTlscScnmxJkT9i lKvHoEabKSjHgotDZog22zzDAoV83JYqXfzSc3mt9eBWQy1/nKFSidX/ua/zxUhb9ZOX jNyzB8KhL95sk+dt0ou5NRGptg73qBk0Gw2ZfqxASXAFfGnsXTr5T10J+YVsgtWBBbSr wVKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681306725; x=1683898725; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aRTSMi+Wx7PrLw8X9GPcGqYrsIthD54ObXNuH9+1eO4=; b=5bT4BobtwsshYLO5RDbT6omIzoopCwgdGTJsQNimpHOqeA9IWlOI2tYTvL55uBV3Y8 xqixjlOV6LF95XOdBFE1hiRQSxk8NlciB2JHb+g5WeiJ84sAU0Fp08MYbR8UDZpaCsn9 yePEZedDy2THiKtsNJcsn/EZHQ4O4QRwwMhEc4ChgOtrAr8j2NoAcTNLUEgk7dx0wCFh k1iHfYYrh09vdQmzXex0Ddi9Tz+UluDWCvOEeJng1rTehTzOxJdIEPCwuztkazhWQniB L1cXMQdDSwu0jaerl9WVOHuwOnUjpaBe0+bo6GAKpm/UYIj4RI1tojvuNSfBwYDX5c82 zloQ== X-Gm-Message-State: AAQBX9fNRZNs1WD95H3ak4U0kTJPQOm1aaPhPS268VAC8y62zaUgM1en xkGXEs9YytSiR0T7Xdxy/0LKH5Vp1OjCC2e9AGY= X-Received: by 2002:a05:6102:4759:b0:42c:3bcf:f927 with SMTP id ej25-20020a056102475900b0042c3bcff927mr9027430vsb.4.1681306724795; Wed, 12 Apr 2023 06:38:44 -0700 (PDT) MIME-Version: 1.0 References: <20230331103325.414901-1-srinuvasan_a@mentor.com> In-Reply-To: From: Srinuvasan Arjunan Date: Wed, 12 Apr 2023 19:08:33 +0530 Message-ID: Subject: Re: [PATCH] meta/classes/sdk.bbclass: add --transform in TAR_OPTIONS To: Jan Kiszka Cc: Srinuvasan Arjunan , isar-users@googlegroups.com, amikan@ilbers.de, adriaan.schmidt@siemens.com Content-Type: multipart/alternative; boundary="0000000000001712eb05f923bae7" X-TUID: xVuEQKDFxzuw --0000000000001712eb05f923bae7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 5, 2023 at 4:27=E2=80=AFPM 'Jan Kiszka' via isar-users < isar-users@googlegroups.com> wrote: > On 31.03.23 12:33, Srinuvasan Arjunan wrote: > > From: Srinuvasan A > > > > When we untar the SDK rootfs archive file, all the contents are extract= ed > > into the current directory, not a folder, this looks ugly hence fixed > > it with the file name transformations option. > > > > Signed-off-by: Srinuvasan A > > --- > > 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}" > > > > IMAGE_FSTYPES:class-sdk =3D "${SDK_FORMATS}" > > +TAR_OPTIONS:append:class-sdk =3D " --transform=3D"s|.|$(basename > ${PP_DEPLOY}/${IMAGE_FULLNAME})|"" > > > > # bitbake dependencies > > SDKDEPENDS +=3D "sdk-files ${SDK_INSTALL}" > > To my understanding, this will move the content of the SDK tarball into > a subfolder. What will that name be? ${IMAGE_FULLNAME}? And isn't > $(basename ${PP_DEPLOY}/${IMAGE_FULLNAME}) the same as just > ${IMAGE_FULLNAME}? > Tested, yes ${IMAGE_FULLNAME} works here instead of $(basename ${PP_DEPLOY}/${IMAGE_FULLNAME}) > > I'm fine with the relocation per se, I'm just wondering if we documented > or otherwise referred to the structure of an unpacked SDK somewhere, in > the user manual eg., and if that then also needs updating. > Yes we have gap in the document, will update and send next version > > Jan > > -- > Siemens AG, Technology > Competence Center Embedded Linux > > -- > 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 > email to isar-users+unsubscribe@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/isar-users/b460e006-136e-9c4f-311a-edfa= 724c32e2%40siemens.com > . > --0000000000001712eb05f923bae7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, Apr 5, 2023 at 4:27=E2=80=AFP= M 'Jan Kiszka' via isar-users <isar-users@googlegroups.com> wrote:
On 31.03.23 12:33, Srinuvasan Arju= nan wrote:
> From: Srinuvasan A <srinuvasan_a@mentor.com>
>
> When we untar the SDK rootfs archive file, all the contents are extrac= ted
> into the current directory, not a folder, this looks ugly hence fixed<= br> > it with the file name transformations option.
>
> Signed-off-by: Srinuvasan A <srinuvasan_a@mentor.com>
> ---
>=C2=A0 meta/classes/sdk.bbclass | 1 +
>=C2=A0 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 "${DEP= LOY_DIR_SDKCHROOT}"
>=C2=A0 ROOTFS_DPKGSTATUS_DEPLOY_DIR:class-sdk =3D "${DEPLOY_DIR_SD= KCHROOT}"
>=C2=A0
>=C2=A0 IMAGE_FSTYPES:class-sdk =3D "${SDK_FORMATS}"
> +TAR_OPTIONS:append:class-sdk =3D " --transform=3D"s|.|$(bas= ename ${PP_DEPLOY}/${IMAGE_FULLNAME})|""
>=C2=A0
>=C2=A0 # bitbake dependencies
>=C2=A0 SDKDEPENDS +=3D "sdk-files ${SDK_INSTALL}"

To my understanding, this will move the content of the SDK tarball into
a subfolder. What will that name be? ${IMAGE_FULLNAME}? And isn't
$(basename ${PP_DEPLOY}/${IMAGE_FULLNAME}) the same as just
${IMAGE_FULLNAME}?

=C2=A0 =C2=A0 Tested= , yes ${IMAGE_FULLNAME} works here instead of $(basename ${PP_DEPLOY}/${IMA= GE_FULLNAME})=C2=A0

I'm fine with the relocation per se, I'm just wondering if we docum= ented
or otherwise referred to the structure of an unpacked SDK somewhere, in
the user manual eg., and if that then also needs updating.
=

=C2=A0 =C2=A0 =C2=A0Yes we have gap in the document, wi= ll update and send next version=C2=A0

Jan

--
Siemens AG, Technology
Competence Center Embedded Linux

--
You received this message because you are subscribed to the Google Groups &= quot;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 on the web visit https://groups.google.com/d/msgid/isar-= users/b460e006-136e-9c4f-311a-edfa724c32e2%40siemens.com.
--0000000000001712eb05f923bae7--