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 <<a href=3D"mailto:daiane.ang= [email protected]">[email protected]</a>> 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 <<a href=3D"mailto:[email protected]" t= arget=3D"_blank">[email protected]</a>> wrote:<br> ><br> > From: Anibal Limon <<a href=3D"mailto:[email protected]" targe= t=3D"_blank">[email protected]</a>><br> ><br> > Often is needed to generate a tarball with proper image and uuu binary= ,<br> > and lst files to flash boards via USB.<br> ><br> > Can be enabled at bsp or distro level with:<br> ><br> > ```<br> > IMAGE_CLASSES +=3D "image_types_uuu"<br> > ```<br> ><br> > Signed-off-by: Anibal Limon <<a href=3D"mailto:[email protected]= om" target=3D"_blank">[email protected]</a>><br> > ---<br> <br> Could you, please, send this as a GitHub PR?<br> <br> Daiane<br> >=C2=A0 classes/image_types_uuu.bbclass | 32 +++++++++++++++++++++++++++= +++++<br> >=C2=A0 1 file changed, 32 insertions(+)<br> >=C2=A0 create mode 100644 classes/image_types_uuu.bbclass<br> ><br> > diff --git a/classes/image_types_uuu.bbclass b/classes/image_types_uuu= .bbclass<br> > new file mode 100644<br> > index 00000000..10de74df<br> > --- /dev/null<br> > +++ b/classes/image_types_uuu.bbclass<br> > @@ -0,0 +1,32 @@<br> > +inherit image_types<br> > +<br> > +UUU_IMAGE_DIR ?=3D "${WORKDIR}/uuuimage"<br> > +create_uuu_image() {<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0rm -rf ${UUU_IMAGE_DIR}<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0mkdir -p ${UUU_IMAGE_DIR}<br> > +<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0# Copy tools<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0install -m0755 "${RECIPE_SYSROOT}${li= bdir}/uuu/uuu" ${UUU_IMAGE_DIR}<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0install -m0755 "${RECIPE_SYSROOT_NATI= VE}${datadir}/uuu/emmc_burn_all.lst" ${UUU_IMAGE_DIR}<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0install -m0755 "${RECIPE_SYSROOT_NATI= VE}${datadir}/uuu/spl_boot.lst" ${UUU_IMAGE_DIR}<br> > +<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0# Copy images over with filenames needed b= y upstream emmc_burn_all<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0# Flash execute (after extract):<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0#=C2=A0 =C2=A0sudo ./uuu ./emmc_burn_all.l= st<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0cp ${DEPLOY_DIR_IMAGE}/imx-boot ${UUU_IMAG= E_DIR}/_flash.bin<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0cp ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.wic = ${UUU_IMAGE_DIR}/_image<br> > +<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0cd ${UUU_IMAGE_DIR}<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 ${IMAGE_CMD_TAR} --sparse --numeric-owner= --transform=3D"s,^\./,," -cf- . | gzip -f -9 -n -c --rsyncable &= gt; ${IMGDEPLOYDIR}/${IMAGE_NAME}.uuu.tar.gz<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0ln -sf ${IMAGE_NAME}.uuu.tar.gz ${IMGDEPLO= YDIR}/${IMAGE_LINK_NAME}.uuu.tar.gz<br> > +}<br> > +<br> > +IMAGE_CMD:uuu =3D "create_uuu_image"<br> > +do_image_uuu[depends] +=3D "imx-boot:do_deploy"<br> > +<br> > +IMAGE_TYPEDEP:uuu +=3D "wic"<br> > +IMAGE_FSTYPES:append =3D " uuu"<br> > +<br> > +# uuu-bin is a prebuilt binary suitable to pack<br> > +# uuu-native is used to get emmc_burn_all.lst<br> > +DEPENDS:append =3D " uuu-bin uuu-native"<br> > --<br> > 2.39.5<br> ><br> ><br> > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-<br> > Links: You receive all messages sent to this group.<br> > 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> > 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> > Group Owner: <a href=3D"mailto:meta-freescale%[email protected]= ct.org" target=3D"_blank">[email protected]</a><b= r> > 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> > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-<br> ><br> </blockquote></div> --000000000000023cab063c553393--