]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
devshell.bbclass: Allow devshell & pydevshell to use the network
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Mon, 25 Apr 2022 21:35:37 +0000 (23:35 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 26 Apr 2022 17:24:37 +0000 (18:24 +0100)
Otherwise it will fail if using OE_TERMINAL = "xterm" with the not so
helpful error:

  xterm: Xt error: Can't open display: localhost:0.0

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/devshell.bbclass

index 75604d0c07627742af58f0e6f905e8feb68fc991..247d04478c41f5d022ccc524281ba6556384a4e5 100644 (file)
@@ -23,6 +23,7 @@ addtask devshell after do_patch do_prepare_recipe_sysroot
 DEVSHELL_STARTDIR ?= "${S}"
 do_devshell[dirs] = "${DEVSHELL_STARTDIR}"
 do_devshell[nostamp] = "1"
+do_devshell[network] = "1"
 
 # devshell and fakeroot/pseudo need careful handling since only the final
 # command should run under fakeroot emulation, any X connection should
@@ -156,3 +157,4 @@ python do_pydevshell() {
 addtask pydevshell after do_patch
 
 do_pydevshell[nostamp] = "1"
+do_pydevshell[network] = "1"