[yocto] [PATCH][AUH] steps.py: set up AUH workdir before calling bitbake to get env
Alexander Kanavin
alex.kanavin at gmail.com
Fri May 17 07:31:54 PDT 2019
Otherwise, if bitbake fails, there will be tracebacks later on.
Signed-off-by: Alexander Kanavin <alex.kanavin at gmail.com>
---
modules/steps.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/steps.py b/modules/steps.py
index 2eb4499..87d7584 100644
--- a/modules/steps.py
+++ b/modules/steps.py
@@ -34,9 +34,9 @@ from errors import *
from buildhistory import BuildHistory
def load_env(devtool, bb, git, opts, pkg_ctx):
- pkg_ctx['env'] = bb.env(pkg_ctx['PN'])
pkg_ctx['workdir'] = os.path.join(pkg_ctx['base_dir'], pkg_ctx['PN'])
os.mkdir(pkg_ctx['workdir'])
+ pkg_ctx['env'] = bb.env(pkg_ctx['PN'])
pkg_ctx['recipe_dir'] = os.path.dirname(pkg_ctx['env']['FILE'])
if pkg_ctx['env']['PV'] == pkg_ctx['NPV']:
--
2.17.1
More information about the yocto
mailing list