|
@@ -4,32 +4,32 @@
|
|
#
|
|
#
|
|
################################################################################
|
|
################################################################################
|
|
|
|
|
|
-EXT2_SIZE = $(call qstrip,$(BR2_TARGET_ROOTFS_EXT2_SIZE))
|
|
|
|
-ifeq ($(BR2_TARGET_ROOTFS_EXT2)-$(EXT2_SIZE),y-)
|
|
|
|
|
|
+ROOTFS_EXT2_SIZE = $(call qstrip,$(BR2_TARGET_ROOTFS_EXT2_SIZE))
|
|
|
|
+ifeq ($(BR2_TARGET_ROOTFS_EXT2)-$(ROOTFS_EXT2_SIZE),y-)
|
|
$(error BR2_TARGET_ROOTFS_EXT2_SIZE cannot be empty)
|
|
$(error BR2_TARGET_ROOTFS_EXT2_SIZE cannot be empty)
|
|
endif
|
|
endif
|
|
|
|
|
|
-EXT2_MKFS_OPTS = $(call qstrip,$(BR2_TARGET_ROOTFS_EXT2_MKFS_OPTIONS))
|
|
|
|
|
|
+ROOTFS_EXT2_MKFS_OPTS = $(call qstrip,$(BR2_TARGET_ROOTFS_EXT2_MKFS_OPTIONS))
|
|
|
|
|
|
# qstrip results in stripping consecutive spaces into a single one. So the
|
|
# 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.
|
|
# variable is not qstrip-ed to preserve the integrity of the string value.
|
|
-EXT2_LABEL = $(subst ",,$(BR2_TARGET_ROOTFS_EXT2_LABEL))
|
|
|
|
|
|
+ROOTFS_EXT2_LABEL = $(subst ",,$(BR2_TARGET_ROOTFS_EXT2_LABEL))
|
|
#" Syntax highlighting... :-/ )
|
|
#" Syntax highlighting... :-/ )
|
|
|
|
|
|
-EXT2_OPTS = \
|
|
|
|
|
|
+ROOTFS_EXT2_OPTS = \
|
|
-d $(TARGET_DIR) \
|
|
-d $(TARGET_DIR) \
|
|
-r $(BR2_TARGET_ROOTFS_EXT2_REV) \
|
|
-r $(BR2_TARGET_ROOTFS_EXT2_REV) \
|
|
-N $(BR2_TARGET_ROOTFS_EXT2_INODES) \
|
|
-N $(BR2_TARGET_ROOTFS_EXT2_INODES) \
|
|
-m $(BR2_TARGET_ROOTFS_EXT2_RESBLKS) \
|
|
-m $(BR2_TARGET_ROOTFS_EXT2_RESBLKS) \
|
|
-L "$(EXT2_LABEL)" \
|
|
-L "$(EXT2_LABEL)" \
|
|
- $(EXT2_MKFS_OPTS)
|
|
|
|
|
|
+ $(ROOTFS_EXT2_MKFS_OPTS)
|
|
|
|
|
|
ROOTFS_EXT2_DEPENDENCIES = host-e2fsprogs
|
|
ROOTFS_EXT2_DEPENDENCIES = host-e2fsprogs
|
|
|
|
|
|
define ROOTFS_EXT2_CMD
|
|
define ROOTFS_EXT2_CMD
|
|
rm -f $@
|
|
rm -f $@
|
|
- $(HOST_DIR)/sbin/mkfs.ext$(BR2_TARGET_ROOTFS_EXT2_GEN) $(EXT2_OPTS) $@ \
|
|
|
|
- "$(EXT2_SIZE)" \
|
|
|
|
|
|
+ $(HOST_DIR)/sbin/mkfs.ext$(BR2_TARGET_ROOTFS_EXT2_GEN) $(ROOTFS_EXT2_OPTS) $@ \
|
|
|
|
+ "$(ROOTFS_EXT2_SIZE)" \
|
|
|| { ret=$$?; \
|
|
|| { ret=$$?; \
|
|
echo "*** Maybe you need to increase the filesystem size (BR2_TARGET_ROOTFS_EXT2_SIZE)" 1>&2; \
|
|
echo "*** Maybe you need to increase the filesystem size (BR2_TARGET_ROOTFS_EXT2_SIZE)" 1>&2; \
|
|
exit $$ret; \
|
|
exit $$ret; \
|