[OE-core] [PATCH 2/2] devshell.bbclass: add editors for devshell
Robert Yang
liezhi.yang at windriver.com
Mon Mar 13 07:46:46 UTC 2017
* The vi, vim, emacs and nano can be used in devshell.
* The groups, lesspipe and dircolors are required by /etc/skel/.bashrc on
Ubuntu 14.04, otherwise, there would be warnings when start devshell:
bash: groups: command not found
bash: lesspipe: command not found
bash: dircolors: command not found
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
meta/classes/devshell.bbclass | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/classes/devshell.bbclass b/meta/classes/devshell.bbclass
index 4de7ea6fce..055d21ba50 100644
--- a/meta/classes/devshell.bbclass
+++ b/meta/classes/devshell.bbclass
@@ -2,6 +2,12 @@ inherit terminal
DEVSHELL = "${SHELL}"
+# Tools used in devshell
+HOSTTOOLS_NONFATAL += "vi vim emacs nano"
+
+# Tools needed by bash
+HOSTTOOLS_NONFATAL += "groups lesspipe dircolors"
+
python do_devshell () {
if d.getVarFlag("do_devshell", "manualfakeroot"):
d.prependVar("DEVSHELL", "pseudo ")
--
2.11.0.rc2.dirty
More information about the Openembedded-core
mailing list