Config-images.in 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. # Copyright (C) 2006-2013 OpenWrt.org
  2. #
  3. # This is free software, licensed under the GNU General Public License v2.
  4. # See /LICENSE for more information.
  5. #
  6. menu "Target Images"
  7. menuconfig TARGET_ROOTFS_INITRAMFS
  8. bool "ramdisk"
  9. default y if USES_INITRAMFS
  10. help
  11. Embed the root filesystem into the kernel (initramfs).
  12. choice
  13. prompt "Compression"
  14. default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ar71xx
  15. default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
  16. default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_apm821xx
  17. default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_mpc85xx
  18. default TARGET_INITRAMFS_COMPRESSION_NONE
  19. depends on TARGET_ROOTFS_INITRAMFS
  20. help
  21. Select ramdisk compression.
  22. config TARGET_INITRAMFS_COMPRESSION_NONE
  23. bool "none"
  24. config TARGET_INITRAMFS_COMPRESSION_GZIP
  25. bool "gzip"
  26. config TARGET_INITRAMFS_COMPRESSION_BZIP2
  27. bool "bzip2"
  28. config TARGET_INITRAMFS_COMPRESSION_LZMA
  29. bool "lzma"
  30. config TARGET_INITRAMFS_COMPRESSION_LZO
  31. bool "lzo"
  32. config TARGET_INITRAMFS_COMPRESSION_LZ4
  33. bool "lz4"
  34. config TARGET_INITRAMFS_COMPRESSION_XZ
  35. bool "xz"
  36. endchoice
  37. config EXTERNAL_CPIO
  38. string
  39. prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
  40. default ""
  41. help
  42. Kernel uses specified external cpio as INITRAMFS_SOURCE.
  43. config TARGET_INITRAMFS_FORCE
  44. bool "Force"
  45. depends on TARGET_ROOTFS_INITRAMFS
  46. default n
  47. help
  48. Ignore the initramfs passed by the bootloader.
  49. comment "Root filesystem archives"
  50. config TARGET_ROOTFS_CPIOGZ
  51. bool "cpio.gz"
  52. default y if USES_CPIOGZ
  53. help
  54. Build a compressed cpio archive of the root filesystem.
  55. config TARGET_ROOTFS_TARGZ
  56. bool "tar.gz"
  57. default y if USES_TARGZ
  58. help
  59. Build a compressed tar archive of the root filesystem.
  60. comment "Root filesystem images"
  61. menuconfig TARGET_ROOTFS_EXT4FS
  62. bool "ext4"
  63. default y if USES_EXT4
  64. help
  65. Build an ext4 root filesystem.
  66. config TARGET_EXT4_RESERVED_PCT
  67. int "Percentage of reserved blocks in root filesystem"
  68. depends on TARGET_ROOTFS_EXT4FS
  69. default 0
  70. help
  71. Select the percentage of reserved blocks in the root filesystem.
  72. choice
  73. prompt "Root filesystem block size"
  74. default TARGET_EXT4_BLOCKSIZE_4K
  75. depends on TARGET_ROOTFS_EXT4FS
  76. help
  77. Select the block size of the root filesystem.
  78. config TARGET_EXT4_BLOCKSIZE_4K
  79. bool "4k"
  80. config TARGET_EXT4_BLOCKSIZE_2K
  81. bool "2k"
  82. config TARGET_EXT4_BLOCKSIZE_1K
  83. bool "1k"
  84. endchoice
  85. config TARGET_EXT4_BLOCKSIZE
  86. int
  87. default 4096 if TARGET_EXT4_BLOCKSIZE_4K
  88. default 2048 if TARGET_EXT4_BLOCKSIZE_2K
  89. default 1024 if TARGET_EXT4_BLOCKSIZE_1K
  90. depends on TARGET_ROOTFS_EXT4FS
  91. config TARGET_EXT4_JOURNAL
  92. bool "Create a journaling filesystem"
  93. depends on TARGET_ROOTFS_EXT4FS
  94. default n
  95. help
  96. Create an ext4 filesystem with a journal.
  97. config TARGET_ROOTFS_ISO
  98. bool "iso"
  99. default n
  100. depends on TARGET_x86_generic
  101. help
  102. Create a bootable ISO image.
  103. config TARGET_ROOTFS_JFFS2
  104. bool "jffs2"
  105. depends on USES_JFFS2
  106. help
  107. Build a JFFS2 root filesystem.
  108. config TARGET_ROOTFS_JFFS2_NAND
  109. bool "jffs2 for NAND"
  110. default y if USES_JFFS2_NAND
  111. depends on USES_JFFS2_NAND
  112. help
  113. Build a JFFS2 root filesystem for NAND flash.
  114. menuconfig TARGET_ROOTFS_SQUASHFS
  115. bool "squashfs"
  116. default y if USES_SQUASHFS
  117. help
  118. Build a squashfs-lzma root filesystem.
  119. config TARGET_SQUASHFS_BLOCK_SIZE
  120. int "Block size (in KiB)"
  121. depends on TARGET_ROOTFS_SQUASHFS
  122. default 64 if LOW_MEMORY_FOOTPRINT
  123. default 1024 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
  124. default 256
  125. menuconfig TARGET_ROOTFS_UBIFS
  126. bool "ubifs"
  127. default y if USES_UBIFS
  128. depends on USES_UBIFS
  129. help
  130. Build a UBIFS root filesystem.
  131. choice
  132. prompt "compression"
  133. default TARGET_UBIFS_COMPRESSION_ZLIB
  134. depends on TARGET_ROOTFS_UBIFS
  135. help
  136. Select compression type
  137. config TARGET_UBIFS_COMPRESSION_NONE
  138. bool "none"
  139. config TARGET_UBIFS_COMPRESSION_LZO
  140. bool "lzo"
  141. config TARGET_UBIFS_COMPRESSION_ZLIB
  142. bool "zlib"
  143. endchoice
  144. config TARGET_UBIFS_FREE_SPACE_FIXUP
  145. bool "free space fixup" if TARGET_ROOTFS_UBIFS
  146. default y
  147. help
  148. The filesystem free space has to be fixed up on first mount.
  149. config TARGET_UBIFS_JOURNAL_SIZE
  150. string
  151. prompt "journal size" if TARGET_ROOTFS_UBIFS
  152. default ""
  153. config GRUB_IMAGES
  154. bool "Build GRUB images (Linux x86 or x86_64 host only)"
  155. depends on TARGET_x86
  156. depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_ISO || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
  157. select PACKAGE_grub2
  158. default y
  159. config GRUB_CONSOLE
  160. bool "Use Console Terminal (in addition to Serial)"
  161. depends on GRUB_IMAGES
  162. default y
  163. config GRUB_SERIAL
  164. string "Serial port device"
  165. depends on GRUB_IMAGES
  166. default "ttyS0"
  167. config GRUB_BAUDRATE
  168. int "Serial port baud rate"
  169. depends on GRUB_IMAGES
  170. default 38400 if TARGET_x86_generic
  171. default 115200
  172. config GRUB_FLOWCONTROL
  173. bool "Use RTE/CTS on serial console"
  174. depends on GRUB_SERIAL != ""
  175. default n
  176. config GRUB_BOOTOPTS
  177. string "Extra kernel boot options"
  178. depends on GRUB_IMAGES
  179. help
  180. If you don't know, just leave it blank.
  181. config GRUB_TIMEOUT
  182. string "Seconds to wait before booting the default entry"
  183. depends on GRUB_IMAGES
  184. default "5"
  185. help
  186. If you don't know, 5 seconds is a reasonable default.
  187. config GRUB_TITLE
  188. string "Title for the menu entry in GRUB"
  189. depends on GRUB_IMAGES
  190. default "libreCMC"
  191. help
  192. This is the title of the GRUB menu entry.
  193. If unspecified, it defaults to libreCMC.
  194. config VDI_IMAGES
  195. bool "Build VirtualBox image files (VDI)"
  196. depends on TARGET_x86
  197. select GRUB_IMAGES
  198. select TARGET_IMAGES_PAD
  199. select PACKAGE_kmod-e1000
  200. config VMDK_IMAGES
  201. bool "Build VMware image files (VMDK)"
  202. depends on TARGET_x86
  203. select GRUB_IMAGES
  204. select TARGET_IMAGES_PAD
  205. select PACKAGE_kmod-e1000
  206. config TARGET_IMAGES_PAD
  207. bool "Pad images to filesystem size (for JFFS2)"
  208. depends on GRUB_IMAGES
  209. config TARGET_IMAGES_GZIP
  210. bool "GZip images"
  211. depends on TARGET_IMAGES_PAD || TARGET_ROOTFS_EXT4FS || TARGET_x86
  212. default y
  213. comment "Image Options"
  214. source "target/linux/*/image/Config.in"
  215. config TARGET_KERNEL_PARTSIZE
  216. int "Kernel partition size (in MB)"
  217. depends on GRUB_IMAGES || USES_BOOT_PART
  218. default 8 if TARGET_apm821xx_sata
  219. default 20 if TARGET_brcm2708
  220. default 16
  221. config TARGET_ROOTFS_PARTSIZE
  222. int "Root filesystem partition size (in MB)"
  223. depends on GRUB_IMAGES || USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS || TARGET_mvebu || TARGET_omap || TARGET_rb532 || TARGET_sunxi || TARGET_uml
  224. default 256
  225. help
  226. Select the root filesystem partition size.
  227. config TARGET_ROOTFS_PARTNAME
  228. string "Root partition on target device"
  229. depends on GRUB_IMAGES
  230. help
  231. Override the root partition on the final device. If left empty,
  232. it will be mounted by PARTUUID which makes the kernel find the
  233. appropriate disk automatically.
  234. endmenu