[Openembedded-users] Local builds using SRC_URI = "file:..."

Arigead captain.deadly at gmail.com
Thu Aug 19 07:20:07 UTC 2010


Hello all,
    I've been trying for a while to get local builds working using OE
and failing miserably. Basically I took an existing recipe which pulled
the code from a git Repo and replaced the SRC_URI to be a local
directory where I'd pulled the code to locally. The result was that
every time I tried to build I was told that there was no configure.ac in
the working directory.

Obviously I've misunderstood the workings of SRC_URI="file:..." as I'd
assumed that the contents of that directory were copied to the working
directory and then the build took place. This I have found is not the
case. I got around the issue by adding my own do_fetch to my recipe in
the local collection:

SRC_URI =
"file:///home/john/programming/openmoko/shr/shr-unstable/local/libphone-ui-shr"
MY_SRC_URI =
"/home/john/programming/openmoko/shr/shr-unstable/local/libphone-ui-shr"
S = "${WORKDIR}/libphone-ui-shr"

do_fetch() {
	cp -r ${MY_SRC_URI} ${S}
}

Once I add that everything seems to work perfectly.

So as I say I misunderstand the workings of the SRC_URI file so I wonder
could anybody explain to me how this should be working?

Thanks in advance




More information about the Openembedded-users mailing list