[RFC PATCH v1 08/21] cli: Port Busybox 2021 hush to U-Boot.

Simon Glass sjg at chromium.org
Wed Jan 12 21:03:30 CET 2022


On Fri, 31 Dec 2021 at 09:14, Francis Laniel
<francis.laniel at amarulasolutions.com> wrote:
>
> This commit adds new file cli_hush_2021.c, it is a copy of Busybox hush file as
> it was of time to commit 37460f5da.
> This commit modifies Busybox hush to not compile some part specific to Busybox
> and adds some code
> needed by U-Boot.
> The modifications consists mainly on adding code #if(n)def guards.
>
> For the moment, this refurbished flavor of hush only permits running command
> without any keywords (i.e., if and for are not recognized) or variable expansion
> (i.e., echo $foo prints foo and not value stored in variable foo).
>
> A new file was also added to define some functions specific to U-Boot.
>
> Signed-off-by: Francis Laniel <francis.laniel at amarulasolutions.com>
> Signed-off-by: Harald Seiler <hws at denx.de>
> ---
>  common/cli_hush_2021.c          | 292 ++++++++++++++++++++
>  common/cli_hush_2021_upstream.c | 470 +++++++++++++++++++++++++++++++-
>  2 files changed, 761 insertions(+), 1 deletion(-)
>  create mode 100644 common/cli_hush_2021.c
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list