Re[2]: [PATCH 1/2] defaultenv-2: Select CMD_ECHO & CMD_ECHO_E by default
Alexander Shiyan
shc_work at mail.ru
Fri Oct 12 07:16:48 EDT 2012
Fri, 12 Oct 2012 11:24:08 +0200 от Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>:
> On 10:50 Fri 12 Oct , Alexander Shiyan wrote:
> > Command is used in the scripts and it should be compiled in.
> >
> > Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
> > ---
> > common/Kconfig | 2 ++
> > 1 files changed, 2 insertions(+), 0 deletions(-)
> >
> > diff --git a/common/Kconfig b/common/Kconfig
> > index 9210739..2783405 100644
> > --- a/common/Kconfig
> > +++ b/common/Kconfig
> > @@ -564,6 +564,8 @@ config DEFAULT_ENVIRONMENT_GENERIC_NEW
> > select CMD_GLOBAL
> > select CMD_AUTOMOUNT
> > select CMD_BASENAME
> > + select CMD_ECHO
> > + select CMD_ECHO_E
> ECHO_E need to be optionnal as you may not want the color support
For example, command below is not work properly without this option:
echo -e -n "\nHit any key to stop autoboot: "
shows as:
running /env/bin/init...
\nHit any key to stop autoboot: 0
^^
and with CMD_ECHO_E option result is normal:
running /env/bin/init...
Hit any key to stop autoboot: 0
More information about the barebox
mailing list