[linux-yocto] kernel-yocto: validate_branches questions

Moore, Tysen Tysen.Moore at xs-embedded.com
Tue Feb 18 07:51:21 PST 2014


Thanks for the fast response.  I only posted the question yesterday.

The "KMETA Check" that I am referring to is:
    ## KMETA branch validation
     meta_head=`git show-ref -s --heads ${KMETA}`
    git show-ref --quiet --verify -- "refs/heads/${KMETA}"
    if [ $? -eq 1 ]; then
        return                            #<<<<<<<<<<<<<<< EXITS HERE

Because with KMETA not defined here it exists early.  The problem is that the earlier "SRCREV loop" starts with, "git checkout -q master".  Since KMETA is not defined and we exit early the code that follows the KMETA check to change back to KBRANCH is not executed.

The only workaround I've come up with is very hackish--embarrassing to post;-)
do_validate_branches_prepend() {
do_validate_branches_append() {
[As you can imagine I'd prefer not to use this hack.]

The problem is that if I do not clear KMETA the configme (kgit-meta and friends) call later fails.  The kernel_configme code allows KMETA to be undefined but it is almost like the validate_branches is coded without that same option.  Shouldn't the KMETA "check" code listed above be skipped when KMETA is not defined? I think this change to the validate_branches code would fix this use case.  I don't think it would break other use cases, but I am rather green with Yocto.

Thanks again for the detailed description and help.


[XSe Logo]

XS Embedded LLC
29065 Cabot Drive, Suite 200
Novi, MI 48377

Phone   +1 (248) 209 - 6613
Fax     +1 (248) 281 - 7020

Tysen.Moore at xs-embedded.com<mailto:Tysen.Moore at xs-embedded.com>

:::::::::: based.on.visions ::::::::::

XS Embedded LLC
Managing Director: Joachim Kobinger

Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/linux-yocto/attachments/20140218/88cb3305/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xse-email.gif
Type: application/octet-stream
Size: 781 bytes
Desc: xse-email.gif
URL: <http://lists.yoctoproject.org/pipermail/linux-yocto/attachments/20140218/88cb3305/attachment.obj>

More information about the linux-yocto mailing list