All of lore.kernel.org
 help / color / mirror / Atom feed
* SRC_URI when there is a local mirror but no remote repo
@ 2019-02-27 22:59 Edmund Nadolski
  2019-03-06 19:51 ` Edmund Nadolski
  0 siblings, 1 reply; 3+ messages in thread
From: Edmund Nadolski @ 2019-02-27 22:59 UTC (permalink / raw)
  To: yocto

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}



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-07 16:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-27 22:59 SRC_URI when there is a local mirror but no remote repo Edmund Nadolski
2019-03-06 19:51 ` Edmund Nadolski
2019-03-07 16:03   ` Steve Scott

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.