From patchwork Tue Jul 4 11:21:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 783893 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3x21mf6cHvz9s7B for ; Tue, 4 Jul 2017 21:21:54 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="c/RjpaLp"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 61EB687399; Tue, 4 Jul 2017 11:21:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P2K3neM1MWOg; Tue, 4 Jul 2017 11:21:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3A92B847A5; Tue, 4 Jul 2017 11:21:47 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 4C14E1C42BB for ; Tue, 4 Jul 2017 11:21:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 415E28614D for ; Tue, 4 Jul 2017 11:21:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6GNMU+JnTWj5 for ; Tue, 4 Jul 2017 11:21:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id 6A39E85CA8 for ; Tue, 4 Jul 2017 11:21:32 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id y5so25577572wmh.3 for ; Tue, 04 Jul 2017 04:21:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KJtGr2jdMcFQSsiNBJ26gVc/2uTkbFHhsv/5I8XSN3Q=; b=c/RjpaLpGifeL+QPeqh0Fla4fABj4JJEArEAP4yhxxZZmM/7U6FHoqkHzx01ajWJiD a1ZNxPWl6W4uBJwGwnPWHOOj45T/0gMCdPyuZk6Mp4X6eKP+nB8HljaSCBnY32UQL93M fTck04MJq0UbWlVIBRGItfoQDDb1ET5IS0+gHS4gOcfkIXL+FPGS1QYomXdrzA9xAptN ameTenWy0z7nd0nvOt0iCUJ7Sq8zfoAvLCTF60ygIEMYjTM9C5NTQsF4JrqFQ06PyG5V nDIxtaY+2C+FSm8f8LiObuctFIfjK4BgfYL9QqD4I13Ciy0TWpGBrk9rnE8Ie45honQ3 VJdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KJtGr2jdMcFQSsiNBJ26gVc/2uTkbFHhsv/5I8XSN3Q=; b=k3ik6pI4auxPX60qs/7an/P7mft67f1bzvol/texMBD+80iUYhSTfttHqjSSpmhRL4 gSnTjl0OAjMupgS4qJp4NMqJz44IQ0lhRScy5Cz/bC4IY399R1To89N9ZOLjcxSEcye4 P9UwsqmnXgmnazbhhGtJfgRh8b5WSCl5Hwm5HX3xfG/8dLmytLDDGtNy7FE12Hdg5cdD F4H4eRjhzyFtfVJOjVVHvhFyAXG1qOnGDN4tzUbvH4gogwowG9k+TA7JzjQ69MdkDmik c6h8QDdkPGP+NtkN2PwhoOl2grVqrDQ8sklH5p1WCkBmxXiZJdaxsBFpSE4ffgrV8Fj/ chAQ== X-Gm-Message-State: AIVw111kM/tmdvrd6Kw7hukL4qA4xk5GJPn3P1MvTaHyaPC8t8+1DIUS 2NMj6e+A603cUjhr8EE= X-Received: by 10.28.10.131 with SMTP id 125mr7822708wmk.28.1499167290582; Tue, 04 Jul 2017 04:21:30 -0700 (PDT) Received: from localhost.localdomain (2a01cb08861073004a51b7fffed22913.ipv6.abo.wanadoo.fr. [2a01:cb08:8610:7300:4a51:b7ff:fed2:2913]) by smtp.gmail.com with ESMTPSA id e131sm11102319wmd.28.2017.07.04.04.21.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 04:21:29 -0700 (PDT) From: Samuel Martin To: buildroot@buildroot.org Date: Tue, 4 Jul 2017 13:21:19 +0200 Message-Id: <20170704112120.27977-5-s.martin49@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170704112120.27977-1-s.martin49@gmail.com> References: <20170704112120.27977-1-s.martin49@gmail.com> MIME-Version: 1.0 Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH v4 4/5] fs/ext2: Add BR2_TARGET_ROOTFS_EXT2_FEATURES option X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Sébastien Szymanski This option lets the user specify ext2/3/4 features. Signed-off-by: Sébastien Szymanski Signed-off-by: Samuel Martin Cc: "Yann E. MORIN" --- changes v3->v4: - none changes v2->v3: - none changes v1->v2: - rebase --- fs/ext2/Config.in | 10 ++++++++++ fs/ext2/ext2.mk | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/fs/ext2/Config.in b/fs/ext2/Config.in index 1fc3ac9de7..1841bfaa90 100644 --- a/fs/ext2/Config.in +++ b/fs/ext2/Config.in @@ -89,6 +89,16 @@ config BR2_TARGET_ROOTFS_EXT2_RESBLKS Traditionally, this has been 5%, and all ext-related tools still default to reserving 5% when creating a new ext filesystem. +config BR2_TARGET_ROOTFS_EXT2_FEATURES + string "Filesystem features" + default "^64bit" + help + Specify a comma-separated list of ext2/3/4 features. + For more information about this option, see the mkefs' -O option in + the manual page mke2fs(8). + For more information about the features which can be set, see then + manual page ext4(5). + choice prompt "Compression method" default BR2_TARGET_ROOTFS_EXT2_NONE diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk index de87efba63..1c0d34cd4f 100644 --- a/fs/ext2/ext2.mk +++ b/fs/ext2/ext2.mk @@ -9,6 +9,8 @@ ifeq ($(BR2_TARGET_ROOTFS_EXT)-$(EXT2_SIZE),y-) $(error BR2_TARGET_ROOTFS_EXT2_SIZE cannot be empty) endif +EXT2_FEATURES = $(call qstrip,$(BR2_TARGET_ROOTFS_EXT2_FEATURES)) + # qstrip results in stripping consecutive spaces into a single one. So the # variable is not qstrip-ed to preserve the integrity of the string value. EXT2_LABEL := $(subst ",,$(BR2_TARGET_ROOTFS_EXT2_LABEL)) @@ -20,7 +22,8 @@ EXT2_OPTS = \ -b $(BR2_TARGET_ROOTFS_EXT2_BLOCK_SIZE) \ -N $(BR2_TARGET_ROOTFS_EXT2_INODES) \ -m $(BR2_TARGET_ROOTFS_EXT2_RESBLKS) \ - -L "$(EXT2_LABEL)" + -L "$(EXT2_LABEL)" \ + $(if $(EXT2_FEATURES),-O "$(EXT2_FEATURES)") ROOTFS_EXT2_DEPENDENCIES = host-e2fsprogs