aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-19 03:27:24 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-19 03:27:24 +0000
commit002476016b414ade238809494cc5b85f59c141ce (patch)
treeff9af4c9c77a5ce5cfd5d9c6b076b8f46fc067b8 /include
parentd2e30add61be46ac839eb5bb7474b78f773b7fd9 (diff)
downloadupstream-002476016b414ade238809494cc5b85f59c141ce.tar.gz
upstream-002476016b414ade238809494cc5b85f59c141ce.tar.bz2
upstream-002476016b414ade238809494cc5b85f59c141ce.zip
make filesystem size selection generic (for ext2)
SVN-Revision: 5221
Diffstat (limited to 'include')
-rw-r--r--include/image.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/image.mk b/include/image.mk
index c738146851..13b722981a 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -48,9 +48,12 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
endif
+
ifeq ($(CONFIG_TARGET_ROOTFS_EXT2FS),y)
+ E2SIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_SIZE)*1024)))
+
define Image/mkfs/ext2
- $(STAGING_DIR)/bin/genext2fs -q -b 8192 -I 1500 -d $(BUILD_DIR)/root/ $(KDIR)/root.ext2
+ $(STAGING_DIR)/bin/genext2fs -q -b $(E2SIZE) -I 1500 -d $(BUILD_DIR)/root/ $(KDIR)/root.ext2
$(call Image/Build,ext2)
endef
endif