SRC_URI file://f.tar and destination


Mauro Ziliani
 

Hi all.

I'd like to explod a tar file into subdirectory of source file.


The recipe fetch the original source from a git repos.

I make a tar of folder I'd like to add to the original sources.


SRC_URI := "\
    git://git.myserver.com/project.git \
    file://added_folder.tar \
"

# S is ${WORKDIR}/git


Now added_folder.tar is exploded in ${WORKDIR} but I'd like to explod it in ${WORKDIR}/git


There is some parameter for file:// fetcher?


Best regards,

  MZ


Quentin Schulz
 

Hi Mauro,

On 10/5/22 21:37, Mauro Ziliani wrote:
Hi all.
I'd like to explod a tar file into subdirectory of source file.
The recipe fetch the original source from a git repos.
I make a tar of folder I'd like to add to the original sources.
SRC_URI := "\
    git://git.myserver.com/project.git \
    file://added_folder.tar \
"
# S is ${WORKDIR}/git
Now added_folder.tar is exploded in ${WORKDIR} but I'd like to explod it in ${WORKDIR}/git
There is some parameter for file:// fetcher?
Can you try ;subdir= parameter?

c.f. https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-fetching.html#the-unpack

Cheers,
Quentin


Mauro Ziliani
 

Thank you Quentin.

This is the right parameter


Best regards,

  MZ

Il 06/10/22 09:47, Quentin Schulz via lists.yoctoproject.org ha scritto:
Hi Mauro,

On 10/5/22 21:37, Mauro Ziliani wrote:
Hi all.

I'd like to explod a tar file into subdirectory of source file.


The recipe fetch the original source from a git repos.

I make a tar of folder I'd like to add to the original sources.


SRC_URI := "\
     git://git.myserver.com/project.git \
     file://added_folder.tar \
"

# S is ${WORKDIR}/git


Now added_folder.tar is exploded in ${WORKDIR} but I'd like to explod it in ${WORKDIR}/git


There is some parameter for file:// fetcher?
Can you try ;subdir= parameter?

c.f. https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-fetching.html#the-unpack

Cheers,
Quentin