Re: [meta-freescale] [PATCH] classes: Add support image_types_uuu (tarball)

Anibal Limon <[email protected]> Thu, 14 Aug 2025 09:47:55 -0600
Newsgroups org.yoctoproject.lists.meta-freescale
Message-ID <CAOU5ZMuk5HnnuMQSqGuhq=t6Z92Ks0j7RROvDKX_vFw9PDXJLw@mail.gmail.com>
--000000000000023cab063c553393
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

HI Daiane,

Right, I got a response from Otavio and there is already a class that does
same thing.

Thanks!,
Anibal

On Thu, Aug 14, 2025 at 6:10=E2=80=AFAM Daiane Angolini <
[email protected]> wrote:

> On Sat, Aug 9, 2025 at 11:19=E2=80=AFPM Anibal Limon <anibal@limonsoftwar=
e.com>
> wrote:
> >
> > From: Anibal Limon <[email protected]>
> >
> > Often is needed to generate a tarball with proper image and uuu binary,
> > and lst files to flash boards via USB.
> >
> > Can be enabled at bsp or distro level with:
> >
> > ```
> > IMAGE_CLASSES +=3D "image_types_uuu"
> > ```
> >
> > Signed-off-by: Anibal Limon <[email protected]>
> > ---
>
> Could you, please, send this as a GitHub PR?
>
> Daiane
> >  classes/image_types_uuu.bbclass | 32 ++++++++++++++++++++++++++++++++
> >  1 file changed, 32 insertions(+)
> >  create mode 100644 classes/image_types_uuu.bbclass
> >
> > diff --git a/classes/image_types_uuu.bbclass
> b/classes/image_types_uuu.bbclass
> > new file mode 100644
> > index 00000000..10de74df
> > --- /dev/null
> > +++ b/classes/image_types_uuu.bbclass
> > @@ -0,0 +1,32 @@
> > +inherit image_types
> > +
> > +UUU_IMAGE_DIR ?=3D "${WORKDIR}/uuuimage"
> > +create_uuu_image() {
> > +       rm -rf ${UUU_IMAGE_DIR}
> > +       mkdir -p ${UUU_IMAGE_DIR}
> > +
> > +       # Copy tools
> > +       install -m0755 "${RECIPE_SYSROOT}${libdir}/uuu/uuu"
> ${UUU_IMAGE_DIR}
> > +       install -m0755
> "${RECIPE_SYSROOT_NATIVE}${datadir}/uuu/emmc_burn_all.lst" ${UUU_IMAGE_DI=
R}
> > +       install -m0755
> "${RECIPE_SYSROOT_NATIVE}${datadir}/uuu/spl_boot.lst" ${UUU_IMAGE_DIR}
> > +
> > +       # Copy images over with filenames needed by upstream
> emmc_burn_all
> > +       # Flash execute (after extract):
> > +       #   sudo ./uuu ./emmc_burn_all.lst
> > +       cp ${DEPLOY_DIR_IMAGE}/imx-boot ${UUU_IMAGE_DIR}/_flash.bin
> > +       cp ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.wic ${UUU_IMAGE_DIR}/_ima=
ge
> > +
> > +       cd ${UUU_IMAGE_DIR}
> > +        ${IMAGE_CMD_TAR} --sparse --numeric-owner
> --transform=3D"s,^\./,," -cf- . | gzip -f -9 -n -c --rsyncable >
> ${IMGDEPLOYDIR}/${IMAGE_NAME}.uuu.tar.gz
> > +       ln -sf ${IMAGE_NAME}.uuu.tar.gz
> ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.uuu.tar.gz
> > +}
> > +
> > +IMAGE_CMD:uuu =3D "create_uuu_image"
> > +do_image_uuu[depends] +=3D "imx-boot:do_deploy"
> > +
> > +IMAGE_TYPEDEP:uuu +=3D "wic"
> > +IMAGE_FSTYPES:append =3D " uuu"
> > +
> > +# uuu-bin is a prebuilt binary suitable to pack
> > +# uuu-native is used to get emmc_burn_all.lst
> > +DEPENDS:append =3D " uuu-bin uuu-native"
> > --
> > 2.39.5
> >
> >
> > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#24973):
> https://lists.yoctoproject.org/g/meta-freescale/message/24973
> > Mute This Topic: https://lists.yoctoproject.org/mt/114625531/5992125
> > Group Owner: [email protected]
> > Unsubscribe: https://lists.yoctoproject.org/g/meta-freescale/unsub [
> [email protected]]
> > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
> >
>

--000000000000023cab063c553393
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">HI Daiane,<div><br></div><div>Right, I got a response from=
 Otavio and there is already a class that does same thing.</div><div><br></=
div><div>Thanks!,</div><div>Anibal</div></div><br><div class=3D"gmail_quote=
 gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Aug 1=
4, 2025 at 6:10=E2=80=AFAM Daiane Angolini &lt;<a href=3D"mailto:daiane.ang=
[email protected]">[email protected]</a>&gt; wrote:<br></div><b=
lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le=
ft:1px solid rgb(204,204,204);padding-left:1ex">On Sat, Aug 9, 2025 at 11:1=
9=E2=80=AFPM Anibal Limon &lt;<a href=3D"mailto:[email protected]" t=
arget=3D"_blank">[email protected]</a>&gt; wrote:<br>
&gt;<br>
&gt; From: Anibal Limon &lt;<a href=3D"mailto:[email protected]" targe=
t=3D"_blank">[email protected]</a>&gt;<br>
&gt;<br>
&gt; Often is needed to generate a tarball with proper image and uuu binary=
,<br>
&gt; and lst files to flash boards via USB.<br>
&gt;<br>
&gt; Can be enabled at bsp or distro level with:<br>
&gt;<br>
&gt; ```<br>
&gt; IMAGE_CLASSES +=3D &quot;image_types_uuu&quot;<br>
&gt; ```<br>
&gt;<br>
&gt; Signed-off-by: Anibal Limon &lt;<a href=3D"mailto:[email protected]=
om" target=3D"_blank">[email protected]</a>&gt;<br>
&gt; ---<br>
<br>
Could you, please, send this as a GitHub PR?<br>
<br>
Daiane<br>
&gt;=C2=A0 classes/image_types_uuu.bbclass | 32 +++++++++++++++++++++++++++=
+++++<br>
&gt;=C2=A0 1 file changed, 32 insertions(+)<br>
&gt;=C2=A0 create mode 100644 classes/image_types_uuu.bbclass<br>
&gt;<br>
&gt; diff --git a/classes/image_types_uuu.bbclass b/classes/image_types_uuu=
.bbclass<br>
&gt; new file mode 100644<br>
&gt; index 00000000..10de74df<br>
&gt; --- /dev/null<br>
&gt; +++ b/classes/image_types_uuu.bbclass<br>
&gt; @@ -0,0 +1,32 @@<br>
&gt; +inherit image_types<br>
&gt; +<br>
&gt; +UUU_IMAGE_DIR ?=3D &quot;${WORKDIR}/uuuimage&quot;<br>
&gt; +create_uuu_image() {<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0rm -rf ${UUU_IMAGE_DIR}<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0mkdir -p ${UUU_IMAGE_DIR}<br>
&gt; +<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0# Copy tools<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0install -m0755 &quot;${RECIPE_SYSROOT}${li=
bdir}/uuu/uuu&quot; ${UUU_IMAGE_DIR}<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0install -m0755 &quot;${RECIPE_SYSROOT_NATI=
VE}${datadir}/uuu/emmc_burn_all.lst&quot; ${UUU_IMAGE_DIR}<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0install -m0755 &quot;${RECIPE_SYSROOT_NATI=
VE}${datadir}/uuu/spl_boot.lst&quot; ${UUU_IMAGE_DIR}<br>
&gt; +<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0# Copy images over with filenames needed b=
y upstream emmc_burn_all<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0# Flash execute (after extract):<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0#=C2=A0 =C2=A0sudo ./uuu ./emmc_burn_all.l=
st<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0cp ${DEPLOY_DIR_IMAGE}/imx-boot ${UUU_IMAG=
E_DIR}/_flash.bin<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0cp ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.wic =
${UUU_IMAGE_DIR}/_image<br>
&gt; +<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0cd ${UUU_IMAGE_DIR}<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0 ${IMAGE_CMD_TAR} --sparse --numeric-owner=
 --transform=3D&quot;s,^\./,,&quot; -cf- . | gzip -f -9 -n -c --rsyncable &=
gt; ${IMGDEPLOYDIR}/${IMAGE_NAME}.uuu.tar.gz<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0ln -sf ${IMAGE_NAME}.uuu.tar.gz ${IMGDEPLO=
YDIR}/${IMAGE_LINK_NAME}.uuu.tar.gz<br>
&gt; +}<br>
&gt; +<br>
&gt; +IMAGE_CMD:uuu =3D &quot;create_uuu_image&quot;<br>
&gt; +do_image_uuu[depends] +=3D &quot;imx-boot:do_deploy&quot;<br>
&gt; +<br>
&gt; +IMAGE_TYPEDEP:uuu +=3D &quot;wic&quot;<br>
&gt; +IMAGE_FSTYPES:append =3D &quot; uuu&quot;<br>
&gt; +<br>
&gt; +# uuu-bin is a prebuilt binary suitable to pack<br>
&gt; +# uuu-native is used to get emmc_burn_all.lst<br>
&gt; +DEPENDS:append =3D &quot; uuu-bin uuu-native&quot;<br>
&gt; --<br>
&gt; 2.39.5<br>
&gt;<br>
&gt;<br>
&gt; -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-<br>
&gt; Links: You receive all messages sent to this group.<br>
&gt; View/Reply Online (#24973): <a href=3D"https://lists.yoctoproject.org/=
g/meta-freescale/message/24973" rel=3D"noreferrer" target=3D"_blank">https:=
//lists.yoctoproject.org/g/meta-freescale/message/24973</a><br>
&gt; Mute This Topic: <a href=3D"https://lists.yoctoproject.org/mt/11462553=
1/5992125" rel=3D"noreferrer" target=3D"_blank">https://lists.yoctoproject.=
org/mt/114625531/5992125</a><br>
&gt; Group Owner: <a href=3D"mailto:meta-freescale%[email protected]=
ct.org" target=3D"_blank">[email protected]</a><b=
r>
&gt; Unsubscribe: <a href=3D"https://lists.yoctoproject.org/g/meta-freescal=
e/unsub" rel=3D"noreferrer" target=3D"_blank">https://lists.yoctoproject.or=
g/g/meta-freescale/unsub</a> [<a href=3D"mailto:[email protected]=
o" target=3D"_blank">[email protected]</a>]<br>
&gt; -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-<br>
&gt;<br>
</blockquote></div>

--000000000000023cab063c553393--