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 44600C4332F for ; Tue, 1 Nov 2022 19:22:48 +0000 (UTC) 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) 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 ; 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 ; 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 To: u-boot@lists.denx.de Cc: Michael Nazzareno Trimarchi , Tom Rini , Aleksandar Gerasimovski , Holger Brunck , Francis Laniel , Heinrich Schuchardt , Simon Glass , AKASHI Takahiro , Jason Liu 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 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.6 at phobos.denx.de X-Virus-Status: Clean This flag is used to indicate we are using the hush parser. Signed-off-by: Francis Laniel --- common/cli.c | 2 ++ include/asm-generic/global_data.h | 4 ++++ 2 files changed, 6 insertions(+) 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__ */ -- 2.25.1