Config-images.in 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  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_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 38400 if TARGET_x86_generic
  170. default 38400 if TARGET_x86_geode
  171. default 115200
  172. config GRUB_BOOTOPTS
  173. string "Extra kernel boot options"
  174. depends on GRUB_IMAGES
  175. default "xencons=hvc" if TARGET_x86_xen_domu
  176. help
  177. If you don't know, just leave it blank.
  178. config GRUB_TIMEOUT
  179. string "Seconds to wait before booting the default entry"
  180. depends on GRUB_IMAGES
  181. default "5"
  182. help
  183. If you don't know, 5 seconds is a reasonable default.
  184. config VDI_IMAGES
  185. bool "Build VirtualBox image files (VDI)"
  186. depends on TARGET_x86 || TARGET_x86_64
  187. select GRUB_IMAGES
  188. select TARGET_IMAGES_PAD
  189. select PACKAGE_kmod-e1000
  190. config VMDK_IMAGES
  191. bool "Build VMware image files (VMDK)"
  192. depends on TARGET_x86 || TARGET_x86_64
  193. select GRUB_IMAGES
  194. select TARGET_IMAGES_PAD
  195. select PACKAGE_kmod-e1000
  196. config TARGET_IMAGES_PAD
  197. bool "Pad images to filesystem size (for JFFS2)"
  198. depends on GRUB_IMAGES
  199. config TARGET_IMAGES_GZIP
  200. bool "GZip images"
  201. depends on TARGET_IMAGES_PAD || TARGET_ROOTFS_EXT4FS
  202. default y
  203. comment "Image Options"
  204. source "target/linux/*/image/Config.in"
  205. config TARGET_KERNEL_PARTSIZE
  206. int "Kernel partition size (in MB)"
  207. depends on GRUB_IMAGES
  208. default 4
  209. config TARGET_ROOTFS_PARTSIZE
  210. int "Root filesystem partition size (in MB)"
  211. depends on GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
  212. default 48
  213. help
  214. Select the root filesystem partition size.
  215. config TARGET_ROOTFS_PARTNAME
  216. string "Root partition on target device"
  217. depends on GRUB_IMAGES
  218. help
  219. Override the root partition on the final device. If left empty,
  220. it will be mounted by PARTUUID which makes the kernel find the
  221. appropriate disk automatically.
  222. menuconfig TARGET_ROOTFS_INCLUDE_KERNEL
  223. bool "Include kernel in root filesystem"
  224. depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
  225. default n
  226. help
  227. Include the kernel image in the rootfs. Typically, the image is placed
  228. below /boot.
  229. config TARGET_ROOTFS_INCLUDE_UIMAGE
  230. bool "include uImage" if TARGET_ROOTFS_INCLUDE_KERNEL
  231. default y
  232. help
  233. This option might not apply to all targets. Make sure
  234. to check target/linux/<your_target>/image/Makefile to
  235. see if this option will have any effect.
  236. config TARGET_ROOTFS_INCLUDE_ZIMAGE
  237. bool "include zImage" if TARGET_ROOTFS_INCLUDE_KERNEL
  238. default y
  239. help
  240. This option might not apply to all targets. Make sure
  241. to check target/linux/<your_target>/image/Makefile to
  242. see if this option will have any effect.
  243. config TARGET_ROOTFS_INCLUDE_FIT
  244. bool "include FIT" if TARGET_ROOTFS_INCLUDE_KERNEL
  245. default y
  246. help
  247. This option might not apply to all targets. Make sure
  248. to check target/linux/<your_target>/image/Makefile to
  249. see if this option will have any effect.
  250. config TARGET_ROOTFS_INCLUDE_DTB
  251. bool "Include DTB in root filesystem"
  252. depends on USES_DEVICETREE && (TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS)
  253. default n
  254. help
  255. Include the device tree blob file(s) in the rootfs. Typically the DTBs
  256. are placed below /boot.
  257. endmenu