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 902C1C6FD1D for ; Thu, 30 Mar 2023 19:53:02 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D4FD885F59; Thu, 30 Mar 2023 21:52:37 +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="JeABY3Cr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3952885EFD; Thu, 30 Mar 2023 21:51:46 +0200 (CEST) Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (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 390E985F73 for ; Thu, 30 Mar 2023 21:49: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-x32e.google.com with SMTP id i5-20020a05600c354500b003edd24054e0so14050727wmq.4 for ; Thu, 30 Mar 2023 12:49:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1680205745; 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=9AzAmbHGiGrJmQdqT9f3gPSgF+JKwaSAzn6GYKl2L+c=; b=JeABY3CrH/LNIxj4BexztZh4m2wDvU60ZGkCjUMNH7jbZT38iEIZz7QQmZ+vjI+tsI 5+U0n2NM12ZjPPsxuGaALhtjpbivKtWZ0YN7694xFHqxMquByO1C9iki8mwh36hUpVK6 uQgLEMg9CQgz87tQIJi0MJlA3O8/qrDg93ue0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680205745; 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=9AzAmbHGiGrJmQdqT9f3gPSgF+JKwaSAzn6GYKl2L+c=; b=MQqn1HDYUHvwn+wERy+AgLkYMIsaoJf/6MTqhnpGvfJJUiwDxgdqtZgBkZSb8nml/Q ggXo9jcdUZyPJENKYgTZQ/bps/zqI7ijn5FRs2Dfj0oRvPE9Ol/1aZiJ5PE/sNU6qIXC XJKzP2R5LutZc0PqeiOJyuLP9/MpAJv175x/8HbAizF0KDSov40535xWYD7O5+WHyRXv odDua6hTEo2YQWoFXl2bbX03Tb2f33/I1lBHzgaEwVfxiMFDBxrLhScXVzvBeljL3Xir CGc+DnDud95FTHc03E7NlJHOfeJPJWNvhIA4ksDctLqRD4TbAvNqQYNWQvBpNEziPCD1 mcng== X-Gm-Message-State: AAQBX9f2inwH0y3fS9cZYDN+TQeyQK8NI/9/gtNbPSRX+l8UBkHmZhLX mAMXpB+YVAjPjygHYi9M65FL7A/pHasNYc3uu9rCbg== X-Google-Smtp-Source: AKy350ZSgoFr7qTTTzAb+YmJY4ZDuKzkMpe9DWQaeoRULoQLokTKW4IfvhgZ5kjm9tY337Rks7BpbA== X-Received: by 2002:a05:600c:254:b0:3f0:3d47:2cc5 with SMTP id 20-20020a05600c025400b003f03d472cc5mr1440811wmj.10.1680205745429; Thu, 30 Mar 2023 12:49:05 -0700 (PDT) Received: from pwmachine.numericable.fr ([78.30.11.60]) by smtp.gmail.com with ESMTPSA id l24-20020a1c7918000000b003e203681b26sm203762wme.29.2023.03.30.12.49.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 12:49:05 -0700 (PDT) From: Francis Laniel To: u-boot@lists.denx.de Cc: Michael Nazzareno Trimarchi , Tom Rini , Simon Glass , Harald Seiler , Francis Laniel , "Albert ARIBAUD (3ADEV)" , Tony Dinh , Sergei Antonov , Heinrich Schuchardt , Ilias Apalodimas , Masahisa Kojima , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Stefan Roese , John Keeping , Neil Armstrong , Roger Knecht , Robert Marko , Samuel Dionne-Riel , Alexey Romanov , Marek Vasut , Fabrice Gasnier , Hector Palacios , Rasmus Villemoes , AKASHI Takahiro , Linus Walleij , Rui Miguel Silva , Andrew Scull Subject: [RFC PATCH v7 10/23] global_data.h: add GD_FLG_HUSH_OLD_PARSER flag Date: Thu, 30 Mar 2023 20:46:58 +0100 Message-Id: <20230330194716.23623-11-francis.laniel@amarulasolutions.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230330194716.23623-1-francis.laniel@amarulasolutions.com> References: <20230330194716.23623-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. 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 9451e6a142..5eef0cad8c 100644 --- a/common/cli.c +++ b/common/cli.c @@ -255,6 +255,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 da17ac8cbc..d61aa4346d 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.34.1