[yocto] Proper way to rename a downloaded file in SRC_URI

Paul Eggleton paul.eggleton at linux.intel.com
Tue Jul 18 09:47:17 PDT 2017


Hi Jimi,

On Tuesday, 18 July 2017 6:40:52 PM CEST Jimi Damon wrote:
> I have a recipe that I built for building jzmq, however one of the 
> issues I have is with the naming of the release files from the github site.
> 
> Unlike czmq which has downloads ( zip and tar.gz ) that are named 
> czmq-${PV}.tar.gz, the downloads from jzmq are just called v${PV}.tar.gz.
> 
> How can I rename this file upon download so that the filename is in fact 
> unique to this package ?

Use the downloadfilename parameter e.g. (made up URL):

SRC_URI = "http://github.com/jzmq/download/v${PV}.tar.gz;downloadfilename=${PN}-${PV}.tar.gz"

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list