Search code examples
yoctobitbakerecipe

forcing a tar source to be downloaded locally rather remote one from bbappend file


I have a .bb file which has the following snippet

SRC_URI = "ftp://..... \
        "

I cannot change this recipe file. So i want to create a .bbappend file for this recipe and want bitbake to fetch the source (tar) from my filesytem instead from the internet (via ftp).

The fetch from my local drive works if i delete "ftp.." entry in the recipe file. But unfortunately i cannot change the recipe file.

Has any one got any idea how i can achieve this.

Thanks a lot in advance.


Solution

  • You can try to use remove bitbake override, like this:

    SRC_URI_remove = "ftp://....."
    

    But it's strange that you need to change SRC_URI in that way. If you're not changing the file contents, you should be using mirrors for your source files, and if you're changing things, it's more appropriate to append a patch to your SRC_URI.