Hi Richard,

Many thanks for the fast answer.

> > I’m switching from buildroot to yocto and trying to figure out how to 
> > do the equivalent of a POST_BUILD_SCRIPT.
> >
> > Indeed I want to format the images built in a specific format for latter 
> > use and CI needs.
>
> In OE, the equivalent for that is probably the image types code.
> See 
> http://git.yoctoproject.org/cgit.cgi/poky/tree/meta/classes/image_types.bbclass
>
> You can define your own custom image types to extend the system. Some of our 
> defaults are quite simple (tar), some are quite complex (wic has its own 
> bbclass).

I said image, but it was probably not the best word, I just want to make a 
tarball of the generated image + adding some file in it.

Here's the complete file with the job :

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI += "file://nallino-custom-params.txt"
SRC_URI += "file://configuration_instruction_to_do_on_GUF.txt"

do_release_ycn() {

    rm -rf ${DEPLOY_DIR_IMAGE}/ycn_release
    mkdir -p ${DEPLOY_DIR_IMAGE}/ycn_release/overlays
    cp ${DEPLOY_DIR_IMAGE}/fng-install.sh ${DEPLOY_DIR_IMAGE}/ycn_release
    cp ${DEPLOY_DIR_IMAGE}/ycn-image-imx6ullguf.tar.gz 
${DEPLOY_DIR_IMAGE}/ycn_release/guf-image-imx6ullguf.tar.gz
    cp ${DEPLOY_DIR_IMAGE}/*.dtbo ${DEPLOY_DIR_IMAGE}/ycn_release/overlays
    cp ${WORKDIR}/nallino-custom-params.txt ${DEPLOY_DIR_IMAGE}/ycn_release/
    cp ${WORKDIR}/configuration_instruction_to_do_on_GUF.txt 
${DEPLOY_DIR_IMAGE}/ycn_release/
    tar -czf ${DEPLOY_DIR_IMAGE}/ycn_release.tar.gz 
${DEPLOY_DIR_IMAGE}/ycn_release

}
addtask release_ycn after do_image_complete after do_deploy_kernelmodules

>
> > I’ve also tried to use IMAGE_POSTPROCESS_COMMAND without much success 
> > since it wasn’t running at the proper moment.

> When is "the right moment"? :)

The right moment, is at the very end of bitbake, indeed I want the job to be 
the overall last job!

Thanks again, 

Yann
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54017): https://lists.yoctoproject.org/g/yocto/message/54017
Mute This Topic: https://lists.yoctoproject.org/mt/83888533/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to