Config-images.in 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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. comment "Root filesystem archives"
  44. config TARGET_ROOTFS_CPIOGZ
  45. bool "cpio.gz"
  46. default y if USES_CPIOGZ
  47. help
  48. Build a compressed cpio archive of the root filesystem.
  49. config TARGET_ROOTFS_TARGZ
  50. bool "tar.gz"
  51. default y if USES_TARGZ
  52. help
  53. Build a compressed tar archive of the root filesystem.
  54. comment "Root filesystem images"
  55. menuconfig TARGET_ROOTFS_EXT4FS
  56. bool "ext4"
  57. default y if USES_EXT4
  58. help
  59. Build an ext4 root filesystem.
  60. config TARGET_EXT4_RESERVED_PCT
  61. int "Percentage of reserved blocks in root filesystem"
  62. depends on TARGET_ROOTFS_EXT4FS
  63. default 0
  64. help
  65. Select the percentage of reserved blocks in the root filesystem.
  66. choice
  67. prompt "Root filesystem block size"
  68. default TARGET_EXT4_BLOCKSIZE_4K
  69. depends on TARGET_ROOTFS_EXT4FS
  70. help
  71. Select the block size of the root filesystem.
  72. config TARGET_EXT4_BLOCKSIZE_4K
  73. bool "4k"
  74. config TARGET_EXT4_BLOCKSIZE_2K
  75. bool "2k"
  76. config TARGET_EXT4_BLOCKSIZE_1K
  77. bool "1k"
  78. endchoice
  79. config TARGET_EXT4_BLOCKSIZE
  80. int
  81. default 4096 if TARGET_EXT4_BLOCKSIZE_4K
  82. default 2048 if TARGET_EXT4_BLOCKSIZE_2K
  83. default 1024 if TARGET_EXT4_BLOCKSIZE_1K
  84. depends on TARGET_ROOTFS_EXT4FS
  85. config TARGET_EXT4_JOURNAL
  86. bool "Create a journaling filesystem"
  87. depends on TARGET_ROOTFS_EXT4FS
  88. default n
  89. help
  90. Create an ext4 filesystem with a journal.
  91. config TARGET_ROOTFS_ISO
  92. bool "iso"
  93. default n
  94. depends on TARGET_x86_generic
  95. help
  96. Create a bootable ISO image.
  97. config TARGET_ROOTFS_JFFS2
  98. bool "jffs2"
  99. depends on USES_JFFS2
  100. help
  101. Build a JFFS2 root filesystem.
  102. config TARGET_ROOTFS_JFFS2_NAND
  103. bool "jffs2 for NAND"
  104. default y if USES_JFFS2_NAND
  105. depends on USES_JFFS2_NAND
  106. help
  107. Build a JFFS2 root filesystem for NAND flash.
  108. menuconfig TARGET_ROOTFS_SQUASHFS
  109. bool "squashfs"
  110. default y if USES_SQUASHFS
  111. help
  112. Build a squashfs-lzma root filesystem.
  113. config TARGET_SQUASHFS_BLOCK_SIZE
  114. int "Block size (in KiB)"
  115. depends on TARGET_ROOTFS_SQUASHFS
  116. default 64 if LOW_MEMORY_FOOTPRINT
  117. default 256
  118. menuconfig TARGET_ROOTFS_UBIFS
  119. bool "ubifs"
  120. default y if USES_UBIFS
  121. depends on USES_UBIFS
  122. help
  123. Build a UBIFS root filesystem.
  124. choice
  125. prompt "compression"
  126. default TARGET_UBIFS_COMPRESSION_ZLIB
  127. depends on TARGET_ROOTFS_UBIFS
  128. help
  129. Select compression type
  130. config TARGET_UBIFS_COMPRESSION_NONE
  131. bool "none"
  132. config TARGET_UBIFS_COMPRESSION_LZO
  133. bool "lzo"
  134. config TARGET_UBIFS_COMPRESSION_ZLIB
  135. bool "zlib"
  136. endchoice
  137. config TARGET_UBIFS_FREE_SPACE_FIXUP
  138. bool "free space fixup" if TARGET_ROOTFS_UBIFS
  139. default y
  140. help
  141. The filesystem free space has to be fixed up on first mount.
  142. config TARGET_UBIFS_JOURNAL_SIZE
  143. string
  144. prompt "journal size" if TARGET_ROOTFS_UBIFS
  145. default ""
  146. config GRUB_IMAGES
  147. bool "Build GRUB images (Linux x86 or x86_64 host only)"
  148. depends on TARGET_x86
  149. depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_ISO || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
  150. select PACKAGE_grub2
  151. default y
  152. config GRUB_CONSOLE
  153. bool "Use Console Terminal (in addition to Serial)"
  154. depends on GRUB_IMAGES
  155. default n if (TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501 || TARGET_x86_geos || TARGET_x86_alix2)
  156. default y
  157. config GRUB_SERIAL
  158. string "Serial port device"
  159. depends on GRUB_IMAGES
  160. default "hvc0" if TARGET_x86_xen_domu
  161. default "ttyS0" if ! TARGET_x86_xen_domu
  162. config GRUB_BAUDRATE
  163. int "Serial port baud rate"
  164. depends on GRUB_IMAGES
  165. default 38400 if TARGET_x86_generic
  166. default 115200
  167. config GRUB_FLOWCONTROL
  168. bool "Use RTE/CTS on serial console"
  169. depends on GRUB_SERIAL != ""
  170. default n
  171. config GRUB_BOOTOPTS
  172. string "Extra kernel boot options"
  173. depends on GRUB_IMAGES
  174. default "xencons=hvc" if TARGET_x86_xen_domu
  175. help
  176. If you don't know, just leave it blank.
  177. config GRUB_TIMEOUT
  178. string "Seconds to wait before booting the default entry"
  179. depends on GRUB_IMAGES
  180. default "5"
  181. help
  182. If you don't know, 5 seconds is a reasonable default.
  183. config VDI_IMAGES
  184. bool "Build VirtualBox image files (VDI)"
  185. depends on TARGET_x86 || TARGET_x86_64
  186. select GRUB_IMAGES
  187. select TARGET_IMAGES_PAD
  188. select PACKAGE_kmod-e1000
  189. config VMDK_IMAGES
  190. bool "Build VMware image files (VMDK)"
  191. depends on TARGET_x86 || TARGET_x86_64
  192. select GRUB_IMAGES
  193. select TARGET_IMAGES_PAD
  194. select PACKAGE_kmod-e1000
  195. config TARGET_IMAGES_PAD
  196. bool "Pad images to filesystem size (for JFFS2)"
  197. depends on GRUB_IMAGES
  198. config TARGET_IMAGES_GZIP
  199. bool "GZip images"
  200. depends on TARGET_IMAGES_PAD || TARGET_ROOTFS_EXT4FS || TARGET_x86
  201. default y
  202. comment "Image Options"
  203. source "target/linux/*/image/Config.in"
  204. config TARGET_KERNEL_PARTSIZE
  205. int "Kernel partition size (in MB)"
  206. depends on GRUB_IMAGES
  207. default 16
  208. config TARGET_ROOTFS_PARTSIZE
  209. int "Root filesystem partition size (in MB)"
  210. depends on GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532 || TARGET_mvebu || TARGET_uml
  211. default 256
  212. help
  213. Select the root filesystem partition size.
  214. config TARGET_ROOTFS_PARTNAME
  215. string "Root partition on target device"
  216. depends on GRUB_IMAGES
  217. help
  218. Override the root partition on the final device. If left empty,
  219. it will be mounted by PARTUUID which makes the kernel find the
  220. appropriate disk automatically.
  221. endmenu