From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ED555C6FD1D for ; Sat, 1 Apr 2023 06:38:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E5ACE860F2; Sat, 1 Apr 2023 08:35:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="W6jTHqjm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 97D58860EF; Sat, 1 Apr 2023 08:34:24 +0200 (CEST) Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4022C860D1 for ; Sat, 1 Apr 2023 08:34:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-yb1-xb2e.google.com with SMTP id r187so29692183ybr.6 for ; Fri, 31 Mar 2023 23:34:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1680330854; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=CYUuGWcXin61o/bLw1sREsrwQM/A//YXWmDE2RuO0Hg=; b=W6jTHqjmdhFX6ih3VVnLUDUlzx/tL2LWVOVUp0vzyzQL5ae2vhR95qE8mP8TKdu4nh Mq0QVU+NnqfA1ONT2R+9pUNG+Xa8W66+MSA/ahDoygwQnzumy18w/FdADsoXxAdj0HNR Uv0znipZBMhJzFnIAurd8m00c5T60k7mI2vtg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680330854; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CYUuGWcXin61o/bLw1sREsrwQM/A//YXWmDE2RuO0Hg=; b=05pWtv+2LLSI3Z36ExYDXVVw6Eovf9IwME8H9+VsH321UsTqa9hjHk+hcS5dbYe+Nl dGlFSR9wfV3ptLDKgWQEbXTJIEeIUss+osa67zkoocxPdVcE7f0cnnc1VAquUszi/7+7 CYNI99erZVsxUvoZPtBx1ZqM0fRNVLsra+5lOaTuyShIGvPEA5NMQzYQQ7DTWqK5c1GM GuugsB+8Pn+acyWk/4w8p6PXt0mhLWmLRAF8IFysYxybKz6SL37P935zKKbj0nghUvat oG4lfdaVv85D9Qh/22skbuHmp3xh8tFOcBhZPL7cgIdE5O/s3k39AJs6Mkpwx4S7Dbzp pvOw== X-Gm-Message-State: AAQBX9diqJSgzBgfYNLCFQ/rbTOA3E+sXiqMvoSqMmPIZ68ISGJ0hxtz 3/daq7749R8Qj+1/q7uibF9+jf2W+8ol770j9gNmSw5II1/mpmY2wPI= X-Google-Smtp-Source: AKy350a61uV/QeR03Hzad985m95nBOTqA0wjbudtrNSyPF02a1WONUGsTzuMq35JrWNXK6V84/bkDj6PdXkDxtZqhYc= X-Received: by 2002:a05:6902:10c3:b0:b75:9519:dbcd with SMTP id w3-20020a05690210c300b00b759519dbcdmr20037461ybu.12.1680330853708; Fri, 31 Mar 2023 23:34:13 -0700 (PDT) MIME-Version: 1.0 References: <20230330194716.23623-1-francis.laniel@amarulasolutions.com> <20230330194716.23623-13-francis.laniel@amarulasolutions.com> In-Reply-To: <20230330194716.23623-13-francis.laniel@amarulasolutions.com> From: Simon Glass Date: Sat, 1 Apr 2023 19:32:15 +1300 Message-ID: Subject: Re: [RFC PATCH v7 12/23] cli: Enables using hush 2021 parser as command line parser To: Francis Laniel Cc: u-boot@lists.denx.de, Michael Nazzareno Trimarchi , Tom Rini , Harald Seiler , "Albert ARIBAUD (3ADEV)" , Tony Dinh , Sergei Antonov , Heinrich Schuchardt , Ilias Apalodimas , Masahisa Kojima , =?UTF-8?Q?Pali_Roh=C3=A1r?= , Stefan Roese , John Keeping , Neil Armstrong , Roger Knecht , Robert Marko , Alexey Romanov , Marek Vasut , Patrick Delaunay , Patrice Chotard , Fabrice Gasnier , Hector Palacios , Rasmus Villemoes , AKASHI Takahiro , Rui Miguel Silva , Linus Walleij , Andrew Scull Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On Fri, 31 Mar 2023 at 08:49, Francis Laniel wrote: > > If one defines HUSH_2021_PARSER, it is then possible to use 2021 parser with: > => parser get > old > => parser set 2021 > 2021> parser get > 2021 > > Signed-off-by: Francis Laniel > --- > cmd/parser.c | 7 ++++- > common/cli.c | 38 +++++++++++++++++++---- > common/cli_hush_2021.c | 3 ++ > common/cli_hush_upstream.c | 46 +++++++++++++++++++++++++--- > include/asm-generic/global_data.h | 4 +++ > include/cli_hush.h | 51 +++++++++++++++++++++++++++++-- > 6 files changed, 135 insertions(+), 14 deletions(-) > Reviewed-by: Simon Glass