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 3CF41C4332F for ; Tue, 1 Nov 2022 19:23:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9C56485038; Tue, 1 Nov 2022 20:22:34 +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="GyiZ36X9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2AE53850A7; Tue, 1 Nov 2022 20:22:07 +0100 (CET) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (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 441BF8503B for ; Tue, 1 Nov 2022 20:21:49 +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-wm1-x32a.google.com with SMTP id t1so5731804wmi.4 for ; Tue, 01 Nov 2022 12:21:49 -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=e99L8yM7CbKn/eYcsYDcAvvh5dK7++splVMBB2KJSRY=; b=GyiZ36X9CcF7+vsgYMBz3eRz/GAnE8HcArtxSYvd++1+c8t2t/adgtvtN/R8ugDeuz J2HJwSyFQ3CpdQP1XcEOD60ln9ZUMefjx27GBS0sQCgRtz8cfLTXOoU6KJ0lNN69e6nu 0ij355iHBwf6GI2hul+hmnZIMn9TGZH/ISvp4= 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=e99L8yM7CbKn/eYcsYDcAvvh5dK7++splVMBB2KJSRY=; b=OxXa5nzGhhucr63KoJM/cQwJL/qp/wSmTTaS5H0UbwF3Pr4kSCTXziir8eMkRBIge2 jJMBy77c4UDjCkC7YNw5+Ag9ltxcCgGtIlbCBJ4w1qwLhM93wLtkcEtUIqPdQn1Umpf5 1ABTr/ip0QwjrAKAjzmCHFa6BEB8j58oFvz/9s+TcKqycGNdmL9kXDksPJYImN1h6vwv APVoU5dB7pdQVGaqYZChyqTwPm1a84EkybOg1Bv/onKGmOX4PwSzNNKL487JEUKNuRsv 76DdU6dN0LQRTo75gJFdaas0i6Rklw9oHEzAFGgsH1+EmoImV7LNsZ28cmlA+DUhAjfV FtLg== X-Gm-Message-State: ACrzQf1nsSn4DyQyQBdAYkM+vyQeruz1dVXtErL2jSZY6iGFMNPNPMuT j0w4GefMYew/fglc4Qa+jP298GuG+CL3OQ== X-Google-Smtp-Source: AMsMyM5OWBpU/SDRVLf1usFuvKfzVOCG65pFoL/hsTbakUMOHTBv+l2d+YmueNKlHPSvuITClld/aw== X-Received: by 2002:a05:600c:474a:b0:3c6:ff33:9a38 with SMTP id w10-20020a05600c474a00b003c6ff339a38mr22583811wmo.92.1667330498222; Tue, 01 Nov 2022 12:21:38 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 12:21:37 -0700 (PDT) From: Francis Laniel To: u-boot@lists.denx.de Cc: Michael Nazzareno Trimarchi , Tom Rini , Aleksandar Gerasimovski , Holger Brunck , Francis Laniel , Marek Vasut , Simon Glass , Masahisa Kojima , Heinrich Schuchardt , Philippe Reynes , Ovidiu Panait , Ashok Reddy Soma Subject: [RFC PATCH v5 24/24] DO NOT MERGE: only to make CI happy Date: Tue, 1 Nov 2022 20:20:29 +0100 Message-Id: <20221101192029.10231-25-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 commit set CONFIG_HUSH_PARSER_2021 as the default to trigger the CI with this parser. Nonetheless, Some boards are not compatible with new 2021 hush parser: 1. rcar3_ulcb: When built with CONFIG_HUSH_PARSER_2021, the u-boot.img file size exceeds the 1MB file limit of 890 bytes: aarch64: + rcar3_ulcb +u-boot.img exceeds file size limit: + limit: 0x100000 bytes + actual: 0x10037a bytes + excess: 0x37a bytes Some complementary work is then needed to use CONFIG_HUSH_PARSER_2021 for this board. As CONFIG_BOOTCOMMAND is quite simple for this board, I think we can gain some bytes by deactivating hush features like if and loop. 2. the keymile (i.e. VENDOR_KM) family: This boards used set_local_var() to store some variables as local shell. They then used get_local_var() to retrieve the variables values. Sadly, this two functions do not exist with CONFIG_HUSH_PARSER_2021. A patch was proposed to use environment variables rather than local variables but it does not tackle the problem, so complementary work is needed to make this boards use CONFIG_HUSH_PARSER_2021 [1]. Signed-off-by: Francis Laniel [1] https://marc.info/?l=u-boot&m=165541917618725&w=2 --- cmd/Kconfig | 3 ++- configs/rcar3_ulcb_defconfig | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index c15d7c51f7..1e5c7d08de 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -28,7 +28,7 @@ menu "Hush flavor to use" config HUSH_OLD_PARSER bool "Use hush old parser" - default y + default y if VENDOR_KM help This option enables the old flavor of hush based on hush Busybox from 2005. @@ -37,6 +37,7 @@ menu "Hush flavor to use" config HUSH_2021_PARSER bool "Use hush 2021 parser" + default y if !VENDOR_KM help This option enables the new flavor of hush based on hush Busybox from 2021. diff --git a/configs/rcar3_ulcb_defconfig b/configs/rcar3_ulcb_defconfig index f462bab5a8..ab4d83e3a9 100644 --- a/configs/rcar3_ulcb_defconfig +++ b/configs/rcar3_ulcb_defconfig @@ -113,3 +113,5 @@ CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_GENERIC=y CONFIG_USB_STORAGE=y CONFIG_OF_LIBFDT_OVERLAY=y +CONFIG_HUSH_OLD_PARSER=y +CONFIG_HUSH_2021_PARSER=n -- 2.25.1