mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
patch.bbclass: Fix up the environment for the patch resolution code
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -384,8 +384,10 @@ def patch_init(d):
|
|||||||
f.close()
|
f.close()
|
||||||
os.chmod(rcfile, 0775)
|
os.chmod(rcfile, 0775)
|
||||||
|
|
||||||
|
bb.utils.build_environment(d)
|
||||||
os.environ['TERMWINDOWTITLE'] = "Bitbake: Please fix patch rejects manually"
|
os.environ['TERMWINDOWTITLE'] = "Bitbake: Please fix patch rejects manually"
|
||||||
os.environ['TERMRCFILE'] = rcfile
|
os.environ['TERMRCFILE'] = rcfile
|
||||||
|
bb.debug(bb.data.getVar('TERMCMDRUN', d, 1))
|
||||||
rc = os.system(bb.data.getVar('TERMCMDRUN', d, 1))
|
rc = os.system(bb.data.getVar('TERMCMDRUN', d, 1))
|
||||||
if os.WIFEXITED(rc) and os.WEXITSTATUS(rc) != 0:
|
if os.WIFEXITED(rc) and os.WEXITSTATUS(rc) != 0:
|
||||||
bb.msg.fatal(bb.msg.domain.Build, ("Cannot proceed with manual patch resolution - '%s' not found. " \
|
bb.msg.fatal(bb.msg.domain.Build, ("Cannot proceed with manual patch resolution - '%s' not found. " \
|
||||||
|
|||||||
Reference in New Issue
Block a user