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 741F4C77B75 for ; Fri, 12 May 2023 20:08:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5DCBD86338; Fri, 12 May 2023 22:07:26 +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="Fm3pDUMF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1F6438633F; Fri, 12 May 2023 22:07:22 +0200 (CEST) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (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 E86658633F for ; Fri, 12 May 2023 22:06:38 +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-x32c.google.com with SMTP id 5b1f17b1804b1-3f4c6c4b51eso35176955e9.2 for ; Fri, 12 May 2023 13:06:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1683921998; x=1686513998; 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=FOl5N8lL7qm3Ps5Pqg3lmnZRqFPaGZfmqHrev3zbPco=; b=Fm3pDUMFexjBUwu+dCtionn3u1VAX5mkOVe9wu69bZSaTHrai6darpaF6w2Tm9ZKGq XZ6sLMt0UqXk/+dn2EI2n/rflfmLO2GzKRqoYyP+pkuzyt7xiwL62IGdP4vzqraewhdZ 9ifCFa8sbQxs8aM5CJDXAksX3lVG4lf3x0bqs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683921998; x=1686513998; 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=FOl5N8lL7qm3Ps5Pqg3lmnZRqFPaGZfmqHrev3zbPco=; b=CVfQAa8JcDQY1u+SsWX3450wgO9sHUuvf2cRd4sYgWo9VwJIPf+jm3goyA/g/SRxjK LdEEc4KSxtS66jpvSTcArBsRut2/CYPiIcJ5OSmEvbgya2LH4Rym9Hwqq+tNE7poE6zE xPtja900TLMtyGEWdX2Rpkx9AJATmpRv9Hi8X49XGyjX2rkgInuW3g6C4eqYRWHkcfKy xg3fIly1rj67lBiKnsU9qmthkF+CcuqT/p8zmJ5G6okIAglXsnxjLIwH985DptxXab+H a8+GjV79XmuMyAm3MgLJ59I2hzNf9uRVh0kK5rSIWmAgH6reiEFE0KACxB7KLtD9xbXn A91g== X-Gm-Message-State: AC+VfDx8849M+JknbIFAVYVpvxgqt22QGPFOgl9sQMM/TdS75bR062D0 uIwGP06NORROCmdctUZ4MRnLHNgwEEOunOgkQjE= X-Google-Smtp-Source: ACHHUZ79oKvL4PiKH8HoMowMZpgZIL66V356jqlcRr2TsYeaXXn4fGBLLemJW3syXwLbAKWqfqrisQ== X-Received: by 2002:a1c:7406:0:b0:3f4:e4a2:9f7f with SMTP id p6-20020a1c7406000000b003f4e4a29f7fmr6863343wmc.36.1683921998660; Fri, 12 May 2023 13:06:38 -0700 (PDT) Received: from pwmachine.numericable.fr ([213.94.16.214]) by smtp.gmail.com with ESMTPSA id n6-20020a7bcbc6000000b003f33f8f0a05sm29565859wmi.9.2023.05.12.13.06.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 13:06:36 -0700 (PDT) From: Francis Laniel To: u-boot@lists.denx.de Cc: Michael Nazzareno Trimarchi , Tom Rini , Simon Glass , Harald Seiler , Francis Laniel , Hector Palacios , Marek Vasut , Evgeny Bachinin , Stefan Roese , Rasmus Villemoes , Bin Meng , Heinrich Schuchardt , Nikhil M Jain Subject: [RFC PATCH v8 10/23] global_data.h: add GD_FLG_HUSH_OLD_PARSER flag Date: Fri, 12 May 2023 21:03:18 +0100 Message-Id: <20230512200331.51457-11-francis.laniel@amarulasolutions.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230512200331.51457-1-francis.laniel@amarulasolutions.com> References: <20230512200331.51457-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.8 at phobos.denx.de X-Virus-Status: Clean This flag is used to indicate we are using the hush parser. Reviewed-by: Simon Glass 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 3916a7b10a..e5fe1060d0 100644 --- a/common/cli.c +++ b/common/cli.c @@ -268,6 +268,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 a1e1b9d640..120f1189ee 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -654,6 +654,10 @@ enum gd_flags { * @GD_FLG_OF_TAG_MIGRATE: Device tree has old u-boot,dm- tags */ GD_FLG_OF_TAG_MIGRATE = 0x200000, + /** + * @GD_FLG_HUSH_OLD_PARSER: Use hush old parser. + */ + GD_FLG_HUSH_OLD_PARSER = 0x400000, }; #endif /* __ASSEMBLY__ */ -- 2.34.1