diff options
author | Pavel Zhukov <pavel.zhukov@huawei.com> | 2021-12-02 08:56:04 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-12-15 07:40:29 +0000 |
commit | 65d0414bdb7019bc0eb54e328f336990881b2594 (patch) | |
tree | b5411eb775241cd371c7c31edb2b3295ea65e92c /scripts/lib/devtool/build_sdk.py | |
parent | 34be1b3bad7773ef088a0224b3b540b793dca249 (diff) | |
download | poky-65d0414bdb7019bc0eb54e328f336990881b2594.tar.gz |
patch.py: Initialize git repo before patching
If PATCHTOOL="git" has been specified but workdir is not git repo
bitbake fails to apply the patches with error message:
Command Error: 'git rev-parse --show-toplevel' exited with 0 Output:
fatal: not a git repository (or any of the parent directories): .git
Fix this by initializing the repo before patching.
This allows binary git patches to be applied.
(From OE-Core rev: c3e8317b15b1b78511a6f9aedfed54b59ab6972f)
Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6184b56a7a0fc6f5d19fdfb81e7453667f7da940)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/build_sdk.py')
0 files changed, 0 insertions, 0 deletions