Config-images.in 7.0 KB

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