diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-10-19 03:27:24 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-10-19 03:27:24 +0000 |
commit | 00b9fc10fe104cb6b4c835fdf19f739121722ed6 (patch) | |
tree | 112c74ed8cf294246ade0f6b76561b866a238493 /include | |
parent | 8a7ccc3ff97c236f809f5b0fc067512307792570 (diff) |
make filesystem size selection generic (for ext2)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5221 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r-- | include/image.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/image.mk b/include/image.mk index c73814685..13b722981 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 |