Config.in 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. config BR2_TARGET_ROOTFS_EXT2
  2. bool "ext2/3/4 root filesystem"
  3. select BR2_PACKAGE_HOST_E2FSPROGS
  4. help
  5. Build an ext2/3/4 root filesystem
  6. if BR2_TARGET_ROOTFS_EXT2
  7. config BR2_TARGET_ROOTFS_EXT2_2
  8. bool
  9. choice
  10. bool "ext2/3/4 variant"
  11. default BR2_TARGET_ROOTFS_EXT2_2r1
  12. config BR2_TARGET_ROOTFS_EXT2_2r1
  13. bool "ext2 (rev1)"
  14. select BR2_TARGET_ROOTFS_EXT2_2
  15. config BR2_TARGET_ROOTFS_EXT2_3
  16. bool "ext3"
  17. config BR2_TARGET_ROOTFS_EXT2_4
  18. bool "ext4"
  19. endchoice
  20. config BR2_TARGET_ROOTFS_EXT2_GEN
  21. int
  22. default 2 if BR2_TARGET_ROOTFS_EXT2_2
  23. default 3 if BR2_TARGET_ROOTFS_EXT2_3
  24. default 4 if BR2_TARGET_ROOTFS_EXT2_4
  25. config BR2_TARGET_ROOTFS_EXT2_LABEL
  26. string "filesystem label"
  27. default "rootfs"
  28. config BR2_TARGET_ROOTFS_EXT2_SIZE
  29. string "exact size"
  30. default BR2_TARGET_ROOTFS_EXT2_BLOCKS if BR2_TARGET_ROOTFS_EXT2_BLOCKS_WRAP # legacy 2017.08
  31. default "60M"
  32. help
  33. The size of the filesystem image. If it does not have a
  34. suffix, it is interpreted as power-of-two kilobytes. If it is
  35. suffixed by 'k', 'm', 'g', 't' (either upper-case or
  36. lower-case), then it is interpreted in power-of-two kilobytes,
  37. megabytes, gigabytes, terabytes, etc.
  38. config BR2_TARGET_ROOTFS_EXT2_INODES
  39. int "exact number of inodes (leave at 0 for auto calculation)"
  40. default 0
  41. config BR2_TARGET_ROOTFS_EXT2_INODE_SIZE
  42. int "inode size"
  43. default 256
  44. help
  45. Set the size of inodes, in bytes, as a power of 2 larger or
  46. equal to 128.
  47. Set to 0 to let the filesystem generator decide based on the
  48. file system size. If unsure, keep the default, 256.
  49. Note: 128-byte inodes suffer of the Y2K38 problem, and can't
  50. store timestamps beyond 2038-01-19 03:14:07Z.
  51. config BR2_TARGET_ROOTFS_EXT2_RESBLKS
  52. int "reserved blocks percentage"
  53. default 5
  54. help
  55. The number of blocks on the filesystem (as a percentage of the
  56. total number of blocks), that are reserved for use by root.
  57. Traditionally, this has been 5%, and all ext-related tools
  58. still default to reserving 5% when creating a new ext
  59. filesystem.
  60. config BR2_TARGET_ROOTFS_EXT2_MKFS_OPTIONS
  61. string "additional mke2fs options"
  62. default "-O ^64bit"
  63. help
  64. Specify a space-separated list of mke2fs options, including
  65. any ext2/3/4 filesystem features.
  66. For more information about the mke2fs options, see the manual
  67. page mke2fs(8).
  68. For more information about the ext2/3/4 features which can be
  69. set, see the manual page ext4(5).
  70. The default is "-O ^64bit", i.e. disable 64-bit filesystem
  71. support. This default value has been chosen because U-Boot
  72. versions before 2017.02 don't support this filesystem
  73. option: using it may make the filesystem unreadable by
  74. U-Boot.
  75. choice
  76. prompt "Compression method"
  77. default BR2_TARGET_ROOTFS_EXT2_NONE
  78. help
  79. Select compressor for ext2/3/4 filesystem of the root
  80. filesystem
  81. config BR2_TARGET_ROOTFS_EXT2_NONE
  82. bool "no compression"
  83. help
  84. Do not compress the ext2/3/4 filesystem.
  85. config BR2_TARGET_ROOTFS_EXT2_GZIP
  86. bool "gzip"
  87. help
  88. Do compress the ext2/3/4 filesystem with gzip.
  89. config BR2_TARGET_ROOTFS_EXT2_BZIP2
  90. bool "bzip2"
  91. help
  92. Do compress the ext2/3/4 filesystem with bzip2.
  93. config BR2_TARGET_ROOTFS_EXT2_LZ4
  94. bool "lz4"
  95. help
  96. Do compress the ext2 filesystem with lz4.
  97. config BR2_TARGET_ROOTFS_EXT2_LZMA
  98. bool "lzma"
  99. help
  100. Do compress the ext2/3/4 filesystem with lzma.
  101. config BR2_TARGET_ROOTFS_EXT2_LZO
  102. bool "lzo"
  103. help
  104. Do compress the ext2 filesystem with lzop.
  105. config BR2_TARGET_ROOTFS_EXT2_XZ
  106. bool "xz"
  107. help
  108. Do compress the ext2 filesystem with xz.
  109. config BR2_TARGET_ROOTFS_EXT2_ZSTD
  110. bool "zstd"
  111. help
  112. Do compress the ext2 filesystem with zstd.
  113. endchoice
  114. endif # BR2_TARGET_ROOTFS_EXT2