Skip to content

Rework the devshell

Chris Larson openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3oe.classutils: add modulemeta/lib/oe/classutils.py+43 -00 replies
2/3Rework how the devshell functionsmeta/classes/devshell.bbclass meta/conf/bitbake.conf meta/lib/oe/classutils.py +1 more+143 -190 replies
3/3oe.terminal: improve how we spawn screenmeta/lib/oe/terminal.py+6 -10 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJoshua Lock
SeriesA-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH (v2,resend) 0/3] Rework the devshell

From: Chris Larson <[email protected]>

- Adds a utility metaclass for maintaining class registries
- Shifts the handling of spawning a terminal into a new 'terminal' python module
- Automatically selects an appropriate terminal based on what you have available on your machine
- Still allows manual selection, but in a more convenient way, and falls back to auto if you select an invalid or unavailable (not installed) terminal
- Improves how we spawn screen:

- Shows a warning when spawning it, so do_devshell doesn't appear to hang
- Spawns a named screen session 'devshell', to avoid confusion when the user already has other screen sessions running

Example usage of the new API for others (e.g. patch resolver) to use:

import oe.terminal
oe.terminal.run(command, terminal_title, d)

Pull URL: git://git.openembedded.org/openembedded-core-contrib
Branch: kergoth/devshell
Browse: http://git.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kergoth/devshell

Thanks,
Chris Larson <[email protected]>
---

Chris Larson (3):
oe.classutils: add module
Rework how the devshell functions
oe.terminal: improve how we spawn screen

 meta/classes/devshell.bbclass |   25 ++------
 meta/conf/bitbake.conf        |    9 +++
 meta/lib/oe/classutils.py     |   45 ++++++++++++++
 meta/lib/oe/terminal.py       |  131 +++++++++++++++++++++++++++++++++++++++++
 4 files changed, 191 insertions(+), 19 deletions(-)
 create mode 100644 meta/lib/oe/classutils.py
 create mode 100644 meta/lib/oe/terminal.py