Config-images.in 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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 256
  124. menuconfig TARGET_ROOTFS_UBIFS
  125. bool "ubifs"
  126. default y if USES_UBIFS
  127. depends on USES_UBIFS
  128. help
  129. Build a UBIFS root filesystem.
  130. choice
  131. prompt "compression"
  132. default TARGET_UBIFS_COMPRESSION_ZLIB
  133. depends on TARGET_ROOTFS_UBIFS
  134. help
  135. Select compression type
  136. config TARGET_UBIFS_COMPRESSION_NONE
  137. bool "none"
  138. config TARGET_UBIFS_COMPRESSION_LZO
  139. bool "lzo"
  140. config TARGET_UBIFS_COMPRESSION_ZLIB
  141. bool "zlib"
  142. endchoice
  143. config TARGET_UBIFS_FREE_SPACE_FIXUP
  144. bool "free space fixup" if TARGET_ROOTFS_UBIFS
  145. default y
  146. help
  147. The filesystem free space has to be fixed up on first mount.
  148. config TARGET_UBIFS_JOURNAL_SIZE
  149. string
  150. prompt "journal size" if TARGET_ROOTFS_UBIFS
  151. default ""
  152. config GRUB_IMAGES
  153. bool "Build GRUB images (Linux x86 or x86_64 host only)"
  154. depends on TARGET_x86
  155. depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_ISO || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
  156. select PACKAGE_grub2
  157. default y
  158. config GRUB_CONSOLE
  159. bool "Use Console Terminal (in addition to Serial)"
  160. depends on GRUB_IMAGES
  161. default n if (TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501 || TARGET_x86_geos || TARGET_x86_alix2)
  162. default y
  163. config GRUB_SERIAL
  164. string "Serial port device"
  165. depends on GRUB_IMAGES
  166. default "hvc0" if TARGET_x86_xen_domu
  167. default "ttyS0" if ! TARGET_x86_xen_domu
  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. default "xencons=hvc" if TARGET_x86_xen_domu
  181. help
  182. If you don't know, just leave it blank.
  183. config GRUB_TIMEOUT
  184. string "Seconds to wait before booting the default entry"
  185. depends on GRUB_IMAGES
  186. default "5"
  187. help
  188. If you don't know, 5 seconds is a reasonable default.
  189. config VDI_IMAGES
  190. bool "Build VirtualBox image files (VDI)"
  191. depends on TARGET_x86 || TARGET_x86_64
  192. select GRUB_IMAGES
  193. select TARGET_IMAGES_PAD
  194. select PACKAGE_kmod-e1000
  195. config VMDK_IMAGES
  196. bool "Build VMware image files (VMDK)"
  197. depends on TARGET_x86 || TARGET_x86_64
  198. select GRUB_IMAGES
  199. select TARGET_IMAGES_PAD
  200. select PACKAGE_kmod-e1000
  201. config TARGET_IMAGES_PAD
  202. bool "Pad images to filesystem size (for JFFS2)"
  203. depends on GRUB_IMAGES
  204. config TARGET_IMAGES_GZIP
  205. bool "GZip images"
  206. depends on TARGET_IMAGES_PAD || TARGET_ROOTFS_EXT4FS || TARGET_x86
  207. default y
  208. comment "Image Options"
  209. source "target/linux/*/image/Config.in"
  210. config TARGET_KERNEL_PARTSIZE
  211. int "Kernel partition size (in MB)"
  212. depends on GRUB_IMAGES
  213. default 16
  214. config TARGET_ROOTFS_PARTSIZE
  215. int "Root filesystem partition size (in MB)"
  216. depends on GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532 || TARGET_mvebu || TARGET_uml
  217. default 256
  218. help
  219. Select the root filesystem partition size.
  220. config TARGET_ROOTFS_PARTNAME
  221. string "Root partition on target device"
  222. depends on GRUB_IMAGES
  223. help
  224. Override the root partition on the final device. If left empty,
  225. it will be mounted by PARTUUID which makes the kernel find the
  226. appropriate disk automatically.
  227. endmenu