OpenEmbedded is a mighty build system, however it’s documentation is such poor that it is often a challenge to make simple thing working.

Today I spent several hours trying to find out how to make it to take package sources from a local git repository. Problem was that it tried to download an archive over http instead.

Here is a snippet from recipe that works.

# Need these two lines to stop OE's attempts to fetch local git repo
# from http mirror
CVS_TARBALL_STASH = ""
SRC_TARBALL_STASH = ""

SRC_URI = "git:///path/to/local/repo;protocol=file;branch=master"
SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git"
© 2011 yoush.homelinux.org Suffusion theme by Sayontan Sinha