Re: [meta-freescale] [PATCH] classes: Add support image_types_uuu (tarball)
Daiane Angolini <[email protected]> Thu, 14 Aug 2025 09:10:07 -0300
| Newsgroups | org.yoctoproject.lists.meta-freescale |
|---|---|
| Message-ID | <CA+HEL7_dAgH4jMBsp10io7L56Yrp_G=Mogg9oz5hVZZ8nzeZmA@mail.gmail.com> |
On Sat, Aug 9, 2025 at 11:19=E2=80=AFPM Anibal Limon <anibal@limonsoftware.= 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.bb= class > 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_D= IR} > + install -m0755 "${RECIPE_SYSROOT_NATIVE}${datadir}/uuu/emmc_burn_= all.lst" ${UUU_IMAGE_DIR} > + install -m0755 "${RECIPE_SYSROOT_NATIVE}${datadir}/uuu/spl_boot.l= st" ${UUU_IMAGE_DIR} > + > + # Copy images over with filenames needed by upstream emmc_burn_al= l > + # 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}/_image > + > + cd ${UUU_IMAGE_DIR} > + ${IMAGE_CMD_TAR} --sparse --numeric-owner --transform=3D"s,^\./,= ," -cf- . | gzip -f -9 -n -c --rsyncable > ${IMGDEPLOYDIR}/${IMAGE_NAME}.uu= u.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-freesca= le/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 [daian= [email protected]] > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- >