Skip to contentSkip to conversation

Copy tar file without expand it

DISCUSSION Mauro Ziliani 2 participants 2 messages Nov 21, 2018

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

As per the documentation:

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

Add unpack=0.

Ross

Quoted 38 lines · Mauro Ziliani

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
[email protected]
https://lists.yoctoproject.org/listinfo/yocto