[yocto] yocto query on SR_URI creation
Paul Eggleton
paul.eggleton at linux.intel.com
Tue Sep 17 02:27:59 PDT 2013
On Tuesday 17 September 2013 14:35:53 Rohit2 Jindal wrote:
> SRC_URI =
> "git://ep-code.xtz.com/u-boot.git;branch=xxx-ep-20130823-3.0-alpha;protocol
> =ssh;subpath=uboot" SRC_URI =
> "git://ep-code.xtz.com/x-load.git;branch=xxx-ep-20130823-3.0-alpha;protocol
> =ssh;subpath=xload"
There are several problems with the above:
1) In my reply I mentioned that subpath is not the right option to use. Use
destsuffix instead.
2) You can't just do SRC_URI = twice, the second time it will just overwrite
the value from the first statement.
3) You'll need to specify name= for each item and then specify SRCREV for each
one ("${AUTOREV}" if you want to use the latest on the specified branch).
So you'll need something like:
SRC_URI = "git://ep-code.xtz.com/u-boot.git;branch=xxx-ep-20130823-3.0-alpha;protocol=ssh;name=uboot;destsuffix=git/uboot \
git://ep-code.xtz.com/x-load.git;branch=xxx-ep-20130823-3.0-alpha;protocol=ssh;name=xload;destsuffix=git/xload"
SRCREV_uboot = "${AUTOREV}"
SRCREV_xload = "${AUTOREV}"
Don't forget also to set S = "${WORKDIR}/git" as well.
Note that if you want to use ${SRCPV} in PV to get the source revision in
the version, you'll also need to set SRCREV_FORMAT to tell the system
how to compose SRCPV from the two SRCREV values e.g.
SRCREV_FORMAT = "uboot_xload"
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the yocto
mailing list