[yocto] Copy tar file without expand it

Burton, Ross ross.burton at intel.com
Wed Nov 21 10:16:43 PST 2018


As per the documentation:

https://www.yoctoproject.org/docs/latest/bitbake-user-manual/bitbake-user-manual.html#bb-the-unpack

Add unpack=0.

Ross
On Wed, 21 Nov 2018 at 18:12, Mauro Ziliani <mauro at faresoftware.it> wrote:
>
> Hi all.
>
> I need to copy a tar file from 'files' subdir of my recipe into
> /upgrade_file in the file image.
>
> I don't need to expand it, only copy.
>
>
> How can I do that?
>
>
> in my recipe I put but myfile.tar will be exploded.
>
>
> SRC_URI += " \
>
>     file://myfile.tar \
>
> "
>
> do_install_append() {
>
>     install -m 0644 ${WORKDIR}/myfile.tar ${D}/upgrade_file
>
> }
>
>
> There some options to pass in SRC_URI to avoid tar expansion?
>
>
> MZ
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


More information about the yocto mailing list