Config.in 3.9 KB

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