Message ID | 20220616223158.9225-12-francis.laniel@amarulasolutions.com |
---|---|
State | RFC |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=hrKGCzLG; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LPH8Y15xyz9sFk for <incoming@patchwork.ozlabs.org>; Fri, 17 Jun 2022 08:36:28 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D59D68440F; Fri, 17 Jun 2022 00:34:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com 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=amarulasolutions.com header.i=@amarulasolutions.com header.b="hrKGCzLG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B7B8F844B6; Fri, 17 Jun 2022 00:33:54 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) (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 5D9AB84355 for <u-boot@lists.denx.de>; Fri, 17 Jun 2022 00:33:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=francis.laniel@amarulasolutions.com Received: by mail-wm1-x329.google.com with SMTP id e5so1466106wma.0 for <u-boot@lists.denx.de>; Thu, 16 Jun 2022 15:33:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EGnBSWobHEviIsiDf2V03L7lP775LPbciTBXrYtCziM=; b=hrKGCzLG1kTqBYNRNGCvv8CcT+PXQxg7clYUB6g/UHdwwYZWmSaeBTermD5NkeuXFk WFscH4Y/MWRqP74OREFiRgpHeztxlmTt7/Hdmi5U9KHRyu4gidAJtNX2MgtMDJ8bMdOy /aYrS/FLnszNRvr471zvoXlSzEfMehNoBe19g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EGnBSWobHEviIsiDf2V03L7lP775LPbciTBXrYtCziM=; b=uMcMs11oABIQ/gYECimeq25ohKTkWsZZPnL4ec2opOqrep4/yFU5h+k3RcPwLPNt03 yjFVJVGjQDxYsmGU3FbIRPlXNAD4QJ3uRzfrSwElmtNf7bsFGhGnhDOBu6Xm4LLf1LkD LPdXzTJ+O6CJIpZuAkD6VuxswwWgyom31TXfrGmOa1vcZ0F8x2cFqTIrDHNJkwzEy5v7 jniGHpbzY+G0Tx9TnK4MIE/Kk95UJjDSRvuGIV1/fn7zHUQCewoejRdD0tGATEd23WCW Lbj07NNjHK65PxXmc7UK2aiQyZBt5LRNroyI1rKYO0mqRyBIB/71XHRlq+Nne1FZRcrA lkVQ== X-Gm-Message-State: AJIora+JK3n4GBac6zfLm7JRYvBunvVb70FBc3FZYI6mU95EWTLt95gA WL7Yrxc1wNUHnMjfybqNuawBu39DvLQFxQ== X-Google-Smtp-Source: AGRyM1vDCy042avu1yRdUi3vy5mKkCUadV6T8OgaFmgSCsdHMJx2i+4yn/ejcaI+x8z1XMc2jpgDzA== X-Received: by 2002:a05:600c:1e2a:b0:39c:51f8:80d4 with SMTP id ay42-20020a05600c1e2a00b0039c51f880d4mr7275389wmb.192.1655418783793; Thu, 16 Jun 2022 15:33:03 -0700 (PDT) Received: from pwmachine.home (17.pool80-103-97.dynamic.orange.es. [80.103.97.17]) by smtp.gmail.com with ESMTPSA id n4-20020a05600c4f8400b003971fc23185sm7912044wmq.20.2022.06.16.15.33.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jun 2022 15:33:03 -0700 (PDT) From: Francis Laniel <francis.laniel@amarulasolutions.com> To: u-boot@lists.denx.de Cc: Marek Behun <marek.behun@nic.cz>, Michael Nazzareno Trimarchi <michael@amarulasolutions.com>, Simon Glass <sjg@chromium.org>, Wolfgang Denk <wd@denx.de>, Harald Seiler <hws@denx.de>, Tom Rini <trini@konsulko.com>, Francis Laniel <francis.laniel@amarulasolutions.com> Subject: [RFC PATCH v4 11/28] global_data.h: add GD_FLG_HUSH_OLD_PARSER flag. Date: Fri, 17 Jun 2022 00:31:41 +0200 Message-Id: <20220616223158.9225-12-francis.laniel@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220616223158.9225-1-francis.laniel@amarulasolutions.com> References: <20220616223158.9225-1-francis.laniel@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean |
Series |
Modernize U-Boot shell
|
expand
|
diff --git a/common/cli.c b/common/cli.c index a7e3d84b68..ef967f4f9e 100644 --- a/common/cli.c +++ b/common/cli.c @@ -239,6 +239,8 @@ void cli_loop(void) void cli_init(void) { #ifdef CONFIG_HUSH_PARSER + if (!(gd->flags & GD_FLG_HUSH_OLD_PARSER)) + gd->flags |= GD_FLG_HUSH_OLD_PARSER; u_boot_hush_start(); #endif diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 805a6fd679..97c0de6398 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -635,6 +635,10 @@ enum gd_flags { * @GD_FLG_SMP_READY: SMP initialization is complete */ GD_FLG_SMP_READY = 0x80000, + /** + * @GD_FLG_HUSH_OLD_PARSER: Use hush old parser. + */ + GD_FLG_HUSH_OLD_PARSER = 0x100000, }; #endif /* __ASSEMBLY__ */
This flag is used to indicate we are using the hush parser. Signed-off-by: Francis Laniel <francis.laniel@amarulasolutions.com> --- common/cli.c | 2 ++ include/asm-generic/global_data.h | 4 ++++ 2 files changed, 6 insertions(+)