aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Yardley <lst@openwrt.org>2007-02-22 22:35:08 +0000
committerTim Yardley <lst@openwrt.org>2007-02-22 22:35:08 +0000
commitfdea0fabd2ae00e0ea828fbfa8e9fe6af19d4b16 (patch)
tree9153a5caa8c1fd27b170c421ea72583e48163fc0
parentbc8f1f36cfba6b00a17d5671309d3f5f087fdc17 (diff)
downloadupstream-fdea0fabd2ae00e0ea828fbfa8e9fe6af19d4b16.tar.gz
upstream-fdea0fabd2ae00e0ea828fbfa8e9fe6af19d4b16.tar.bz2
upstream-fdea0fabd2ae00e0ea828fbfa8e9fe6af19d4b16.zip
make maxinodes configureable for ext2
SVN-Revision: 6345
-rw-r--r--Config.in17
-rw-r--r--include/image.mk2
2 files changed, 14 insertions, 5 deletions
diff --git a/Config.in b/Config.in
index 2efd1ce25d8..65c7dc6c3af 100644
--- a/Config.in
+++ b/Config.in
@@ -103,10 +103,19 @@ comment "Image Options"
source "target/linux/*/image/Config.in"
- config TARGET_ROOTFS_FSPART
- int "Filesystem part size (in MB)"
- depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT2FS
- default 16
+ config TARGET_ROOTFS_FSPART
+ int "Filesystem part size (in MB)"
+ depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT2FS
+ default 16
+ help
+ Allows you to change the filesystem partition size
+
+ config TARGET_ROOTFS_MAXINODE
+ int "Maximum number of inodes in filesystem"
+ depends X86_GRUB_IMAGES || TARGET_ROOTFS_EXT2FS
+ default 1500
+ help
+ Allows you to change the maximum number of inodes in the filesystem
endmenu
diff --git a/include/image.mk b/include/image.mk
index 4f638f02609..ec0512f904f 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -56,7 +56,7 @@ ifeq ($(CONFIG_TARGET_ROOTFS_EXT2FS),y)
E2SIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_FSPART)*1024)))
define Image/mkfs/ext2
- $(STAGING_DIR)/bin/genext2fs -U -b $(E2SIZE) -I 1500 -d $(BUILD_DIR)/root/ $(KDIR)/root.ext2
+ $(STAGING_DIR)/bin/genext2fs -U -b $(E2SIZE) -I $(CONFIG_TARGET_ROOTFS_MAXINODE) -d $(BUILD_DIR)/root/ $(KDIR)/root.ext2
$(call Image/Build,ext2)
endef
endif
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267