[OE-core] [PATCH] devshell: allow the starting directory to be overridden

Ross Burton ross.burton at intel.com
Wed Mar 11 10:09:42 UTC 2015


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 |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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




More information about the Openembedded-core mailing list