Openembedded Core Discussions
 help / color / mirror / Atom feed
* RFC: exposing information about the SRC_URI(s)/branch via buildhistory (or similar mechanism)
@ 2019-08-01 16:51 chris.laplante
  2019-08-01 16:59 ` [bitbake-devel] " Alexander Kanavin
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: chris.laplante @ 2019-08-01 16:51 UTC (permalink / raw)
  To: Openembedded-core@lists.openembedded.org,
	bitbake-devel@lists.openembedded.org

[-- Attachment #1: Type: text/plain, Size: 1472 bytes --]

Hello all,

Most of my team's closed source recipes use something like the following:

SRC_URI = "git://git@host/path;protocol=ssh;branch=${BRANCH}"
SRCREV = "${AUTOREV}"
BRANCH ??= "master"

(BRANCH is just a convention we use to make the SRC_URI branch easy to override.)

This makes nightly builds convenient because we always build from the latest. For release versions, we can use SRCREV_pn-recipe and/or BRANCH_pn-recipe overrides in local.conf. We get the SRCREV overrides using buildhistory-collect-srcrevs. But buildhistory has no notion or tracking of SRC_URI or branches, so currently we use a script that generates the BRANCH overrides.

I'm interesting in adding SRC_URI support to buildhistory (or a similar mechanism), and would like to get some input.

Option 1) The easiest way, I think, is to just generate SRC_URI_pn- overrides with variable expansion.

Option 2) I think it could be useful to introduce BRANCH as a convention. Currently the "branch" SRC_URI parameter implicitly defaults to "master". I could foresee it implicitly defaulting to "${BRANCH}", with BRANCH ??= "master" to replicate existing functionality. To handle multiple source-controlled SRC_URIs, we'd have to do something similar to how SRCREV has a "name" override. With this option, I wouldn't think it would be necessary to generate SRC_URI overrides; just BRANCH overrides.

Option 3) A combination of 1 and 2?

Looking forward to input.

Thanks,
Chris

[-- Attachment #2: Type: text/html, Size: 4612 bytes --]

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

end of thread, other threads:[~2019-08-16 15:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-01 16:51 RFC: exposing information about the SRC_URI(s)/branch via buildhistory (or similar mechanism) chris.laplante
2019-08-01 16:59 ` [bitbake-devel] " Alexander Kanavin
2019-08-01 17:02   ` chris.laplante
2019-08-01 17:01 ` Mark Hatle
2019-08-01 18:03   ` UNVERIFIED SENDER " chris.laplante
2019-08-01 18:27     ` Mark Hatle
2019-08-01 20:18       ` UNVERIFIED SENDER " chris.laplante
2019-08-02  7:37 ` Mikko.Rapeli
2019-08-02 13:58   ` William Bourque
2019-08-02 14:03     ` chris.laplante
2019-08-02 14:45   ` Richard Purdie
2019-08-02 15:14     ` chris.laplante
2019-08-16 15:03       ` [bitbake-devel] " chris.laplante

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox