[Buildroot] [PATCH 1/2] ext2.mk: ensure file system block count is not zero (0)

J Evans g4 at novadsp.com
Sat Apr 29 16:01:21 UTC 2017


Signed-off-by: J Evans <g4 at novadsp.com>
---
 fs/ext2/ext2.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk
index 30f1d17..3a0c764 100644
--- a/fs/ext2/ext2.mk
+++ b/fs/ext2/ext2.mk
@@ -6,7 +6,9 @@
 
 EXT2_OPTS = -G $(BR2_TARGET_ROOTFS_EXT2_GEN) -R $(BR2_TARGET_ROOTFS_EXT2_REV)
 
-ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)),0)
+ifeq ($(strip $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)),0)
+$(error BR2_TARGET_ROOTFS_EXT2_BLOCKS cannot be zero (0))
+else
 EXT2_OPTS += -b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)
 endif
 
-- 
2.7.4



More information about the buildroot mailing list