Skip to content

Rework the devshell

Chris Larson openembedded-core 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

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

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH 0/3][v2] 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

Pull URL: https://github.com/kergoth/oe-core
Branch: devshell
Browse: https://github.com/kergoth/oe-core/commits/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 |   26 ++++-------
 meta/classes/terminal.bbclass |   30 +++++++++++
 meta/lib/oe/classutils.py     |   45 +++++++++++++++++
 meta/lib/oe/terminal.py       |  107 +++++++++++++++++++++++++++++++++++++++++
 4 files changed, 191 insertions(+), 17 deletions(-)
 create mode 100644 meta/classes/terminal.bbclass
 create mode 100644 meta/lib/oe/classutils.py
 create mode 100644 meta/lib/oe/terminal.py
Signature · 1 line
1.7.4.1