Config-images.in 6.5 KB

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