Skip to contentSkip to conversation

More changes for git fetchers

PATCH In review Gary Thomas 2 participants 4 messages Dec 6, 2013 – Dec 7, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 More changes for git fetchers

Recipes now need to explicitly mention the branch used for git repositories. These changes reflect this, allowing for the branch to be overridden by .bbappend files

---
 recipes-bsp/u-boot/u-boot-boundary_git.bb        |    3 ++-
 recipes-bsp/u-boot/u-boot-script-boundary_git.bb |    3 ++-
 recipes-kernel/linux/linux-boundary_3.0.35.bb    |    4 ++--
 3 files changed, 6 insertions(+), 4 deletions(-)
recipes-bsp/u-boot/u-boot-boundary_git.bb +2 -1
index f612b3f..323cfdf 100644
@@ -9,7 +9,8 @@ PROVIDES = "u-boot"
 PV = "v2013.07+git${SRCPV}"
 
 SRCREV = "f89bc066db0569008418fac1a0408a9a57f2232f"
-SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git"
+SRCBRANCH = "production-before-20131107"
+SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git;branch=${SRCBRANCH}"
 
 S = "${WORKDIR}/git"
 
recipes-bsp/u-boot/u-boot-script-boundary_git.bb +2 -1
index 06ad438..d14e094 100644
@@ -6,7 +6,8 @@ DEPENDS = "u-boot-mkimage-native"
 PV = "v2013.01+git${SRCPV}"
 
 SRCREV = "f89bc066db0569008418fac1a0408a9a57f2232f"
-SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git"
+SRCBRANCH = "production-before-20131107"
+SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git;branch=${SRCBRANCH}"
 
 S = "${WORKDIR}/git"
 
recipes-kernel/linux/linux-boundary_3.0.35.bb +2 -2
index 7875f93..872cab2 100644
@@ -5,12 +5,12 @@ require recipes-kernel/linux/linux-imx.inc
 
 DESCRIPTION = "Linux kernel for Boundary Devices boards"
 
-SRC_URI = "git://github.com/boundarydevices/linux-imx6.git \
+SRC_URI = "git://github.com/boundarydevices/linux-imx6.git;branch=${SRCBRANCH} \
            file://defconfig"
 
 LOCALVERSION = "-4.1.0+yocto"
 SRCREV = "58099389255add7c17ce6babf37a50ce5d11d6b8"
-
+SRCBRANCH = "boundary-imx_3.0.35_4.1.0"
 
 # GPU support patches
 SRC_URI += "file://drm-vivante-Add-00-sufix-in-returned-bus-Id.patch \
Signature · 1 line
1.7.9.5
#1 lore raw

Hi Gary,

Quoted 17 lines · Gary Thomas

Recipes now need to explicitly mention the branch used for git repositories. These changes reflect this, allowing for the branch to be overridden by .bbappend files

---
  recipes-bsp/u-boot/u-boot-boundary_git.bb        |    3 ++-
  recipes-bsp/u-boot/u-boot-script-boundary_git.bb |    3 ++-
  recipes-kernel/linux/linux-boundary_3.0.35.bb    |    4 ++--
  3 files changed, 6 insertions(+), 4 deletions(-)
recipes-bsp/u-boot/u-boot-boundary_git.bb +0 -0
index f612b3f..323cfdf 100644

recipes-bsp/u-boot/u-boot-boundary_git.bb PROVIDES = "u-boot" · line 16

Quoted 9 lines
recipes-bsp/u-boot/u-boot-boundary_git.bb +2 -1
@@ -9,7 +9,8 @@ PROVIDES = "u-boot"
  PV = "v2013.07+git${SRCPV}"
 
  SRCREV = "f89bc066db0569008418fac1a0408a9a57f2232f"
-SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git"
+SRCBRANCH = "production-before-20131107"
+SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git;branch=${SRCBRANCH}"
 
  S = "${WORKDIR}/git"
 

I'm not quite grokking why both the branch and the SRCREV are needed.

It seems that SRCREV is more specific than the branch.

Quoted 24 lines
recipes-bsp/u-boot/u-boot-script-boundary_git.bb +2 -1
index 06ad438..d14e094 100644
@@ -6,7 +6,8 @@ DEPENDS = "u-boot-mkimage-native"
  PV = "v2013.01+git${SRCPV}"
 
  SRCREV = "f89bc066db0569008418fac1a0408a9a57f2232f"
-SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git"
+SRCBRANCH = "production-before-20131107"
+SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git;branch=${SRCBRANCH}"
 
  S = "${WORKDIR}/git"
 
recipes-kernel/linux/linux-boundary_3.0.35.bb +0 -1
index 7875f93..872cab2 100644
@@ -5,12 +5,12 @@ require recipes-kernel/linux/linux-imx.inc
 
  DESCRIPTION = "Linux kernel for Boundary Devices boards"
 
-SRC_URI = "git://github.com/boundarydevices/linux-imx6.git \

recipes-kernel/linux/linux-boundary_3.0.35.bb require recipes-kernel/linux/linux-imx.inc · line 16

Quoted 10 lines
recipes-kernel/linux/linux-boundary_3.0.35.bb +2 -1
+SRC_URI = "git://github.com/boundarydevices/linux-imx6.git;branch=${SRCBRANCH} \
             file://defconfig"
 
  LOCALVERSION = "-4.1.0+yocto"
  SRCREV = "58099389255add7c17ce6babf37a50ce5d11d6b8"
-
+SRCBRANCH = "boundary-imx_3.0.35_4.1.0"
 
  # GPU support patches
  SRC_URI += "file://drm-vivante-Add-00-sufix-in-returned-bus-Id.patch \

BTW, I need to update both of these (U-Boot and 3.0.35 kernel), as we have some patches I think most folks will want.

Regards,

Eric

#2 lore raw
Quoted 27 lines · Eric Nelson

Hi Gary,

Quoted 24 lines · Gary Thomas

Recipes now need to explicitly mention the branch used for git repositories. These changes reflect this, allowing for the branch to be overridden by .bbappend files

---
  recipes-bsp/u-boot/u-boot-boundary_git.bb        |    3 ++-
  recipes-bsp/u-boot/u-boot-script-boundary_git.bb |    3 ++-
  recipes-kernel/linux/linux-boundary_3.0.35.bb    |    4 ++--
  3 files changed, 6 insertions(+), 4 deletions(-)
recipes-bsp/u-boot/u-boot-boundary_git.bb +2 -1
index f612b3f..323cfdf 100644
@@ -9,7 +9,8 @@ PROVIDES = "u-boot"
  PV = "v2013.07+git${SRCPV}"
 
  SRCREV = "f89bc066db0569008418fac1a0408a9a57f2232f"
-SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git"
+SRCBRANCH = "production-before-20131107"
+SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git;branch=${SRCBRANCH}"
 
Quoted 6 lines

recipes-bsp/u-boot/u-boot-boundary_git.bb PROVIDES = "u-boot" · line 16

Quoted 2 lines
recipes-bsp/u-boot/u-boot-boundary_git.bb +0 -0
  S = "${WORKDIR}/git"
 

I'm not quite grokking why both the branch and the SRCREV are needed.

It seems that SRCREV is more specific than the branch.

Except that the bitbake fetch code recently changed and if the SRCREV is not
on the master branch, it will fail like this:
ERROR: Fetcher failure: Unable to find revision f89bc066db0569008418fac1a0408a9a57f2232f in branch master even from upstream
ERROR: Function failed: Fetcher failure for URL: 'git://github.com/boundarydevices/u-boot-imx6.git'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /local/imx6_new/tmp/work/sabrelite-amltd-linux-gnueabi/u-boot-script-boundary/v2013.01+gitAUTOINC+f89bc066db-r0/temp/log.do_fetch.25222
ERROR: Task 144 (/local/poky-multi/meta-fsl-arm-extra/recipes-bsp/u-boot/u-boot-script-boundary_git.bb, do_fetch) failed with exit code '1'

I made the branch name a variable as not everyone using a given recipe may be using the same revision/branch, e.g. I have some targets that use linux-boundary that are still on boundary-imx_3.0.35_4.0.0

Quoted 38 lines
Quoted 25 lines
recipes-bsp/u-boot/u-boot-script-boundary_git.bb +2 -1
index 06ad438..d14e094 100644
@@ -6,7 +6,8 @@ DEPENDS = "u-boot-mkimage-native"
  PV = "v2013.01+git${SRCPV}"
 
  SRCREV = "f89bc066db0569008418fac1a0408a9a57f2232f"
-SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git"
+SRCBRANCH = "production-before-20131107"
+SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git;branch=${SRCBRANCH}"
 
  S = "${WORKDIR}/git"
 
recipes-kernel/linux/linux-boundary_3.0.35.bb +0 -1
index 7875f93..872cab2 100644
@@ -5,12 +5,12 @@ require recipes-kernel/linux/linux-imx.inc
 
  DESCRIPTION = "Linux kernel for Boundary Devices boards"
 
-SRC_URI = "git://github.com/boundarydevices/linux-imx6.git \

recipes-kernel/linux/linux-boundary_3.0.35.bb require recipes-kernel/linux/linux-imx.inc · line 16

Quoted 10 lines
recipes-kernel/linux/linux-boundary_3.0.35.bb +2 -1
+SRC_URI = "git://github.com/boundarydevices/linux-imx6.git;branch=${SRCBRANCH} \
             file://defconfig"
 
  LOCALVERSION = "-4.1.0+yocto"
  SRCREV = "58099389255add7c17ce6babf37a50ce5d11d6b8"
-
+SRCBRANCH = "boundary-imx_3.0.35_4.1.0"
 
  # GPU support patches
  SRC_URI += "file://drm-vivante-Add-00-sufix-in-returned-bus-Id.patch \

BTW, I need to update both of these (U-Boot and 3.0.35 kernel), as we have some patches I think most folks will want.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw
Quoted 36 lines · Gary Thomas
Quoted 35 lines · Eric Nelson

Hi Gary,

Quoted 27 lines · Gary Thomas

Recipes now need to explicitly mention the branch used for git repositories.
These changes reflect this, allowing for the branch to be overridden by .bbappend files

---
  recipes-bsp/u-boot/u-boot-boundary_git.bb        |    3 ++-
  recipes-bsp/u-boot/u-boot-script-boundary_git.bb |    3 ++-
  recipes-kernel/linux/linux-boundary_3.0.35.bb    |    4 ++--
  3 files changed, 6 insertions(+), 4 deletions(-)
recipes-bsp/u-boot/u-boot-boundary_git.bb +2 -1
index f612b3f..323cfdf 100644
@@ -9,7 +9,8 @@ PROVIDES = "u-boot"
  PV = "v2013.07+git${SRCPV}"
 
  SRCREV = "f89bc066db0569008418fac1a0408a9a57f2232f"
-SRC_URI = "git://github.com/boundarydevices/u-boot-imx6.git"
+SRCBRANCH = "production-before-20131107"
+SRC_URI =

"git://github.com/boundarydevices/u-boot-imx6.git;branch=${SRCBRANCH}"

Quoted 2 lines
  S = "${WORKDIR}/git"

I'm not quite grokking why both the branch and the SRCREV are needed.

Quoted 7 lines
Quoted 1 line

It seems that SRCREV is more specific than the branch.

Except that the bitbake fetch code recently changed and if the SRCREV is not
on the master branch, it will fail like this:
ERROR: Fetcher failure: Unable to find revision

Thanks. I hadn't noticed.

Quoted 6 lines

<snip>

I made the branch name a variable as not everyone using a given recipe may be using the same revision/branch, e.g. I have some targets that use linux-boundary that are still on boundary-imx_3.0.35_4.0.0

That makes sense.