[yocto] [poky/classes] [PATCH] new alternatesrc.bbclass

Koehler, Yannick (HPN Aruba) yannick.koehler at hpe.com
Thu May 18 15:49:20 PDT 2017


The alternatesrc is also way faster than managing local layer just to re-specify the git location.


The ALTERNATESRC can be automatically calulated such as


  inherit alternatesrc

  ALTERNATESRC="$YOURROOT/$P"


As such all recipe looks the same, and if you do git clone URI $YOURROOT/$P locally, the yocto build use your code, you fix, commit, push, then you can keep the folder there or you can remove it.  If you do remove it, next build use your git URI as before and you are testing that your previous push made it to the server.


Way faster than changing recipe in private layer or not.


In any case, the idea of this system is to be flexible and sharing it with you should enable other to gain development speed from that.

________________________________
From: yocto-bounces at yoctoproject.org <yocto-bounces at yoctoproject.org> on behalf of Koehler, Yannick (HPN Aruba)
Sent: May 18, 2017 6:12:13 PM
To: Joshua Watt
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] [poky/classes] [PATCH] new alternatesrc.bbclass

Sounds great, but I have to deal with à team of buildroot beliver, as such, askibg dev to setup their own layrr manually is too complexe for them.  With my solution they do not have to do anything on their setup.

Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: Joshua Watt <jpewhacker at gmail.com>
Sent: Thursday, May 18, 2017 5:37:29 PM
To: Koehler, Yannick (HPN Aruba)
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] [poky/classes] [PATCH] new alternatesrc.bbclass

On Thu, May 18, 2017 at 1:11 PM, Koehler, Yannick (HPN Aruba)
<yannick.koehler at hpe.com> wrote:
> In our environment, we have package that are store inside git in their own repo.  Using SRC_URI we fetch the code and build it from the git repo itself and all is fine.  When developer wants to change the content of the package, they had to clone, change, commit, push and only then they were able to test because yocto recipe clone/fetch from the git server only.
FWIW, our devs keep their own private bitbake layers that they add
locally to bblayers.conf. In these layers they add .bbappends that
override the SRC_URI for recipes they are interested in to point at
local repositories.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170518/b72c82bc/attachment.html>


More information about the yocto mailing list