Config.in 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. config BR2_TARGET_ROOTFS_SQUASHFS4_GZIP
  56. bool "gzip"
  57. config BR2_TARGET_ROOTFS_SQUASHFS4_LZ4
  58. bool "lz4"
  59. config BR2_TARGET_ROOTFS_SQUASHFS4_LZMA
  60. bool "lzma"
  61. config BR2_TARGET_ROOTFS_SQUASHFS4_LZO
  62. bool "lzo"
  63. config BR2_TARGET_ROOTFS_SQUASHFS4_XZ
  64. bool "xz"
  65. config BR2_TARGET_ROOTFS_SQUASHFS4_ZSTD
  66. bool "zstd"
  67. endchoice
  68. config BR2_TARGET_ROOTFS_SQUASHFS_EXTREME_COMP
  69. bool "extreme compression when available"
  70. default y if BR2_TARGET_ROOTFS_SQUASHFS4_LZ4 # legacy
  71. help
  72. Use options to increase compression ration as much as
  73. possible, like using architecture-specific options, at
  74. the cost of time when assembling the filesystem image.
  75. For example:
  76. - with gzip and lzo, use -Xcompression-level 9
  77. - with xz use arch-specific bcj (branch-call-jump) filters
  78. - with zstd use -Xcompression-level 22
  79. - and more
  80. config BR2_TARGET_ROOTFS_SQUASHFS_COMP_OPTS
  81. string
  82. default "-Xcompression-level 9" if BR2_TARGET_ROOTFS_SQUASHFS4_GZIP
  83. default "-Xcompression-level 9" if BR2_TARGET_ROOTFS_SQUASHFS4_LZO
  84. default "-Xhc" if BR2_TARGET_ROOTFS_SQUASHFS4_LZ4
  85. default "-Xbcj arm,armthumb" if BR2_TARGET_ROOTFS_SQUASHFS4_XZ && (BR2_arm || BR_aarch64)
  86. default "-Xbcj powerpc" if BR2_TARGET_ROOTFS_SQUASHFS4_XZ && (BR2_powerpc || BR2_powerpc64)
  87. default "-Xbcj sparc" if BR2_TARGET_ROOTFS_SQUASHFS4_XZ && (BR2_sparc || BR2_sparc64)
  88. default "-Xbcj x86" if BR2_TARGET_ROOTFS_SQUASHFS4_XZ && (BR2_i386 || BR2_x86_64)
  89. default "-Xcompression-level 22" if BR2_TARGET_ROOTFS_SQUASHFS4_ZSTD
  90. depends on BR2_TARGET_ROOTFS_SQUASHFS_EXTREME_COMP
  91. endif