Config.in 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. config BR2_TARGET_ROOTFS_EROFS
  2. bool "erofs root filesystem"
  3. select BR2_PACKAGE_HOST_EROFS_UTILS
  4. help
  5. Build a EROFS root filesystem.
  6. if BR2_TARGET_ROOTFS_EROFS
  7. choice
  8. prompt "Compression algorithm"
  9. default BR2_TARGET_ROOTFS_EROFS_LZ4HC
  10. help
  11. Select the EROFS compression algorithm to use.
  12. LZ4HC (LZ4 High Compression) is the default algorithm and
  13. provides a good balance between compression ratio and speed,
  14. with increasing levels the compression ratio increases at the
  15. penalty of higher compression times, without significant
  16. decompression penalty.
  17. LZMA provides the best compression ratio but is significantly
  18. slower both in compression and decompression, and higher
  19. compression levels can have noticeable memory requirements.
  20. Custom compression allows for advanced configuration of the
  21. compression algorithms, and adds the possibility of
  22. finegrained per-file compression using compression hints.
  23. config BR2_TARGET_ROOTFS_EROFS_NONE
  24. bool "no compression"
  25. config BR2_TARGET_ROOTFS_EROFS_LZ4HC
  26. bool "lz4hc"
  27. config BR2_TARGET_ROOTFS_EROFS_LZMA
  28. bool "lzma"
  29. config BR2_TARGET_ROOTFS_EROFS_CUSTOM_COMPRESSION
  30. bool "custom"
  31. endchoice
  32. if BR2_TARGET_ROOTFS_EROFS_LZ4HC
  33. config BR2_TARGET_ROOTFS_EROFS_LZ4HC_LEVEL
  34. int "lz4hc compression level"
  35. default 9
  36. range 1 12
  37. help
  38. Specify the compression level for LZ4HC compression.
  39. endif # BR2_TARGET_ROOTFS_EROFS_LZ4HC
  40. if BR2_TARGET_ROOTFS_EROFS_LZMA
  41. config BR2_TARGET_ROOTFS_EROFS_LZMA_LEVEL
  42. int "lzma compression level"
  43. default 6
  44. range 0 109
  45. help
  46. Specify the compression level for LZMA compression.
  47. Values from 0 to 9 are used for the standard compression,
  48. values from 100 to 109 are used for the extreme compression.
  49. endif # BR2_TARGET_ROOTFS_EROFS_LZMA
  50. if BR2_TARGET_ROOTFS_EROFS_CUSTOM_COMPRESSION
  51. config BR2_TARGET_ROOTFS_EROFS_COMPRESSION_ALGORITHMS
  52. string "compression algorithms"
  53. default "lz4hc,12"
  54. help
  55. Specify arbitrary compression option, useful in combination
  56. with compression hints. Individual algorithms are separated
  57. by colon with optional level, e.g. "lz4hc,12:lzma".
  58. See erofs-utils documentaion for detailed information.
  59. config BR2_TARGET_ROOTFS_EROFS_COMPRESSION_HINTS
  60. string "path to compression hints file"
  61. default ""
  62. help
  63. Path to file containing compression hints. Each line in the
  64. file is defined by tokens separated by spaces in the
  65. following form. Optionally, instead of the given primary
  66. algorithm, algorithms can be specified with zero-based
  67. algorithm-index explicitly:
  68. <pcluster-size-in-bytes> [algorithm-index] <match-pattern>
  69. match-patterns are extended regular expressions, matched
  70. against absolute paths within the output filesystem, with no
  71. leading /.
  72. endif # BR2_TARGET_ROOTFS_EROFS_LZMA
  73. config BR2_TARGET_ROOTFS_EROFS_DEDUPE
  74. bool "enable data deduplication"
  75. depends on !BR2_TARGET_ROOTFS_EROFS_NONE
  76. help
  77. Enable global compressed data deduplication to reduce FS image
  78. size. Introduced in Linux 6.1.
  79. config BR2_TARGET_ROOTFS_EROFS_FRAGMENTS
  80. bool "enable fragments packing"
  81. help
  82. Pack the tail part (pcluster) of compressed files, or entire
  83. files, into a special inode for smaller image size.
  84. Introduced in Linux 6.1.
  85. config BR2_TARGET_ROOTFS_EROFS_ALL_FRAGMENTS
  86. bool "enable all-fragments packing"
  87. help
  88. Forcely record the whole files into a special inode for better
  89. compression. Introduced in Linux 6.1.
  90. config BR2_TARGET_ROOTFS_EROFS_ZTAILPACKING
  91. bool "enable ztailpacking"
  92. help
  93. Pack the tail part (pcluster) of compressed files into its
  94. metadata to save more space and the tail part I/O. Introduced
  95. in Linux 5.17.
  96. config BR2_TARGET_ROOTFS_EROFS_PCLUSTERSIZE
  97. int "pcluster size"
  98. default 0
  99. help
  100. Specify the maximum size of physical cluster in bytes, as a
  101. multiple of 4KiB, for the big pcluster feature in order to
  102. get much better compression ratios (thus better sequential
  103. read performance for common storage devices), which has been
  104. introduced since Linux 5.13.
  105. endif # BR2_TARGET_ROOTFS_EROFS