Config.in 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. config BR2_TARGET_ROOTFS_SQUASHFS
  2. bool "squashfs root filesystem"
  3. help
  4. Build a squashfs root filesystem
  5. if BR2_TARGET_ROOTFS_SQUASHFS
  6. choice
  7. prompt "block size"
  8. default BR2_TARGET_ROOTFS_SQUASHFS_BS_128K
  9. help
  10. Data block size. Bigger values can improve
  11. compression ratio.
  12. If unsure, leave at 128k (default).
  13. config BR2_TARGET_ROOTFS_SQUASHFS_BS_4K
  14. bool "4k"
  15. config BR2_TARGET_ROOTFS_SQUASHFS_BS_8K
  16. bool "8k"
  17. config BR2_TARGET_ROOTFS_SQUASHFS_BS_16K
  18. bool "16k"
  19. config BR2_TARGET_ROOTFS_SQUASHFS_BS_32K
  20. bool "32k"
  21. config BR2_TARGET_ROOTFS_SQUASHFS_BS_64K
  22. bool "64k"
  23. config BR2_TARGET_ROOTFS_SQUASHFS_BS_128K
  24. bool "128k"
  25. config BR2_TARGET_ROOTFS_SQUASHFS_BS_256K
  26. bool "256k"
  27. config BR2_TARGET_ROOTFS_SQUASHFS_BS_512K
  28. bool "512k"
  29. config BR2_TARGET_ROOTFS_SQUASHFS_BS_1024K
  30. bool "1024k"
  31. endchoice
  32. config BR2_TARGET_ROOTFS_SQUASHFS_BS
  33. string
  34. default "4K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_4K
  35. default "8K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_8K
  36. default "16K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_16K
  37. default "32K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_32K
  38. default "64K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_64K
  39. default "128K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_128K
  40. default "256K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_256K
  41. default "512K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_512K
  42. default "1024K" if BR2_TARGET_ROOTFS_SQUASHFS_BS_1024K
  43. config BR2_TARGET_ROOTFS_SQUASHFS_PAD
  44. bool "pad to a 4K boundary"
  45. default y # legacy was always ON
  46. help
  47. Say 'y' here (the default) to pad the the filesystem image
  48. to a 4K boundary. Say 'n' to disable padding.
  49. choice
  50. prompt "Compression algorithm"
  51. default BR2_TARGET_ROOTFS_SQUASHFS4_GZIP
  52. help
  53. Select the squashfs compression algorithm to use when
  54. generating the filesystem.
  55. Select "none" to disable compression.
  56. config BR2_TARGET_ROOTFS_SQUASHFS4_GZIP
  57. bool "gzip"
  58. config BR2_TARGET_ROOTFS_SQUASHFS4_LZ4
  59. bool "lz4"
  60. config BR2_TARGET_ROOTFS_SQUASHFS4_LZMA
  61. bool "lzma"
  62. config BR2_TARGET_ROOTFS_SQUASHFS4_LZO
  63. bool "lzo"
  64. config BR2_TARGET_ROOTFS_SQUASHFS4_XZ
  65. bool "xz"
  66. config BR2_TARGET_ROOTFS_SQUASHFS4_ZSTD
  67. bool "zstd"
  68. config BR2_TARGET_ROOTFS_SQUASHFS4_NONE
  69. bool "none"
  70. endchoice
  71. config BR2_TARGET_ROOTFS_SQUASHFS_EXTREME_COMP
  72. bool "extreme compression when available"
  73. default y if BR2_TARGET_ROOTFS_SQUASHFS4_LZ4 # legacy
  74. depends on !BR2_TARGET_ROOTFS_SQUASHFS4_NONE
  75. help
  76. Use options to increase compression ration as much as
  77. possible, like using architecture-specific options, at
  78. the cost of time when assembling the filesystem image.
  79. For example:
  80. - with gzip and lzo, use -Xcompression-level 9
  81. - with xz use arch-specific bcj (branch-call-jump) filters
  82. - with zstd use -Xcompression-level 22
  83. - and more
  84. config BR2_TARGET_ROOTFS_SQUASHFS_COMP_OPTS
  85. string
  86. default "-Xcompression-level 9" if BR2_TARGET_ROOTFS_SQUASHFS4_GZIP
  87. default "-Xcompression-level 9" if BR2_TARGET_ROOTFS_SQUASHFS4_LZO
  88. default "-Xhc" if BR2_TARGET_ROOTFS_SQUASHFS4_LZ4
  89. default "-Xbcj arm,armthumb" if BR2_TARGET_ROOTFS_SQUASHFS4_XZ && (BR2_arm || BR_aarch64)
  90. default "-Xbcj powerpc" if BR2_TARGET_ROOTFS_SQUASHFS4_XZ && (BR2_powerpc || BR2_powerpc64)
  91. default "-Xbcj sparc" if BR2_TARGET_ROOTFS_SQUASHFS4_XZ && (BR2_sparc || BR2_sparc64)
  92. default "-Xbcj x86" if BR2_TARGET_ROOTFS_SQUASHFS4_XZ && (BR2_i386 || BR2_x86_64)
  93. default "-Xcompression-level 22" if BR2_TARGET_ROOTFS_SQUASHFS4_ZSTD
  94. depends on BR2_TARGET_ROOTFS_SQUASHFS_EXTREME_COMP
  95. endif