From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-f50.google.com (mail-la0-f50.google.com [209.85.215.50]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id DCE74E01830 for ; Fri, 8 Nov 2013 02:35:23 -0800 (PST) Received: by mail-la0-f50.google.com with SMTP id eo20so1543021lab.23 for ; Fri, 08 Nov 2013 02:35:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=WO6+9AIxqVDJw9suCCe9a68RFWwGtMz5ZK7N6lGN3RA=; b=m18XfTD5bg6f8PhvMBPLwbEj1I+wws3kOcg0n+pO+XURszrM/eDrC3KtKrG6L74uYq 26DQY1QuiaxnRyfWws8cQlL03Qjv9oyBrIE/XZ/MmRTe64N52l5n/Uev/WFfadjAZLZ7 UT9DddmuKpL60rhmtFB647yoSVVDsA++BtZjbfw4YQ2UxEnoc6+5ERa4NkBYcSK/4zR/ VWVKAHOb1kixBMIWGSIVZrAIyFzI5m8KN+WIpBgvDyXWZXi1YPN7Di56bk1bbtFyEv2H WhTqE5AtEf6Jzb/EcjhZggkvo6Athd0j57dYa9JwzdCXpIFp22V4b9gYHAVWbapHP5fX pEyQ== X-Received: by 10.112.234.168 with SMTP id uf8mr834062lbc.35.1383906922345; Fri, 08 Nov 2013 02:35:22 -0800 (PST) Received: from [10.0.1.5] ([80.232.254.7]) by mx.google.com with ESMTPSA id ew3sm6312621lac.1.2013.11.08.02.35.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Nov 2013 02:35:20 -0800 (PST) Message-ID: <527CBE69.30501@gmail.com> Date: Fri, 08 Nov 2013 12:35:21 +0200 From: Janis Coders User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Otavio Salvador , "meta-freescale@yoctoproject.org" References: <5279F9EF.5040403@gmail.com> In-Reply-To: Subject: Re: [meta-freesclae] Replace/change/append SRC_URI for kernel git URL. X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Nov 2013 10:35:25 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 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 ;-) >