]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-yocto: Fix case where recipe is always reparsed
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Jul 2011 15:35:03 +0000 (16:35 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Jul 2011 09:49:30 +0000 (10:49 +0100)
If you include a bitbake variable as a comment in a shell function
then it gets expanded by the bitbake signature handling code.

This could be classed as a bug or a feature depending on your viewpoint
(e.g. a multiline variable included in a comment could actually contain
executable code).

Since we don't always want kernel-yocto to reparse this changes the
syntax of the comment so it doesn't trigger the problem.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-yocto.bbclass

index 536434fdf1aa908b650727f99a59d03edad68930..98272fcc3b4c0a4386efc80b6d396738a8c61d76 100644 (file)
@@ -136,7 +136,7 @@ do_validate_branches() {
                return
        fi
 
-       # nothing to do if SRCREV=${AUTOREV}
+       # nothing to do if SRCREV is AUTOREV
        if [ "${SRCREV_machine}" = "AUTOINC" ]; then
                # restore the branch for builds
                git checkout -f ${KBRANCH}