1
0

Config-images.in 7.2 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_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 n if (TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501 || TARGET_x86_geos || TARGET_x86_alix2)
  163. default y
  164. config GRUB_SERIAL
  165. string "Serial port device"
  166. depends on GRUB_IMAGES
  167. default "hvc0" if TARGET_x86_xen_domu
  168. default "ttyS0" if ! TARGET_x86_xen_domu
  169. config GRUB_BAUDRATE
  170. int "Serial port baud rate"
  171. depends on GRUB_IMAGES
  172. default 38400 if TARGET_x86_generic
  173. default 115200
  174. config GRUB_FLOWCONTROL
  175. bool "Use RTE/CTS on serial console"
  176. depends on GRUB_SERIAL != ""
  177. default n
  178. config GRUB_BOOTOPTS
  179. string "Extra kernel boot options"
  180. depends on GRUB_IMAGES
  181. default "xencons=hvc" if TARGET_x86_xen_domu
  182. help
  183. If you don't know, just leave it blank.
  184. config GRUB_TIMEOUT
  185. string "Seconds to wait before booting the default entry"
  186. depends on GRUB_IMAGES
  187. default "5"
  188. help
  189. If you don't know, 5 seconds is a reasonable default.
  190. config GRUB_TITLE
  191. string "Title for the menu entry in GRUB"
  192. depends on GRUB_IMAGES
  193. default "OpenWrt"
  194. help
  195. This is the title of the GRUB menu entry.
  196. If unspecified, it defaults to OpenWrt.
  197. config VDI_IMAGES
  198. bool "Build VirtualBox image files (VDI)"
  199. depends on TARGET_x86 || TARGET_x86_64
  200. select GRUB_IMAGES
  201. select TARGET_IMAGES_PAD
  202. select PACKAGE_kmod-e1000
  203. config VMDK_IMAGES
  204. bool "Build VMware image files (VMDK)"
  205. depends on TARGET_x86 || TARGET_x86_64
  206. select GRUB_IMAGES
  207. select TARGET_IMAGES_PAD
  208. select PACKAGE_kmod-e1000
  209. config TARGET_IMAGES_PAD
  210. bool "Pad images to filesystem size (for JFFS2)"
  211. depends on GRUB_IMAGES
  212. config TARGET_IMAGES_GZIP
  213. bool "GZip images"
  214. depends on TARGET_IMAGES_PAD || TARGET_ROOTFS_EXT4FS || TARGET_x86
  215. default y
  216. comment "Image Options"
  217. source "target/linux/*/image/Config.in"
  218. config TARGET_KERNEL_PARTSIZE
  219. int "Kernel partition size (in MB)"
  220. depends on GRUB_IMAGES || USES_BOOT_PART
  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_mvebu || 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