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 A91D6C43334 for ; Thu, 16 Jun 2022 22:36:26 +0000 (UTC) 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) 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 ; 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 ; 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 To: u-boot@lists.denx.de Cc: Marek Behun , Michael Nazzareno Trimarchi , Simon Glass , Wolfgang Denk , Harald Seiler , Tom Rini , Francis Laniel 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 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.5 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 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__ */ -- 2.25.1