Kconfig 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. #
  2. # Configuration for initramfs
  3. #
  4. config INITRAMFS_SOURCE
  5. string "Initramfs source file(s)"
  6. default ""
  7. help
  8. This can be either a single cpio archive with a .cpio suffix or a
  9. space-separated list of directories and files for building the
  10. initramfs image. A cpio archive should contain a filesystem archive
  11. to be used as an initramfs image. Directories should contain a
  12. filesystem layout to be included in the initramfs image. Files
  13. should contain entries according to the format described by the
  14. "usr/gen_init_cpio" program in the kernel tree.
  15. When multiple directories and files are specified then the
  16. initramfs image will be the aggregate of all of them.
  17. See <file:Documentation/early-userspace/README> for more details.
  18. If you are not sure, leave it blank.
  19. config INITRAMFS_ROOT_UID
  20. int "User ID to map to 0 (user root)"
  21. depends on INITRAMFS_SOURCE!=""
  22. default "0"
  23. help
  24. This setting is only meaningful if the INITRAMFS_SOURCE is
  25. contains a directory. Setting this user ID (UID) to something
  26. other than "0" will cause all files owned by that UID to be
  27. owned by user root in the initial ramdisk image.
  28. If you are not sure, leave it set to "0".
  29. config INITRAMFS_ROOT_GID
  30. int "Group ID to map to 0 (group root)"
  31. depends on INITRAMFS_SOURCE!=""
  32. default "0"
  33. help
  34. This setting is only meaningful if the INITRAMFS_SOURCE is
  35. contains a directory. Setting this group ID (GID) to something
  36. other than "0" will cause all files owned by that GID to be
  37. owned by group root in the initial ramdisk image.
  38. If you are not sure, leave it set to "0".
  39. config RD_GZIP
  40. bool "Support initial ramdisks compressed using gzip" if EMBEDDED
  41. default y
  42. depends on BLK_DEV_INITRD
  43. select DECOMPRESS_GZIP
  44. help
  45. Support loading of a gzip encoded initial ramdisk or cpio buffer.
  46. If unsure, say Y.
  47. config RD_BZIP2
  48. bool "Support initial ramdisks compressed using bzip2" if EMBEDDED
  49. default !EMBEDDED
  50. depends on BLK_DEV_INITRD
  51. select DECOMPRESS_BZIP2
  52. help
  53. Support loading of a bzip2 encoded initial ramdisk or cpio buffer
  54. If unsure, say N.
  55. config RD_LZMA
  56. bool "Support initial ramdisks compressed using LZMA" if EMBEDDED
  57. default !EMBEDDED
  58. depends on BLK_DEV_INITRD
  59. select DECOMPRESS_LZMA
  60. help
  61. Support loading of a LZMA encoded initial ramdisk or cpio buffer
  62. If unsure, say N.
  63. if INITRAMFS_SOURCE!=""
  64. choice
  65. prompt "Built-in initramfs compression mode"
  66. help
  67. This option decides by which algorithm the builtin initramfs
  68. will be compressed. Several compression algorithms are
  69. available, which differ in efficiency, compression and
  70. decompression speed. Compression speed is only relevant
  71. when building a kernel. Decompression speed is relevant at
  72. each boot.
  73. If you have any problems with bzip2 or LZMA compressed
  74. initramfs, mail me (Alain Knaff) <alain@knaff.lu>.
  75. High compression options are mostly useful for users who are
  76. low on RAM, since it reduces the memory consumption during
  77. boot.
  78. If in doubt, select 'gzip'
  79. config INITRAMFS_COMPRESSION_NONE
  80. bool "None"
  81. help
  82. Do not compress the built-in initramfs at all. This may
  83. sound wasteful in space, but, you should be aware that the
  84. built-in initramfs will be compressed at a later stage
  85. anyways along with the rest of the kernel, on those
  86. architectures that support this.
  87. However, not compressing the initramfs may lead to slightly
  88. higher memory consumption during a short time at boot, while
  89. both the cpio image and the unpacked filesystem image will
  90. be present in memory simultaneously
  91. config INITRAMFS_COMPRESSION_GZIP
  92. bool "Gzip"
  93. depends on RD_GZIP
  94. help
  95. The old and tried gzip compression. Its compression ratio is
  96. the poorest among the 3 choices; however its speed (both
  97. compression and decompression) is the fastest.
  98. config INITRAMFS_COMPRESSION_BZIP2
  99. bool "Bzip2"
  100. depends on RD_BZIP2
  101. help
  102. Its compression ratio and speed is intermediate.
  103. Decompression speed is slowest among the three. The initramfs
  104. size is about 10% smaller with bzip2, in comparison to gzip.
  105. Bzip2 uses a large amount of memory. For modern kernels you
  106. will need at least 8MB RAM or more for booting.
  107. config INITRAMFS_COMPRESSION_LZMA
  108. bool "LZMA"
  109. depends on RD_LZMA
  110. help
  111. The most recent compression algorithm.
  112. Its ratio is best, decompression speed is between the other
  113. two. Compression is slowest. The initramfs size is about 33%
  114. smaller with LZMA in comparison to gzip.
  115. endchoice
  116. endif
  117. if INITRAMFS_SOURCE=""
  118. # The builtin initramfs is so small so we don't want to bug the user...
  119. config INITRAMFS_COMPRESSION_NONE
  120. bool
  121. default y
  122. endif