Discussion:
[yocto] Copy tar file without expand it
Mauro Ziliani
2018-11-21 18:12:07 UTC
Permalink
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

--
Burton, Ross
2018-11-21 18:16:43 UTC
Permalink
As per the documentation:

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

Add unpack=0.

Ross
Post by 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
https://lists.yoctoproject.org/listinfo/yocto
--

Loading...