Skip to contentSkip to conversation

yocto-bsp fix

PATCH New Tom Zanussi 1 participant 2 messages Jan 27, 2015

lore
Share & tools
lore
#0 lore raw

cover yocto-bsp fix

This patchset contains a fix for Yocto Bug 6518 (yocto-bsp create creates faulty SRC_URI). Please apply to dizzy-next.

The following changes since commit b1dfbe192ee5d8f5595504017bdcbb530264597c:

yocto-bsp: Add missing conf dir to arm template (2015-01-21 10:40:38 -0600)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib.git tzanussi/custom-kbranch-master
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=tzanussi/custom-kbranch-dizzy

Tom Zanussi (1):
yocto-bsp: Add branch to SRC_URI for custom kernels

 .../target/arch/common/recipes-kernel/linux/linux-yocto-custom.bb     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
1.9.3
#1 lore raw

PATCH 1/1 yocto-bsp: Add branch to SRC_URI for custom kernels

Without 'branch' in the SRC_URI, a SRCREV specified for a non-master KBRANCH will result in a fetch failure since the branch tested by the fetcher will default to master, which doesn't contain the SRCREV. This fixes the problem by adding branch=KBRANCH to the SRC_URI.

Fixes [Yocto #6518].

---
 .../target/arch/common/recipes-kernel/linux/linux-yocto-custom.bb     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/lib/bsp/substrate/target/arch/common/recipes-kernel/linux/linux-yocto-custom.bb +2 -2
index 69f598e..80a52e7c 100644
@@ -32,9 +32,9 @@ inherit kernel
 require recipes-kernel/linux/linux-yocto.inc
 
 {{ if kernel_choice == "custom" and custom_kernel_remote == "y": }}
-SRC_URI = "{{=custom_kernel_remote_path}};protocol=git;bareclone=1"
+SRC_URI = "{{=custom_kernel_remote_path}};protocol=git;bareclone=1;branch=${KBRANCH}"
 {{ if kernel_choice == "custom" and custom_kernel_remote == "n": }}
-SRC_URI = "git://{{=custom_kernel_local_path}};protocol=file;bareclone=1"
+SRC_URI = "git://{{=custom_kernel_local_path}};protocol=file;bareclone=1;branch=${KBRANCH}"
 
 SRC_URI += "file://defconfig"
 
Signature · 1 line
1.9.3