Skip to contentSkip to conversation

devshell: allow the starting directory to be overridden

PATCH New Ross Burton 1 participant 1 message Mar 11, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/classes/devshell.bbclass |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/devshell.bbclass +2 -1
index 41164a3..8ae3dc3 100644
@@ -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
Signature · 1 line
1.7.10.4