From patchwork Thu Jun 1 14:45:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sekhar Nori X-Patchwork-Id: 100933 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp840134qge; Thu, 1 Jun 2017 07:45:52 -0700 (PDT) X-Received: by 10.80.204.148 with SMTP id q20mr2145223edi.122.1496328352159; Thu, 01 Jun 2017 07:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496328352; cv=none; d=google.com; s=arc-20160816; b=uUQXjxBuwgy+a1r2y0vuPq1xBrLWJ/NiZzMlX8Ghyxb6bIvIGNxh87pL1FcMa+vMvC 94GCCEcMTbGS8/fZbL07D3dh7qv966H8aQYIn+MBOKAi9cDAmLkfCvjt4MN1k2LEBPdr ubNrmJqvuvLB3j+IT6/AIYgxtBD6MzdcZx4gB76vsi/fJ8c2L2FuK+HA2NxYc9CEtwrj 5//MsIHAkAPbHMtjwK9EzrVo4Fmz4YdmeBaWqKtbdDSwUPyhaxCzRaPTV9oApMWUO+V0 jrepc2JFbAL9pWDN0smcQrkctKoyq6Ara1L/PPIxekH01jJHVo13BnABcHRdXtv6sDzI AzkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-signature :arc-authentication-results; bh=cIy0VCIvSYuWOUn2f33CiWWp5aGIKpoWYQfr121ZR80=; b=NUjOYOfS6avx8z9oD/P0pBMVJVoAdhpeh/wY/6j5+nKzTz/uhU0uxJozuUE3mZiVC5 xRE79TJs/VakpLcZ87mr0BGtuDjGqo7f8nLyt81J1xjfL9ffj35NbXS/wF2DZy63yVLb sqbGNMmj0aT30KlmbJiyUD33TCph1WBPPuYt+Q2KncrboeN63Tcl2M5tDWmEOgKYyQSp PNdwBdeMGodW4lqU7ySXZ0ITxxn/9nMgD5H472oP9gDRR7nH1ts0XVuZhx4+YaQni6er 8OIbIG7/oDUbFsH1JPOkSggMej7SsMD2iouSUrETl7squS8iAjgUyvQT5wKW4py0UoOw yJPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id e31si20049853ede.307.2017.06.01.07.45.51; Thu, 01 Jun 2017 07:45:52 -0700 (PDT) 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=@ti.com; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: by lists.denx.de (Postfix, from userid 105) id EE178C21C9A; Thu, 1 Jun 2017 14:45:50 +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_DNSWL_NONE, 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 4DA71C21C46; Thu, 1 Jun 2017 14:45:48 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 56BF4C21C46; Thu, 1 Jun 2017 14:45:47 +0000 (UTC) Received: from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77]) by lists.denx.de (Postfix) with ESMTPS id 97EB6C21BE5 for ; Thu, 1 Jun 2017 14:45:46 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v51EjiYF000380; Thu, 1 Jun 2017 09:45:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1496328344; bh=XJfXegq41P+dJ97G0G/D8sHRoYNdMGL2hMDSbYo4lwU=; h=From:To:CC:Subject:Date; b=mDyzOynLtZavd2JsHcdhNzh01LlZnauISeY6s+6n7FfJR5RuUbNsP3s15RV5yDtOV Y+hewENRVAHhCgFYo9yJwpMEaEehaF2HL4G7iNPTawJaBMcsacVK2ckAXfM7sV9poz VDNIjqBxN2AG7LPPX+JqOZu+SflRd3Eh0d7avdmk= Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v51Eji84016103; Thu, 1 Jun 2017 09:45:44 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.294.0; Thu, 1 Jun 2017 09:45:43 -0500 Received: from psplinux063.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v51EjfYG005528; Thu, 1 Jun 2017 09:45:42 -0500 From: Sekhar Nori To: Tom Rini Date: Thu, 1 Jun 2017 20:15:41 +0530 Message-ID: <20170601144541.18132-1-nsekhar@ti.com> X-Mailer: git-send-email 2.9.0 MIME-Version: 1.0 Cc: U-Boot Mailing List Subject: [U-Boot] [PATCH] fs: fat: add kbuild configuration support 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add Kconfig symbols for various configurations supported by FAT filesystem support code. CONFIG_SUPPORT_VFAT has been left out since its force enabled in include/fat.h and probably should get removed at some point. Signed-off-by: Sekhar Nori --- fs/fat/Kconfig | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/fs/fat/Kconfig b/fs/fat/Kconfig index e69de29bb2d1..e7978aae67d2 100644 --- a/fs/fat/Kconfig +++ b/fs/fat/Kconfig @@ -0,0 +1,24 @@ +config FS_FAT + bool "Enable FAT filesystem support" + help + This provides support for reading images from File Allocation Table + (FAT) filesystem. FAT filesystem is a legacy, lightweight filesystem. + It is useful mainly for its wide compatibility with various operating + systems. You can also enable CMD_FAT to get access to fat commands. + +config FAT_WRITE + bool "Enable FAT filesystem write support" + depends on FS_FAT + help + This provides support for creating and writing new files to an + existing FAT filesystem partition. + +config FS_FAT_MAX_CLUSTSIZE + int "Set maximum possible clusersize" + default 65536 + depends on FS_FAT + help + Set the maximum possible clustersize for the FAT filesytem. This + is the smallest amount of disk space that can be used to hold a + file. Unless you have an extremely tight memory memory constraints, + leave the default.