From patchwork Wed Feb 19 09:47:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 1240600 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=prevas.dk Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.a=rsa-sha256 header.s=selector1 header.b=W+9HHSZB; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48MtFJ6wfpz9sRN for ; Wed, 19 Feb 2020 20:48:04 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7094580364; Wed, 19 Feb 2020 10:47:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=prevas.dk 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=prevas.dk header.i=@prevas.dk header.b="W+9HHSZB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0632D80367; Wed, 19 Feb 2020 10:47:46 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FORGED_SPF_HELO, SPF_HELO_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-ve1eur03on0725.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe09::725]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2852A80246 for ; Wed, 19 Feb 2020 10:47:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rasmus.villemoes@prevas.dk ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=APKrayvJlgWt3Q2Hi1HAVwszp1p83bhMktQOLFsN+0dpzFWG5jLK4CFAnKxwaR94h8ACdtCaqJ0EJRstDu+gpzKWXTjuQLKoMg1lWTnenOn27ns9kg1OOyOvorBpsgjt32NLaKY167JmZqepWruMmqh8bpzvZq5urOscd/tRAgoKkvSFeBtALZ8K8d38MVVdy1KgxaDyE27bJYsXTJymgsIR0/QRiJ3ix7cC+epYy16QsiQ0TlXMwLGc+zUmhEXE1JgQT8YkK+lSpn/ifSMgxQkGg4jvR9mrA9w6Q372MYfgOmAVqI/iO1cn1jnOXlmGqtjgbRZwFWQU9hqq/Mh67w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iHhnRh8WTZzkColUPxbGUt8jOZxaOW2XvZPv/ka271U=; b=EZ2FFw4cDeCa2kUlRLKkgrazIBiFRquKbhuYqiiKCPw+z/KNFxVNdu9YAkX1Dhr45fxGGBrJKirHQARbYVE5X8MXa3RX+CNtEpikmFl2Knc307iY1IUAK/ruy5BNw9VNk59o6GHYxYIPqw72vEDx3qVA6QtiBd+gyzCw6D5807+KK+53QpeMf/uZl8cBWPkYYcN9vzEZ4RgAPNBiMYqD49+lXA0QQYgxuDTc22hc/OBT+ff3efoBwUikvtWodndgK6eFTHA/EKjD5TZpLblfpJl8RxEyq9hQgxkCldbWg+yBfh+h7ntG0rmpUCLUMbjp/keJ1resIi7YSJWwn+YXpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk; dkim=pass header.d=prevas.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iHhnRh8WTZzkColUPxbGUt8jOZxaOW2XvZPv/ka271U=; b=W+9HHSZB6F5flj98VWYNJlAc/dGObrmSSXdgzZoKY8IdbX/1hT5tai5Yj05nrgDMJH8S8Ou50uufAs7DO46enb2D8sOYyijvJ0gU7pDB4pAAPdMkNQ0pEdJMV8lCto/8daXh3PE7XLmbnBkEFZLvBssBWgzBeUrmw52qyz7F8NE= Received: from VI1PR10MB2765.EURPRD10.PROD.OUTLOOK.COM (20.178.126.85) by VI1PR10MB2159.EURPRD10.PROD.OUTLOOK.COM (20.177.60.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.23; Wed, 19 Feb 2020 09:47:40 +0000 Received: from VI1PR10MB2765.EURPRD10.PROD.OUTLOOK.COM ([fe80::e58f:1097:b71d:32c7]) by VI1PR10MB2765.EURPRD10.PROD.OUTLOOK.COM ([fe80::e58f:1097:b71d:32c7%5]) with mapi id 15.20.2729.032; Wed, 19 Feb 2020 09:47:40 +0000 Received: from prevas-ravi.prevas.se (81.216.59.226) by HE1PR0102CA0040.eurprd01.prod.exchangelabs.com (2603:10a6:7:7d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.18 via Frontend Transport; Wed, 19 Feb 2020 09:47:39 +0000 From: Rasmus Villemoes To: "u-boot@lists.denx.de" CC: Joe Hershberger , Wolfgang Denk , Tom Rini , Rasmus Villemoes Subject: [PATCH 1/5] env: add SAVEENV as an alias of the CMD_SAVEENV symbol Thread-Topic: [PATCH 1/5] env: add SAVEENV as an alias of the CMD_SAVEENV symbol Thread-Index: AQHV5wmf+oPlEzS1uE+Vlwh58j5Ybw== Date: Wed, 19 Feb 2020 09:47:39 +0000 Message-ID: <20200219094726.26798-2-rasmus.villemoes@prevas.dk> References: <20200219094726.26798-1-rasmus.villemoes@prevas.dk> In-Reply-To: <20200219094726.26798-1-rasmus.villemoes@prevas.dk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR0102CA0040.eurprd01.prod.exchangelabs.com (2603:10a6:7:7d::17) To VI1PR10MB2765.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:e1::21) x-mailer: git-send-email 2.23.0 authentication-results: spf=none (sender IP is ) smtp.mailfrom=rasmus.villemoes@prevas.dk; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [81.216.59.226] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1e81f63e-9e48-4d51-50c3-08d7b520c21c x-ms-traffictypediagnostic: VI1PR10MB2159: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 0318501FAE x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(346002)(376002)(396003)(39850400004)(136003)(366004)(199004)(189003)(8976002)(8936002)(52116002)(107886003)(4744005)(6506007)(26005)(6486002)(6916009)(8676002)(54906003)(4326008)(81166006)(81156014)(71200400001)(66946007)(6512007)(5660300002)(2906002)(1076003)(44832011)(36756003)(2616005)(186003)(956004)(66476007)(64756008)(66556008)(16526019)(66446008)(316002)(478600001)(86362001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR10MB2159; H:VI1PR10MB2765.EURPRD10.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: prevas.dk does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: IDYcvCcyyD/mPdaaP3F0sAc3H4iUpLND+I45f3v8LeDS3HlwV3GjHp+TX7IGEydzRi5CZvYIOmqbKolSnK2KdeV62oSnFzzcyzpiRkoZeVbeObH1tdEnlpbRA0DRaviUFQgI0puDggfThdKMq8k44kIQI+YWEYft/2cPFvVIaZ4pDrwlKXrtwG+TvGmN0AUGys+aJ1kFBEZpj2fcWSzdPtT6FklTTxb2gXni6wUJtw3RnN2VcwXu9g2qoj1Bmi2lr+YJipVkN+546I+mPp9t4tFg4EtzvHOBnLL2M2aeWOX6JHbH8SmkZhUg0daN+NnUrbCfYQYumPMcBmEdCku5GAfZcXH7KzRVlpWukxBRakHPdugCHXaFBq33xjwgpgis59BqoOY7Hz+kxMhtpVJaZP+VeuhWGelCrB4R/X8n6/2WES3pI9jjn+OAmlwzYb4F x-ms-exchange-antispam-messagedata: iONAuCKoG8dSdS5pqUdiAkarERzHH1QIbtvbui7O9W+lwWiF1aNz2/kyHCYjOc1Qx8DeA+0wcpmZglp74gzfc6YVCvG6rWKWV8aIZ8nQuMhKEU8lICFyYySq6OfN7/DLz5lwXM1qwsCKKgreS5bokA== MIME-Version: 1.0 X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: 1e81f63e-9e48-4d51-50c3-08d7b520c21c X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Feb 2020 09:47:39.8619 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 4mB3DSpvWUzy9PswnXVmTPmCalf6kkwRgaC2J+fnaZueYIK651trKlar7XG6GimCXISeE11/UqEYAqoMSUdZcAfZjTkkZrw2XsNgDleoCeA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR10MB2159 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.102.2 at phobos.denx.de X-Virus-Status: Clean Currently, testing whether to compile in support for saving the environment is a bit awkward when one needs to take SPL_SAVEENV into account, and quite a few storage drivers currently do not honour SPL_SAVEENV. To make it a bit easier to decide whether environment saving should be enabled, introduce SAVEENV as an alias for the CMD_SAVEENV symbol. Then one can simply use CONFIG_IS_ENABLED(SAVEENV) Signed-off-by: Rasmus Villemoes --- env/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/env/Kconfig b/env/Kconfig index 0d6f559b39..969308fe6c 100644 --- a/env/Kconfig +++ b/env/Kconfig @@ -3,6 +3,9 @@ menu "Environment" config ENV_SUPPORT def_bool y +config SAVEENV + def_bool y if CMD_SAVEENV + config ENV_IS_NOWHERE bool "Environment is not stored" default y if !ENV_IS_IN_EEPROM && !ENV_IS_IN_EXT4 && \