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 95DCEC433FE for ; Sun, 20 Nov 2022 13:36:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AD9C38527F; Sun, 20 Nov 2022 14:34:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.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=konsulko.com header.i=@konsulko.com header.b="fbdmwLw3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7E566851BB; Sun, 20 Nov 2022 14:34:07 +0100 (CET) Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (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 8AF8884F7C for ; Sun, 20 Nov 2022 14:34:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82c.google.com with SMTP id z6so5900311qtv.5 for ; Sun, 20 Nov 2022 05:34:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=VOpETeu/hZVgVjoIxcqGv64rdv32ruCxDFuVpfSG1NI=; b=fbdmwLw3cFTmkFBCwaOnbalfMUZ2Ii6uh2Rdrh3LFKMKKILw0Bw1f+4mpU2Sh7YJzQ K3BEOYu3y+btoBpSJzvBl9HuBSgKD9Ipilb08SZhA49jklMfRom3vzqAPydFZ7gJeEfc ygWHoMN38U4x7c5wxNIOQ0A4sNkpeRK06alRg= 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:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VOpETeu/hZVgVjoIxcqGv64rdv32ruCxDFuVpfSG1NI=; b=7VNiVh6F9X6AjyUU1Q1Ms9vXj3B2n8TkVOwoIImUFYOxiuYmUXgmqo3cGue10VY+gQ ANdXjBg4qqTlmFZclPIX74wfY2YqcsEe6p4sQWex4sQAVz0sZ564XKGGnbbhMSiA9Im0 26SVnNf4yDyC4I9iEIPbBpw4/vz5khln8rTIxTCBhSxpjFNbw7haCxR+oIA5ZPI0bjzp /ePoHdNT24BnH0k2VXU95f5MKNfFsgceqpb2I3fWTuT5BTaJJo6nnA0I+yWROoCpNm8R NAUwPQfiP8LbAqIOc0vdfiAjY1bFfQUCZoined2vIXagXKwjgmPxrUudslTtZ9LXyY/l N1eA== X-Gm-Message-State: ANoB5pk/1xsX+sM/8Vd13vTpq2YlAop/GtNfR74rcH49AKk/XHT/vjSn gNG5F64LaYYe87EdxHq9JqR+Vd4lBLk5+A== X-Google-Smtp-Source: AA0mqf7XfKwAe7xFujeSwVAV4kcJtNu3p2eguFz4DELKoaZOPX8eNQa/vhb2RMqQVHkmUoaa83WpwQ== X-Received: by 2002:ac8:4688:0:b0:3a5:3622:6831 with SMTP id g8-20020ac84688000000b003a536226831mr3255861qto.479.1668951243164; Sun, 20 Nov 2022 05:34:03 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-29a0-035f-b06a-235e.res6.spectrum.com. [2603:6081:7b00:6400:29a0:35f:b06a:235e]) by smtp.gmail.com with ESMTPSA id m21-20020a05620a24d500b006ce0733caebsm6487740qkn.14.2022.11.20.05.34.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Nov 2022 05:34:02 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PoC 010/241] global: Migrate CONFIG_ENV_FLAGS_LIST_STATIC to CFG Date: Sun, 20 Nov 2022 08:30:01 -0500 Message-Id: <20221120133352.3055600-11-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221120133352.3055600-1-trini@konsulko.com> References: <20221119234545.404563-38-trini@konsulko.com> <20221120133352.3055600-1-trini@konsulko.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 Signed-off-by: Tom Rini --- README | 6 +++--- include/configs/aristainetos2.h | 2 +- include/configs/imx6q-bosch-acc.h | 2 +- include/env_flags.h | 6 +++--- scripts/config_whitelist.txt | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README b/README index 103562bbbe8d..71767e32d11b 100644 --- a/README +++ b/README @@ -1132,7 +1132,7 @@ The following options need to be configured: The same can be accomplished in a more flexible way for any variable by configuring the type of access to allow for those variables in the ".flags" variable - or define CONFIG_ENV_FLAGS_LIST_STATIC. + or define CFG_ENV_FLAGS_LIST_STATIC. - Protected RAM: CONFIG_PRAM @@ -1496,7 +1496,7 @@ Configuration Settings: this option if you really know what you are doing. - CONFIG_ENV_FLAGS_LIST_DEFAULT -- CONFIG_ENV_FLAGS_LIST_STATIC +- CFG_ENV_FLAGS_LIST_STATIC Enable validation of the values given to environment variables when calling env set. Variables can be restricted to only decimal, hexadecimal, or boolean. If CONFIG_CMD_NET is also defined, @@ -1527,7 +1527,7 @@ Configuration Settings: Define this to a list (string) to define the ".flags" environment variable in the default or embedded environment. - - CONFIG_ENV_FLAGS_LIST_STATIC + - CFG_ENV_FLAGS_LIST_STATIC Define this to a list (string) to define validation that should be done if an entry is not found in the ".flags" environment variable. To override a setting in the static diff --git a/include/configs/aristainetos2.h b/include/configs/aristainetos2.h index 6faf544d21b6..e80166b3c467 100644 --- a/include/configs/aristainetos2.h +++ b/include/configs/aristainetos2.h @@ -420,7 +420,7 @@ /* UBI support */ -#define CONFIG_ENV_FLAGS_LIST_STATIC "ethaddr:mw,serial#:sw,board_type:sw," \ +#define CFG_ENV_FLAGS_LIST_STATIC "ethaddr:mw,serial#:sw,board_type:sw," \ "sysnum:dw,panel:sw,ipaddr:iw,serverip:iw" #endif /* __ARISTAINETOS2_CONFIG_H */ diff --git a/include/configs/imx6q-bosch-acc.h b/include/configs/imx6q-bosch-acc.h index 99da081cdae8..392f97050a65 100644 --- a/include/configs/imx6q-bosch-acc.h +++ b/include/configs/imx6q-bosch-acc.h @@ -45,7 +45,7 @@ "save_env=env save; env save\0" \ "altbootcmd=run handle_ustate; run switch_bootset; run save_env; run bootcmd\0" -#define CONFIG_ENV_FLAGS_LIST_STATIC \ +#define CFG_ENV_FLAGS_LIST_STATIC \ "bootset:bw," \ "clone_pending:bw," \ "endurance_test:bw," \ diff --git a/include/env_flags.h b/include/env_flags.h index 313cb8c49a6d..e4e40169aed0 100644 --- a/include/env_flags.h +++ b/include/env_flags.h @@ -35,8 +35,8 @@ enum env_flags_varaccess { #define ENV_FLAGS_VARTYPE_LOC 0 #define ENV_FLAGS_VARACCESS_LOC 1 -#ifndef CONFIG_ENV_FLAGS_LIST_STATIC -#define CONFIG_ENV_FLAGS_LIST_STATIC "" +#ifndef CFG_ENV_FLAGS_LIST_STATIC +#define CFG_ENV_FLAGS_LIST_STATIC "" #endif #ifdef CONFIG_NET @@ -77,7 +77,7 @@ enum env_flags_varaccess { ETHADDR_FLAGS \ NET_FLAGS \ SERIAL_FLAGS \ - CONFIG_ENV_FLAGS_LIST_STATIC + CFG_ENV_FLAGS_LIST_STATIC #ifdef CONFIG_CMD_ENV_FLAGS /* diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 97ad18677f1d..8d9496e6edba 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -10,7 +10,7 @@ CFG_DM9000_BYTE_SWAPPED CFG_DM9000_NO_SROM CFG_DM9000_USE_16BIT CFG_DW_WDT_CLOCK_KHZ -CONFIG_ENV_FLAGS_LIST_STATIC +CFG_ENV_FLAGS_LIST_STATIC CONFIG_ENV_IS_EMBEDDED CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS CONFIG_ENV_SETTINGS_NAND_V1 -- 2.25.1