SRC_URI = "file://${TOPDIR}/../local_mirror/example-1.0.0.src.tar.gz" should work, without need for do_unpack.
What error are you getting? > -----Original Message----- > From: yocto-boun...@yoctoproject.org [mailto:yocto- > boun...@yoctoproject.org] On Behalf Of Edmund Nadolski > Sent: Wednesday, March 06, 2019 11:52 AM > To: Edmund Nadolski <edmund.nadol...@microsoft.com>; > yocto@yoctoproject.org > Subject: Re: [yocto] SRC_URI when there is a local mirror but no remote repo > > Friendly ping, any thoughts on this? > > One thing I have noted - without the remote url, bitbake will not link the file > into DL_DIR or create a *.done file for it. > > TIA, > Ed > > > -----Original Message----- > > From: yocto-boun...@yoctoproject.org <yocto- > boun...@yoctoproject.org> > > On Behalf Of Edmund Nadolski > > Sent: Wednesday, February 27, 2019 3:00 PM > > To: yocto@yoctoproject.org > > Subject: [yocto] SRC_URI when there is a local mirror but no remote > > repo > > > > Hi, > > > > Does Yocto/Bitbake support a way to set SRC_URI in a recipe when there > > is no corresponding upstream remote (git://, https://, etc.) for a *.tar.gz > file? > > IOW, I've configured for own_mirrors and set BB_NO_NETWORK=1, and > my > > *.tar.gz file only lives in the local_mirror directory. > > > > It looks to me like file:// thinks that the file always lives under ${S}. > > > > TIA, > > Ed > > > > ... > > # functional workaround > > SRC_URI = " http://some.example.com/example-1.0.0.src.tar.gz" > > ... > > > > do_unpack () { > > # Unpack straight from the local mirror since there is no remote > > tar xzf ${TOPDIR}/../local_mirror/example-1.0.0.src.tar.gz -C > > ${S} > > > > do_install () { > > install -d ${D}/${MY_DIR} > > install -m 0744 ${S}/example/example.sh ${D}/${MY_DIR} > > > > -- > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto