Skip to contentSkip to conversation

recipe to always fetch latest from SCM

DISCUSSION Vitus Jensen 2 participants 3 messages Apr 7, 2010

lore
Share & tools
lore
#0 lore raw

Hello!

What is the best way to code a recipe which always fetches HEAD from a SCM? Without accessing mirror servers first?

For some internal packages which are still WIP I would like to fetch the newest sourcecode from a git server whenever I do a "-c clean" and rebuild. I've experimented with AUTOREV and SRCREV but without adding "tag=HEAD" this fails and when I add HEAD bitbake refers to a tar.bz2 built some days ago. Maybe related to that I would like to fetch from a branch?

Below my latest try, this tries to fetch revision "1" (?) from git :-(

bitbake version 1.8.18
openembedded stable branch

----------------
PV = "0.0.0+gitr${SRCREV}"
PR = "r0"

SRC_URI = \
	"git://[email protected]/prog.git;protocol=ssh+git;branch=devel \
        "

S = "${WORKDIR}/git"

inherit cmake
----------------

Any pointers? I've searched the wiki and existing recipes but this way to fetch is obviously uncommon for public recipes.

Bye,
Vitus

Signature · 2 lines
Vitus Jensen, Hannover, Germany, Universe (current)
pgp public key available from keyservers
#1 lore raw

Dnia środa, 7 kwietnia 2010 o 14:00:47 Vitus Jensen napisał(a):

Quoted 2 lines

What is the best way to code a recipe which always fetches HEAD from a SCM?

SRCREV = "${AUTOREV}"

Quoted 1 line

Without accessing mirror servers first?

CVS_TARBALL_STASH = ""
SRC_TARBALL_STASH = ""

Those two should make build try to use latest version each time.

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
#2 lore raw
Quoted 6 lines · Marcin Juszkiewicz

Dnia środa, 7 kwietnia 2010 o 14:00:47 Vitus Jensen napisał(a):

Quoted 2 lines

What is the best way to code a recipe which always fetches HEAD from a SCM?

SRCREV = "${AUTOREV}"

Hurray!

Quoted 4 lines
Quoted 1 line

Without accessing mirror servers first?

CVS_TARBALL_STASH = ""
SRC_TARBALL_STASH = ""

CVS_xxx? Test, yes, strange though.

Quoted 1 line

Those two should make build try to use latest version each time.

Thank you for your help, it does!

For reference: this fills the download directory with archives for every revision, one has to clean up regulary.

Bye,
Vitus

Signature · 2 lines
Vitus Jensen, Hannover, Germany, Universe (current)
pgp public key available from keyservers