Skip to contentSkip to conversation

u-boot: Enable devupstream

PATCH In review Peter Hoyes 3 participants 4 messages May 2, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 u-boot: Enable devupstream

To enable downstream testing of the bleeding edge of U-Boot, add devupstream to the recipe, with SRCREV set to automatically track the latest revision.

---
 meta/recipes-bsp/u-boot/u-boot_2024.04.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-bsp/u-boot/u-boot_2024.04.bb +3 -0
index b15bcaa818..dc2e2da8ae 100644
@@ -3,3 +3,6 @@ require u-boot.inc
 
 DEPENDS += "bc-native dtc-native python3-pyelftools-native"
 
+BBCLASSEXTEND += "devupstream:target"
+SRCREV:class-devupstream = "${AUTOREV}"
+PV:class-devupstream = "dev+git"
Signature · 1 line
2.34.1
#1 lore raw
Quoted 18 lines · Peter Hoyes via lists.openembedded.org

To enable downstream testing of the bleeding edge of U-Boot, add devupstream to the recipe, with SRCREV set to automatically track the latest revision.

---
 meta/recipes-bsp/u-boot/u-boot_2024.04.bb | 3 +++

 1 file changed, 3 insertions(+)
meta/recipes-bsp/u-boot/u-boot_2024.04.bb +0 -0
index b15bcaa818..dc2e2da8ae 100644
@@ -3,3 +3,6 @@ require u-boot.inc


 DEPENDS += "bc-native dtc-native python3-pyelftools-native"

meta/recipes-bsp/u-boot/u-boot_2024.04.bb require u-boot.inc · line 8

Quoted 3 lines
meta/recipes-bsp/u-boot/u-boot_2024.04.bb +3 -0
+BBCLASSEXTEND += "devupstream:target"
+SRCREV:class-devupstream = "${AUTOREV}"
+PV:class-devupstream = "dev+git"

Doesn't that mean parsing would hit the network by default every time?

Cheers,

Richard

#2 lore raw
Quoted 5 lines · Richard Purdie via lists.openembedded.org

meta/recipes-bsp/u-boot/u-boot_2024.04.bb require u-boot.inc · line 8

Quoted 3 lines
meta/recipes-bsp/u-boot/u-boot_2024.04.bb +3 -0
+BBCLASSEXTEND += "devupstream:target"
+SRCREV:class-devupstream = "${AUTOREV}"
+PV:class-devupstream = "dev+git"

Doesn't that mean parsing would hit the network by default every time?

I _believe_ it only hits when the devupstream variation is actually picked. Is this acceptable?

Ross

#3 lore raw
Quoted 11 lines · Ross Burton
Quoted 6 lines · Richard Purdie via lists.openembedded.org

meta/recipes-bsp/u-boot/u-boot_2024.04.bb require u-boot.inc · line 8

Quoted 3 lines
meta/recipes-bsp/u-boot/u-boot_2024.04.bb +3 -0
+BBCLASSEXTEND += "devupstream:target"
+SRCREV:class-devupstream = "${AUTOREV}"
+PV:class-devupstream = "dev+git"

Doesn't that mean parsing would hit the network by default every time?

I _believe_ it only hits when the devupstream variation is actually picked.  Is this acceptable?

I believe you're wrong ;-)

I applied this patch and the first thing I'd note is that:

$ bitbake -p
Parsing of 991 .bb files complete (990 cached, 1 parsed). 1969 targets, 50 skipped, 0 masked, 0 errors.
$ bitbake -p
Parsing of 991 .bb files complete (990 cached, 1 parsed). 1969 targets, 50 skipped, 0 masked, 0 errors.

i.e. it is *always* now parsing one recipe, you can guess which.

I then tried "bitbake -pDDD" which in the output includes:

DEBUG: /media/build/poky/meta/recipes-bsp/u-boot/u-boot_2024.04.bb: Fetcher accessed the network with the command git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all ls-remote https://source.denx.de/u-boot/u-boot.git

so I believe this is accessing the network on every parse.

Cheers,

Richard