Config-images.in 8.3 KB

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