Bug 7670 - Proposal: make TOPDIR or BUILDDIR available to the devshell
Summary: Proposal: make TOPDIR or BUILDDIR available to the devshell
Status: RESOLVED OBSOLETE
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 3.3
Assignee: Christopher Larson
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-04-27 23:11 UTC by Christopher Larson
Modified: 2020-11-19 16:19 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.