[oe-commits] Ross Burton : devshell: allow the starting directory to be overridden

git at git.openembedded.org git at git.openembedded.org
Mon Mar 16 17:42:58 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 217af639d13258429949b14c67110650288cba7a
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=217af639d13258429949b14c67110650288cba7a

Author: Ross Burton <ross.burton at intel.com>
Date:   Wed Mar 11 10:00:41 2015 +0000

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.

Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 meta/classes/devshell.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/classes/devshell.bbclass b/meta/classes/devshell.bbclass
index 41164a3..4451436 100644
--- a/meta/classes/devshell.bbclass
+++ b/meta/classes/devshell.bbclass
@@ -17,7 +17,9 @@ python do_devshell () {
 
 addtask devshell after do_patch
 
-do_devshell[dirs] = "${S}"
+# The directory that the terminal starts in
+DEVSHELL_STARTDIR ?= "${S}"
+do_devshell[dirs] = "${DEVSHELL_STARTDIR}"
 do_devshell[nostamp] = "1"
 
 # devshell and fakeroot/pseudo need careful handling since only the final



More information about the Openembedded-commits mailing list