Bug 7670

Summary: Proposal: make TOPDIR or BUILDDIR available to the devshell
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Christopher Larson <kergoth>
Component: coreAssignee: Christopher Larson <kergoth>
Status: RESOLVED OBSOLETE QA Contact:
Severity: enhancement    
Priority: Medium CC: meta.mr.watcher, meta.watcher, randy.macleod, richard.purdie
Version: unspecified   
Target Milestone: 3.3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Christopher Larson 2015-04-27 23:11:09 UTC
I've found a need, quite regularly, for the path of the top of my build, so e.g. I can quickly copy patches back out of WORKDIR, so I think there'd be value there, unless there's concern about said export breaking manual builds of something. Alternatively, create a temporary symlink in WORKDIR.
Comment 1 Richard Purdie 2015-04-30 15:07:50 UTC
Sounds reasonable to me, fancy sending a patch? :)
Comment 2 Christopher Larson 2015-09-15 22:54:49 UTC
Submitted patch to oe-core list for review.
Comment 3 Christopher Larson 2015-09-25 18:56:47 UTC
Not entirely happy with this implementation, postponing.
Comment 4 Christopher Larson 2015-12-11 19:18:06 UTC
New approach: just prefix the variable names and sidestep the issue, and avoid the need for a symlink or such overhead. See https://github.com/MentorEmbedded/meta-mentor/pull/636. Will submit an oe-core rfc patch.
Comment 5 Richard Purdie 2016-07-25 21:33:13 UTC
The patch seems ok to me, did this ever make it to the mailing list?
Comment 6 Randy MacLeod 2019-11-14 15:59:42 UTC
Ping?
Comment 7 Randy MacLeod 2020-11-19 16:19:02 UTC
Chris, we're happy to take a patch if you need this to be fixed.