Message ID | 20221101192029.10231-11-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@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: legolas.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=Ft3kM9R0; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4N20KQ4Z1Hz23l6 for <incoming@patchwork.ozlabs.org>; Wed, 2 Nov 2022 06:22:50 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8CA12850B6; Tue, 1 Nov 2022 20:21:45 +0100 (CET) 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="Ft3kM9R0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DD6C1850B6; Tue, 1 Nov 2022 20:21:43 +0100 (CET) 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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (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 3CB8085038 for <u-boot@lists.denx.de>; Tue, 1 Nov 2022 20:21:19 +0100 (CET) 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-wr1-x433.google.com with SMTP id bs21so21516888wrb.4 for <u-boot@lists.denx.de>; Tue, 01 Nov 2022 12:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OxeifBYejSiNdtf3MSq3T9066Vt/FccQxf6QvPCm7JQ=; b=Ft3kM9R0NFH2ZADcDqKi07+pk6HEagwXeUKV5rNK9DFKPQWpnwwp0R7oQ+q9Csb+gQ Iu0Jh210crgsoI0IOUoI/BYB6NuSyGTYUwSKfbgvWx3mXzF5Z3s4WNHJZcAkL+5luuYC WgO7HYSitiRZxsuNC7NMI1lhyOjLEo+C2+rYk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OxeifBYejSiNdtf3MSq3T9066Vt/FccQxf6QvPCm7JQ=; b=y8X2bPEzmh6knSkT9dSeoHdSYQkoFI29AakcE95UiVgp7kKLOCn20XS09eAcDeXCGN a+ttyot0QBVmwCupkp4H1Zf0ikVR52QtAmFp/6ays8OFwjE/lDh4kGyyIDor/M62y2AS eFpmn401w1irATH6O0qHWe3yYpf+waonTaWn8S2CtRdYvXrbB2Bjr504LKcRJhRmLYDF pCApB+ybqeJ/zMO8CLQmVTXDHz2m3I2hFeLRVOo09LiDS9/+4lcmbfkMXhxzk+gu3nH+ RMQNNGpYiVeFcZTeCaa9YlGsC5VETd07bbrITJLBkv1UbxetTzPF7FI0uKE+Lo5xStlz Rm8A== X-Gm-Message-State: ACrzQf2bvbc53xRuyQJBaB31MwSWBvXvWkYGLDQvfu9lgWSn4D7/GRvo q1NMpnls8d3tKSkmj9HufIgUUqK5BGMzIw== X-Google-Smtp-Source: AMsMyM4WhWYWCJXNWjxOiTzl3gtCh4VRBBrHJx607aCT1SXjfuY2CXfyIVM7XDuhtpBAF24sdDCxqw== X-Received: by 2002:a5d:5f07:0:b0:236:bb73:7f9d with SMTP id cl7-20020a5d5f07000000b00236bb737f9dmr10095827wrb.506.1667330478626; Tue, 01 Nov 2022 12:21:18 -0700 (PDT) Received: from pwmachine.numericable.fr (85-170-25-210.rev.numericable.fr. [85.170.25.210]) by smtp.gmail.com with ESMTPSA id h17-20020a5d6e11000000b002356c051b9csm10755732wrz.66.2022.11.01.12.21.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 12:21:18 -0700 (PDT) From: Francis Laniel <francis.laniel@amarulasolutions.com> To: u-boot@lists.denx.de Cc: Michael Nazzareno Trimarchi <michael@amarulasolutions.com>, Tom Rini <trini@konsulko.com>, Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com>, Holger Brunck <holger.brunck@hitachienergy.com>, Francis Laniel <francis.laniel@amarulasolutions.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org>, AKASHI Takahiro <takahiro.akashi@linaro.org>, Jason Liu <jason.hui.liu@nxp.com> Subject: [RFC PATCH v5 10/24] global_data.h: add GD_FLG_HUSH_OLD_PARSER flag Date: Tue, 1 Nov 2022 20:20:15 +0100 Message-Id: <20221101192029.10231-11-francis.laniel@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221101192029.10231-1-francis.laniel@amarulasolutions.com> References: <20221101192029.10231-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.6 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 a47d6a3f2b..cfcf4a585b 100644 --- a/common/cli.c +++ b/common/cli.c @@ -254,6 +254,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 c4b2bb4497..9179442564 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -650,6 +650,10 @@ enum gd_flags { * @GD_FLG_FDT_CHANGED: Device tree change has been detected by tests */ GD_FLG_FDT_CHANGED = 0x100000, + /** + * @GD_FLG_HUSH_OLD_PARSER: Use hush old parser. + */ + GD_FLG_HUSH_OLD_PARSER = 0x200000, }; #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(+)