diff options
author | Petter Mabäcker <petter@technux.se> | 2015-07-08 21:02:03 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-16 15:08:42 +0100 |
commit | 5f7403151fc8bfd5b1d77f6626717c8b84d33d93 (patch) | |
tree | 94956098bd58c468e02275bcf39c512a8178a37a /scripts/lib | |
parent | 80ec9f62791575de4948d7635dc6674abfac2193 (diff) | |
download | openembedded-core-5f7403151fc8bfd5b1d77f6626717c8b84d33d93.tar.gz openembedded-core-5f7403151fc8bfd5b1d77f6626717c8b84d33d93.tar.bz2 openembedded-core-5f7403151fc8bfd5b1d77f6626717c8b84d33d93.zip |
kernel-yocto: fix machine_srcrev check in do_patch
do_patch is currently doing checks with machine_srcrev without initiate
it which leads to below (additional debug added):
DEBUG: Executing shell function do_patch
.
.
.
+ [ 0 -ne 0 ]
+ [ != AUTOINC ]
+ git rev-parse --verify ~0
fatal: Needed a single revision
+ git merge-base HEAD
usage: git merge-base [-a|--all] <commit> <commit>...
or: git merge-base [-a|--all] --octopus <commit>...
or: git merge-base --independent <commit>...
or: git merge-base --is-ancestor <commit> <commit>
or: git merge-base --fork-point <ref> [<commit>]
-a, --all output all common ancestors
--octopus find ancestors for a single n-way merge
--independent list revs not reachable from others
--is-ancestor is the first one ancestor of the other?
--fork-point find where <commit> forked from reflog of <ref>
+ [ = ]
+ set +x
DEBUG: Shell function do_patch finished
Only reason it works today is because 'rev-parse/merge-base' with empty machine_srcrev
will result in "false positive". Solve this by adding a similar non-empty check and
use SRCREV as fallback as in 'do_kernel_metadata'
Signed-off-by: Petter Mabäcker <petter@technux.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions