diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-10-19 03:27:24 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-10-19 03:27:24 +0000 |
commit | 0f07b5babf285e6decd344262c550028949d33f7 (patch) | |
tree | 112c74ed8cf294246ade0f6b76561b866a238493 /include | |
parent | b202f858b855f38fe0ddbd103d6dd696e7e12c58 (diff) | |
download | upstream-0f07b5babf285e6decd344262c550028949d33f7.tar.gz upstream-0f07b5babf285e6decd344262c550028949d33f7.tar.bz2 upstream-0f07b5babf285e6decd344262c550028949d33f7.zip |
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 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 |