Bug 9422

Summary: oe-init-build-env: read SSTATE_DIR and DL_DIR from env var
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Yang <liezhi.yang>
Component: Scripts and ToolsAssignee: Robert Yang <liezhi.yang>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: Undecided CC: richard.purdie, ross.burton
Version: 2.2   
Target Milestone: 2.2 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Robert Yang 2016-04-08 01:16:42 UTC
Everytime when I want to do a fresh build, I did:

$ . /path/to/oe-init-build-env <builddir>
Edit SSTATE_DIR and DL_DIR in conf/local.conf

The most edit I do is SSTATE_DIR, DL_DIR and MACHINE, I guess that not only me did this, it would help a lot if oe-init-build-env can read SSTATE_DIR and DL_DIR from env vars and write in conf/local.conf. Another way is use BB_ENV_EXTRAWHITE, but I think that it is not straightforward enough, and write in conf/local.conf is more easier for debugging
Comment 1 Richard Purdie 2016-04-14 14:40:40 UTC
We should use a site.conf (e.g. in $HOME) to solve this kind of issue.

*** This bug has been marked as a duplicate of bug 7837 ***