diff options
| author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2022-04-25 23:35:37 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-04 13:07:33 +0100 |
| commit | 7f91e5a7d89a1d1dfe2f33a055da287a9425df45 (patch) | |
| tree | 4113cfbd6f71e749e02a71a51d3a1c07a1b86a1a /meta | |
| parent | f8a450a39d49474d300f19c6ed39a8b1eda53cc3 (diff) | |
| download | poky-7f91e5a7d89a1d1dfe2f33a055da287a9425df45.tar.gz | |
devshell.bbclass: Allow devshell & pydevshell to use the network
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
(From OE-Core rev: 147d4cc12cd0ac2680bffa4112cef2d2447d34e1)
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>
(cherry picked from commit ba53fc3bcecfe32401471dc1008c7ead96504150)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes/devshell.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/devshell.bbclass b/meta/classes/devshell.bbclass index 62dc958d9a..26c01c080a 100644 --- a/meta/classes/devshell.bbclass +++ b/meta/classes/devshell.bbclass | |||
| @@ -21,6 +21,7 @@ addtask devshell after do_patch do_prepare_recipe_sysroot | |||
| 21 | DEVSHELL_STARTDIR ?= "${S}" | 21 | DEVSHELL_STARTDIR ?= "${S}" |
| 22 | do_devshell[dirs] = "${DEVSHELL_STARTDIR}" | 22 | do_devshell[dirs] = "${DEVSHELL_STARTDIR}" |
| 23 | do_devshell[nostamp] = "1" | 23 | do_devshell[nostamp] = "1" |
| 24 | do_devshell[network] = "1" | ||
| 24 | 25 | ||
| 25 | # devshell and fakeroot/pseudo need careful handling since only the final | 26 | # devshell and fakeroot/pseudo need careful handling since only the final |
| 26 | # command should run under fakeroot emulation, any X connection should | 27 | # command should run under fakeroot emulation, any X connection should |
| @@ -154,3 +155,4 @@ python do_pydevshell() { | |||
| 154 | addtask pydevshell after do_patch | 155 | addtask pydevshell after do_patch |
| 155 | 156 | ||
| 156 | do_pydevshell[nostamp] = "1" | 157 | do_pydevshell[nostamp] = "1" |
| 158 | do_pydevshell[network] = "1" | ||
