Discussion:
[yocto] clone multiple git source repository from single recipe file
Anooj Gopi
2015-07-17 09:32:01 UTC
Permalink
Hello All,

How can we checkout two git repo into work directory?

In SVN we do something like below:

SRC_URI = "svn://
example.com/trunk/OneDirectory;module=SubDirectory1;protocol=http;user=theuser;pswd=thepassword
\
svn://
example.com/trunk/OneDirectory;module=SubDirectory2;protocol=http;user=theuser;pswd=thepassword
"

SRCREV_default_pn-${BPN} = "svn-rev-no"

But now I would like to clone two git repository, which of course have
different hash value to be checked-out. Is it possible to do that in yocto?

Best Regards,
Anooj Gopi
Burton, Ross
2015-07-17 10:19:01 UTC
Permalink
Post by Anooj Gopi
But now I would like to clone two git repository, which of course have
different hash value to be checked-out. Is it possible to do that in yocto?
Almost the same syntax. I'm not sure why you're using pn-${BPN} notation
in a recipe, but this is from gstreamer1.0-omx:

SRC_URI = " \
git://
anongit.freedesktop.org/gstreamer/gst-omx;branch=master;name=gst-omx \
git://
anongit.freedesktop.org/gstreamer/common;destsuffix=git/common;branch=master;name=common
"

SRCREV_gst-omx = "a2db76b048db278ef0aa798e106b7594264e06c0"
SRCREV_common = "5edcd857b2107cd8b78c16232dd10877513ec157"

Basically, give each URI a name, and then use the names in SRCREV overrides.

Ross

Loading...