How to specify git branch in Yocto recipe

Viewed 6118

I have two branches in my git repository. When i specify branch it give 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

1 Answers

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

Related