All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-freesclae] Replace/change/append SRC_URI for kernel git URL.
@ 2013-11-06  8:12 Janis Coders
  2013-11-06 11:46 ` Otavio Salvador
  0 siblings, 1 reply; 4+ messages in thread
From: Janis Coders @ 2013-11-06  8:12 UTC (permalink / raw)
  To: meta-freescale

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}"


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-freesclae] Replace/change/append SRC_URI for kernel git URL.
  2013-11-06  8:12 [meta-freesclae] Replace/change/append SRC_URI for kernel git URL Janis Coders
@ 2013-11-06 11:46 ` Otavio Salvador
  2013-11-08 10:35   ` Janis Coders
  0 siblings, 1 reply; 4+ messages in thread
From: Otavio Salvador @ 2013-11-06 11:46 UTC (permalink / raw)
  To: Janis Coders; +Cc: meta-freescale

On Wed, Nov 6, 2013 at 6:12 AM, Janis Coders <janis.coders@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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-freesclae] Replace/change/append SRC_URI for kernel git URL.
  2013-11-06 11:46 ` Otavio Salvador
@ 2013-11-08 10:35   ` Janis Coders
  2013-11-08 11:12     ` Otavio Salvador
  0 siblings, 1 reply; 4+ messages in thread
From: Janis Coders @ 2013-11-08 10:35 UTC (permalink / raw)
  To: Otavio Salvador, meta-freescale

Hmm seems like this worked in the end too:
NEW_SRC_URI = "git://X.X.X.X/git/be-kernel.git;protocol=git;branch=yyyyyyy"
SRC_URI_prepend_mx5 = "${NEW_SRC_URI}"

My git URI is now first in the list and looks like then is priority. Not 
really sure what bitbake does on multiple git sources. Seems like
the first one is only used. Is that right?

On 11/06/2013 01:46 PM, Otavio Salvador wrote:
> On Wed, Nov 6, 2013 at 6:12 AM, Janis Coders <janis.coders@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 ;-)
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-freesclae] Replace/change/append SRC_URI for kernel git URL.
  2013-11-08 10:35   ` Janis Coders
@ 2013-11-08 11:12     ` Otavio Salvador
  0 siblings, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2013-11-08 11:12 UTC (permalink / raw)
  To: Janis Coders; +Cc: meta-freescale

On Fri, Nov 8, 2013 at 8:35 AM, Janis Coders <janis.coders@gmail.com> wrote:
> Hmm seems like this worked in the end too:
>
> NEW_SRC_URI = "git://X.X.X.X/git/be-kernel.git;protocol=git;branch=yyyyyyy"
> SRC_URI_prepend_mx5 = "${NEW_SRC_URI}"
>
> My git URI is now first in the list and looks like then is priority. Not
> really sure what bitbake does on multiple git sources. Seems like
> the first one is only used. Is that right?

No; it will unpack the first but download both.

-- 
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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-08 11:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-06  8:12 [meta-freesclae] Replace/change/append SRC_URI for kernel git URL Janis Coders
2013-11-06 11:46 ` Otavio Salvador
2013-11-08 10:35   ` Janis Coders
2013-11-08 11:12     ` Otavio Salvador

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.