[meta-freescale] [meta-freesclae] Replace/change/append SRC_URI for kernel git URL.

Otavio Salvador otavio at ossystems.com.br
Wed Nov 6 03:46:46 PST 2013

On Wed, Nov 6, 2013 at 6:12 AM, Janis Coders <janis.coders at gmail.com> wrote:
> Hi, I am trying to append SRC_URI of linux-imx_2.6.35.3.bb recipe, because
> we have our own git repository. The problem is that I don't want to override
> the SRC_URI completely, but only change the git repo address to our server.
> Does Yocto support it in some pretty way? (because for now we have to use
> this regex syntax in .bbapend file, which works, but isn't pretty):
> NEW_SRC_URI = "git://X.X.X.X/git/be-kernel.git;protocol=git;branch=yyyyyyy"
> TMP_SRC_URI := '${@bb.utils.re.sub("git://[^\\s]*", d.getVar("NEW_SRC_URI",
> True), d.getVar("SRC_URI", True))}'
> SRC_URI_mx5 = "${TMP_SRC_URI}"

I'd write one linux-mycompany recipe or so; but you can use:

oe.util.str_filter_out for it ;-)

Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

More information about the meta-freescale mailing list