diff options
author | Ross Burton <ross.burton@intel.com> | 2015-03-11 10:00:41 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-16 17:41:55 +0000 |
commit | 8a9ac1de34e6c23dc04fb1464ad2285d43ad3584 (patch) | |
tree | 5795839db49bca001611b1b7110257b503b62433 | |
parent | 66a4d8bf6e7df5856da9235c1b651ab2347027b1 (diff) | |
download | poky-8a9ac1de34e6c23dc04fb1464ad2285d43ad3584.tar.gz |
devshell: allow the starting directory to be overridden
Some people like to have the devshell start in ${B} instead of ${S}, so allow
this to be overridden.
(From OE-Core rev: 217af639d13258429949b14c67110650288cba7a)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/devshell.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/devshell.bbclass b/meta/classes/devshell.bbclass index 41164a3f33..4451436473 100644 --- a/meta/classes/devshell.bbclass +++ b/meta/classes/devshell.bbclass | |||
@@ -17,7 +17,9 @@ python do_devshell () { | |||
17 | 17 | ||
18 | addtask devshell after do_patch | 18 | addtask devshell after do_patch |
19 | 19 | ||
20 | do_devshell[dirs] = "${S}" | 20 | # The directory that the terminal starts in |
21 | DEVSHELL_STARTDIR ?= "${S}" | ||
22 | do_devshell[dirs] = "${DEVSHELL_STARTDIR}" | ||
21 | do_devshell[nostamp] = "1" | 23 | do_devshell[nostamp] = "1" |
22 | 24 | ||
23 | # devshell and fakeroot/pseudo need careful handling since only the final | 25 | # devshell and fakeroot/pseudo need careful handling since only the final |