From patchwork Mon Nov 27 16:26:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 119743 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp496159qgn; Mon, 27 Nov 2017 08:26:31 -0800 (PST) X-Google-Smtp-Source: AGs4zMYFA2lxmpXIGw+MNHpNOsql8OjxP+juegFq8W8hI93RFWG2LjnT5nc6JE+erxn6iK4cdX9C X-Received: by 10.80.150.69 with SMTP id y63mr54129474eda.75.1511799990904; Mon, 27 Nov 2017 08:26:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511799990; cv=none; d=google.com; s=arc-20160816; b=jx/C/I0wqXl21GvIXI2P1kqIDJjPp0/VEucdxquj/233eo62lRdCwOdM3Jf331QZDN /Tsf680K2sCP85ww/Kd6iJhJ2xxrsMmpfWBf0avkkZjww9ojdiU10hhYt3QNF3R8Cvqz YRzDeMdpzxWKTr2+S/e0RS328f6rt642ZnA4lC1pUzoax69pWaORvNXGStPu+qiVfk3t 08E/GCDawd3O2w5aSlVwudgfajnB/LIkMy7SbeEv+2VtPsqtXqTQ3dbqDw0yN5BFMzcf aFL7/g4AqQBHNTBGCJI85xNK03vzbxouM6Pc3DcYKeakex5N/7iRvYN3BjAbnQsCkMzZ 3YPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :arc-authentication-results; bh=Vv6s1/+r9DO6pZbEjwAl8VitBBuezMomx3jcJeoLGm0=; b=IAiLfGwiFijMC31oMf4aTFa98XNt7HCyv2rszXV8QZDhZg2xfFp+aM0c32ofnKtB0b +wDEecJ1jEK5Y+TaJpXxz6ZOzrbGg2lfV7z8wL9stas1dOhpe6Yf1MfIilici4Iq3AuC igAPrMMrteF1Zxh6ceXdfNVZBizO7WsM1j1UmKtvrgl7sFqMrYlIZpbyX98jORTVUZ+Y iHyFUa7XmgXVJ7p9/UBMtBQ7eNcOWIOe5tNPdjr/Fb4Z2Tdoqkm1tmhpxQVCz1vziMn5 mA2e0slXlHjhRGZ4OsgeTrVQ7HdEAcMltNtgYKk9SisFHUEkxdWTGaRGxKyXMV58AHSH 20Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=I40bno8Y; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id x33si1420738eda.531.2017.11.27.08.26.30; Mon, 27 Nov 2017 08:26:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=I40bno8Y; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 0FD20C21DA2; Mon, 27 Nov 2017 16:26:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id BE637C21D56; Mon, 27 Nov 2017 16:26:25 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id EFBC4C21C4C; Mon, 27 Nov 2017 16:26:23 +0000 (UTC) Received: from mail-wr0-f178.google.com (mail-wr0-f178.google.com [209.85.128.178]) by lists.denx.de (Postfix) with ESMTPS id A7EECC21C4F for ; Mon, 27 Nov 2017 16:26:23 +0000 (UTC) Received: by mail-wr0-f178.google.com with SMTP id k18so22018421wre.1 for ; Mon, 27 Nov 2017 08:26:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=GSBa8KWhz3pg+yhiC7M0Vp5MSc0DrpCH7EJYgM0GvQU=; b=I40bno8YFUJTVMTplxhYaj0AMDK8iM1igHaggI1D90wPt0NS7Wnt2i2orl6pxxfeBq Tw6IKev9+gh7Hp47Kl2dMr+2tG0sq2gRn79pTtISs/1p3uwX8g78xRad66Hqpfm/cfeD 4sw0DC1+wnEITmPPnQJ4va7LJiI4HGvrxWJJc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=GSBa8KWhz3pg+yhiC7M0Vp5MSc0DrpCH7EJYgM0GvQU=; b=GsOktEGuRKWZvdfiBDD2SON9b0P0UPX635E6gEECrNRTj+aZoykClM6Sc8VJ55xNOS 0dRMm3WA62uF31/g+0TD8FdCOCcalwrrIffR7RDryUqYg2cHjC8xmVDHp2dNFi/MZ8Cl R7gAJuOg8euO1kgXkKCxr7TFJZscviuOU7rHhNlmFX0OTeWEFp39vfoODPr37yD38EZB igibmjSFx+ckESlbBXhSPfZNRRUus9zsnoWbNzzQQpvNw6QCSVev9seXHD3uDYpOPz4b zlJAtrFc7650LU1yCsRBQZmNtc7XjiOqtQw3pHA5hd9OsF5Qxf085KE0EitirCirt0K/ T6qw== X-Gm-Message-State: AJaThX4a6q7Hyz0xuKXaJu0XEKlWBSRylQCuKfxbsCU7y7GlVw8ifSxb /aEVZ77fhQsE6O/8+8+Roi5llA== X-Received: by 10.223.151.136 with SMTP id s8mr28968918wrb.94.1511799983175; Mon, 27 Nov 2017 08:26:23 -0800 (PST) Received: from igloo.80.58.61.254 (141.pool85-51-114.dynamic.orange.es. [85.51.114.141]) by smtp.gmail.com with ESMTPSA id 68sm22069115wmh.2.2017.11.27.08.26.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Nov 2017 08:26:22 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, u-boot@lists.denx.de, trini@konsulko.com Date: Mon, 27 Nov 2017 17:26:19 +0100 Message-Id: <1511799979-3797-1-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [U-Boot] [PATCH] env: enable CONFIG_ENV_IS_IN_EXT4 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" --- env/Kconfig | 10 ++++++++++ env/env.c | 2 ++ 2 files changed, 12 insertions(+) diff --git a/env/Kconfig b/env/Kconfig index 2477bf8..4387a2c 100644 --- a/env/Kconfig +++ b/env/Kconfig @@ -81,6 +81,16 @@ config ENV_IS_IN_FAT - CONFIG_FAT_WRITE: This must be enabled. Otherwise it cannot save the environment file. +config ENV_IS_IN_EXT4 + bool "Environment is in a EXT4 filesystem" + depends on !CHAIN_OF_TRUST + select EXT4_WRITE + help + Define this if you want to use the EXT4 file system for the environment. + + - CONFIG_EXT4_WRITE: + This must be enabled. Otherwise it cannot save the environment file. + config ENV_IS_IN_FLASH bool "Environment in flash memory" depends on !CHAIN_OF_TRUST diff --git a/env/env.c b/env/env.c index 76a5608..7455632 100644 --- a/env/env.c +++ b/env/env.c @@ -32,6 +32,8 @@ static enum env_location env_get_default_location(void) return ENVL_EEPROM; else if IS_ENABLED(CONFIG_ENV_IS_IN_FAT) return ENVL_FAT; + else if IS_ENABLED(CONFIG_ENV_IS_IN_EXT4) + return ENVL_EXT4; else if IS_ENABLED(CONFIG_ENV_IS_IN_FLASH) return ENVL_FLASH; else if IS_ENABLED(CONFIG_ENV_IS_IN_MMC)