Skip to contentSkip to conversation

Two recipes with the same file name for the SRC_URI

DISCUSSION Lukas Bulwahn 2 participants 3 messages Feb 1, 2013

lore
Share & tools
lore
#0 lore raw

Hi all,

I ran into the following issue with bitbake:
I have two recipes, where the SRC_URI of both recipes have the same file name (but of course, different URLs), e.g. SRC_URI = "http://foo.com/src.tar.gz" and SRC_URI = "http://bar.com/src.tar.gz".

Now when I want to fetch both of them, bitbake does not download both of them because they have the same name, and it assumes the file is already downloaded if one of the files is downloaded. Is there an option to set the local file name after downloading in the recipe? The OpenEmbedded Manual does not mention any.

Or is there another way to solve the problem? Using Google and searching through the manual did not help me.

Lukas

#1 lore raw
Quoted 5 lines · Lukas Bulwahn

I ran into the following issue with bitbake:
I have two recipes, where the SRC_URI of both recipes have the same file name (but of course, different URLs), e.g. SRC_URI = "http://foo.com/src.tar.gz" and SRC_URI = "http://bar.com/src.tar.gz".

Quoted 8 lines

Now when I want to fetch both of them, bitbake does not download both of them because they have the same name, and it assumes the file is already downloaded if one of the files is downloaded.
Is there an option to set the local file name after downloading in the recipe? The OpenEmbedded Manual does not mention any.

Or is there another way to solve the problem? Using Google and searching through the manual did not help me.

Try the "downloadfilename" option, i.e.
http://bar.com/src.tar.gz;downloadfilename=bar-src.tar.gz"

(if this works, it should be added to the manual)

Ross