aboutsummaryrefslogtreecommitdiff
path: root/fs/ext2
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2017-07-04 00:51:00 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-04 08:49:15 +0200
commitddecc7dcb2fb584540b4160b7a1e89e5d75b47ea (patch)
treef15a6904f6a533c6cc5f6edffc90b55b87f1cec6 /fs/ext2
parent3286a4d6aa2707e9dcdcb26e7c391bd7a07eddad (diff)
downloadbuildroot-ddecc7dcb2fb584540b4160b7a1e89e5d75b47ea.tar.gz
buildroot-ddecc7dcb2fb584540b4160b7a1e89e5d75b47ea.tar.bz2
fs/ext2: simplify code
No option is conditional anymore, so just collate them into a single assignment. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'fs/ext2')
-rw-r--r--fs/ext2/ext2.mk19
1 files changed, 8 insertions, 11 deletions
diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk
index 57058b5fd2..16e14777c3 100644
--- a/fs/ext2/ext2.mk
+++ b/fs/ext2/ext2.mk
@@ -4,22 +4,19 @@
#
################################################################################
-EXT2_OPTS = -G $(BR2_TARGET_ROOTFS_EXT2_GEN) -R $(BR2_TARGET_ROOTFS_EXT2_REV)
-
-EXT2_OPTS += -b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)
-
-EXT2_OPTS += -i $(BR2_TARGET_ROOTFS_EXT2_INODES)
-
-EXT2_OPTS += -I $(BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES)
-
-EXT2_OPTS += -r $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)
-
# 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))
#" Syntax highlighting... :-/ )
-EXT2_OPTS += -l "$(EXT2_LABEL)"
+EXT2_OPTS = \
+ -G $(BR2_TARGET_ROOTFS_EXT2_GEN) \
+ -R $(BR2_TARGET_ROOTFS_EXT2_REV) \
+ -b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS) \
+ -i $(BR2_TARGET_ROOTFS_EXT2_INODES) \
+ -I $(BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES) \
+ -r $(BR2_TARGET_ROOTFS_EXT2_RESBLKS) \
+ -l "$(EXT2_LABEL)"
ROOTFS_EXT2_DEPENDENCIES = host-mke2img