[yocto] linux-yocto-custom error on do_validate_branches()
Bruce Ashfield
bruce.ashfield at gmail.com
Sun Sep 8 19:12:22 PDT 2013
On Sun, Sep 8, 2013 at 3:19 PM, Carlo Caione <carlo.caione at gmail.com> wrote:
> Hi,
> to build the v3.8.13 kernel I'm using the linux-yocto-custom recipe as
> following:
>
> ---------------------------------------------
> inherit kernel
> require recipes-kernel/linux/linux-yocto.inc
>
> SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;nocheckout=1"
Linus's repo doesn't have 3.8.13:
> git show dbf932a9b316d5b29b3e220e5a30e7a165ad2992
fatal: bad object dbf932a9b316d5b29b3e220e5a30e7a165ad2992
You need Greg's -stable tree:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
> git show dbf932a9b316d5b29b3e220e5a30e7a165ad2992
commit dbf932a9b316d5b29b3e220e5a30e7a165ad2992
Author: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
Date: Sat May 11 13:57:46 2013 -0700
Linux 3.8.13
diff --git a/Makefile b/Makefile
index 902974f..183eff3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
VERSION = 3
PATCHLEVEL = 8
-SUBLEVEL = 12
+SUBLEVEL = 13
EXTRAVERSION =
NAME = Displaced Humerus Anterior
> SRC_URI += "file://defconfig"
> SRC_URI += "file://0001-kernel-rskrza1_rzlspv0.patch"
>
> LINUX_VERSION ?= "3.8.13"
> LINUX_VERSION_EXTENSION ?= "-custom"
>
> SRCREV="dbf932a9b316d5b29b3e220e5a30e7a165ad2992"
>
> PR = "r1"
> PV = "${LINUX_VERSION}+git${SRCPV}"
>
> COMPATIBLE_MACHINE = "rsr972"
> ------------------------------------------------
>
> the problem is that bitbake returns an error:
>
> ------------------------------------------------
> ERROR: Function failed: do_validate_branches (see
> /home/carlo/work/RSR/yocto/build/tmp/work/rsr972-poky-linux-gnueabi/linux-yocto-custom/3.8.13+gitAUTOINC+dbf932a9b316d5b29b3e220e5a30e7a165ad2992-r1/temp/log.do_validate_branches.7939
> for further information)
> ERROR: Logfile of failure stored in:
> /home/carlo/work/RSR/yocto/build/tmp/work/rsr972-poky-linux-gnueabi/linux-yocto-custom/3.8.13+gitAUTOINC+dbf932a9b316d5b29b3e220e5a30e7a165ad2992-r1/temp/log.do_validate_branches.7939
> Log data follows:
> | DEBUG: Executing shell function do_validate_branches
> | error: no such commit dbf932a9b316d5b29b3e220e5a30e7a165ad2992
> | usage: git branch [options] [-r | -a] [--merged | --no-merged]
> | or: git branch [options] [-l] [-f] <branchname> [<start-point>]
> | or: git branch [options] [-r] (-d | -D) <branchname>...
> | or: git branch [options] (-m | -M) [<oldbranch>] <newbranch>
> |
> | Generic options
> | -v, --verbose show hash and subject, give twice for
> upstream branch
> | -t, --track set up tracking mode (see git-pull(1))
> | --set-upstream change upstream info
> | --color[=<when>] use colored output
> | -r, --remotes act on remote-tracking branches
> | --contains <commit> print only branches that contain the commit
> | --abbrev[=<n>] use <n> digits to display SHA-1s
> |
> | Specific git-branch actions:
> | -a, --all list both remote-tracking and local branches
> | -d, --delete delete fully merged branch
> | -D delete branch (even if not merged)
> | -m, --move move/rename a branch and its reflog
> | -M move/rename a branch, even if target exists
> | --list list branch names
> | -l, --create-reflog create the branch's reflog
> | --edit-description edit the description for the branch
> | -f, --force force creation (when already exists)
> | --no-merged <commit> print only not merged branches
> | --merged <commit> print only merged branches
> |
> | ERROR: SRCREV was set to "dbf932a9b316d5b29b3e220e5a30e7a165ad2992",
> but no branches
> | contain this commit
> | ERROR: Function failed: do_validate_branches (see
> /home/carlo/work/RSR/yocto/build/tmp/work/rsr972-poky-linux-gnueabi/linux-yocto-custom/3.8.13+gitAUTOINC+dbf932a9b316d5b29b3e220e5a30e7a165ad2992-r1/temp/log.do_validate_branches.7939
> for further information)
> ERROR: Task 0 (/home/carlo/work/RSR/yocto/meta-renesas/meta-rsr972/recipes-kernel/linux/linux-yocto-custom.bb,
> do_validate_branches) failed with exit code '1'
> -------------------------------
>
> Actally the SHA is valid since using the Linus repo I have
>
> ~/work/linux-stable(branch:master) » git branch --contains
> dbf932a9b316d5b29b3e220e5a30e7a165ad2992
> linux-3.8.y
>
> what's the problem with the recipe?
Your upstream. The one in ~/work/linux-stable isn't Linus's tree :){
Bruce
>
> Thank you,
>
> --
> Carlo Caione
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
--
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
More information about the yocto
mailing list