Skip to contentSkip to conversation

devshell: start in ${B} not ${S}

PATCH In review Ross Burton 3 participants 4 messages Mar 10, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 devshell: start in ${B} not ${S}

When S=B this is a no-op, but when B!=S this means you can run make and so on without having to change directory first.

---
 meta/classes/devshell.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/devshell.bbclass +1 -1
index 41164a3..051ab72 100644
@@ -17,7 +17,7 @@ python do_devshell () {
 
 addtask devshell after do_patch
 
-do_devshell[dirs] = "${S}"
+do_devshell[dirs] = "${B}"
 do_devshell[nostamp] = "1"
 
 # devshell and fakeroot/pseudo need careful handling since only the final
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 2 lines · Ross Burton

When S=B this is a no-op, but when B!=S this means you can run make and so on without having to change directory first.

Just my opinion, but I'd vote against this change. Running "../temp/run.do_compile" works from either directory but editing sources and running "quilt refresh" etc only works from ${S}.

Quoted 27 lines
---
 meta/classes/devshell.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/devshell.bbclass +1 -2
index 41164a3..051ab72 100644
@@ -17,7 +17,7 @@ python do_devshell () {
 
 addtask devshell after do_patch
 
-do_devshell[dirs] = "${S}"
+do_devshell[dirs] = "${B}"
 do_devshell[nostamp] = "1"
 
 # devshell and fakeroot/pseudo need careful handling since only the final
--

1.7.10.4

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#2 lore raw
Quoted 7 lines · Andre McCurdy
Quoted 2 lines · Ross Burton

When S=B this is a no-op, but when B!=S this means you can run make and so on without having to change directory first.

Just my opinion, but I'd vote against this change. Running "../temp/run.do_compile" works from either directory but editing sources and running "quilt refresh" etc only works from ${S}.

+1

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#3 lore raw
Quoted 5 lines · Otavio Salvador
Quoted 3 lines

Just my opinion, but I'd vote against this change. Running "../temp/run.do_compile" works from either directory but editing sources and running "quilt refresh" etc only works from ${S}.

+1

Clearly I'm the only person who mainly does build testing and not source patching in a devshell :)

Ross