[OE-core] [PATCH 2/2] devshell.bbclass: add editors for devshell

akuster808 akuster808 at gmail.com
Mon Mar 13 07:54:03 UTC 2017



On 03/13/2017 12:46 AM, Robert Yang wrote:
> * The vi, vim, emacs and nano can be used in devshell.

thanks
- armin
> * 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 ")




More information about the Openembedded-core mailing list