md.jamal
md.jamal

Reputation: 4517

How to specify git branch in Yocto recipe

I have two branches in my git repository. When I specify branch it gives me error.

Exception: bb.fetch2.MalformedUrl: The URL: 'branch=master;' is invalid and cannot be interpreted

Following is SRC_URI in my recipe

SRC_URI = "git://github.com/abc/abc.git; branch=master;"

If I don't specify branch then there is no issue.

What's the mistake in SRC_URI, I have referred other recipe's SRC_URI and they also follow the same syntax

Upvotes: 3

Views: 14537

Answers (1)

Khem
Khem

Reputation: 1257

There is a spurious space, (before specifying branch= please use

SRC_URI = "git://github.com/abc/abc.git;branch=master"

For more details see Bitbake Documentation

Upvotes: 5

Related Questions