Config-images.in 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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 rootfs 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 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 the root filesystem
  52. comment "Root filesystem images"
  53. config TARGET_ROOTFS_EXT4FS
  54. bool "ext4"
  55. default y if USES_EXT4
  56. help
  57. Ext4 file system with some free space for uml images
  58. config TARGET_ROOTFS_ISO
  59. bool "iso"
  60. default n
  61. depends on TARGET_x86_generic
  62. help
  63. Create some bootable ISO image
  64. config TARGET_ROOTFS_JFFS2
  65. bool "jffs2"
  66. default y if USES_JFFS2
  67. help
  68. Build a jffs2 root filesystem
  69. config TARGET_ROOTFS_JFFS2_NAND
  70. bool "jffs2 for NAND"
  71. default y if USES_JFFS2_NAND
  72. depends on USES_JFFS2_NAND
  73. help
  74. Build a jffs2 root filesystem for NAND flash
  75. config TARGET_ROOTFS_SQUASHFS
  76. bool "squashfs"
  77. default y if USES_SQUASHFS
  78. help
  79. Build a squashfs-lzma root filesystem
  80. menuconfig TARGET_ROOTFS_UBIFS
  81. bool "ubifs"
  82. default y if USES_UBIFS
  83. depends on USES_UBIFS
  84. help
  85. Build a ubifs root filesystem
  86. choice
  87. prompt "compression"
  88. default TARGET_UBIFS_COMPRESSION_NONE
  89. depends on TARGET_ROOTFS_UBIFS
  90. help
  91. Select compression type
  92. config TARGET_UBIFS_COMPRESSION_NONE
  93. bool "none"
  94. config TARGET_UBIFS_COMPRESSION_LZO
  95. bool "lzo"
  96. config TARGET_UBIFS_COMPRESSION_ZLIB
  97. bool "zlib"
  98. endchoice
  99. config TARGET_UBIFS_FREE_SPACE_FIXUP
  100. bool "free space fixup" if TARGET_ROOTFS_UBIFS
  101. default y
  102. help
  103. The file-system free space has to be fixed up on first mount
  104. config TARGET_UBIFS_JOURNAL_SIZE
  105. string
  106. prompt "journal size" if TARGET_ROOTFS_UBIFS
  107. default ""
  108. config GRUB_IMAGES
  109. bool "Build GRUB images (Linux x86 or x86_64 host only)"
  110. depends on TARGET_x86_64 || (TARGET_x86 && !(TARGET_x86_olpc || TARGET_x86_rdc))
  111. depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_ISO || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
  112. select PACKAGE_grub2
  113. default y
  114. config GRUB_CONSOLE
  115. bool "Use Console Terminal (in addition to Serial)"
  116. depends on GRUB_IMAGES
  117. default n if (TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501 || TARGET_x86_geos || TARGET_x86_alix2)
  118. default y
  119. config GRUB_SERIAL
  120. string "Serial port device"
  121. depends on GRUB_IMAGES
  122. default "hvc0" if TARGET_x86_xen_domu
  123. default "ttyS0" if ! TARGET_x86_xen_domu
  124. config GRUB_BAUDRATE
  125. int "Serial port baud rate"
  126. depends on GRUB_IMAGES
  127. default 19200 if TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501
  128. default 38400 if TARGET_x86_alix2
  129. default 115200 if TARGET_x86_geos || TARGET_x86_kvm_guest
  130. default 38400
  131. config GRUB_BOOTOPTS
  132. string "Extra kernel boot options"
  133. depends on GRUB_IMAGES
  134. default "xencons=hvc" if TARGET_x86_xen_domu
  135. help
  136. If you don't know, just leave it blank.
  137. config GRUB_TIMEOUT
  138. string "Seconds to wait before booting the default entry"
  139. depends on GRUB_IMAGES
  140. default "5"
  141. help
  142. If you don't know, 5 seconds is a reasonable default.
  143. config VDI_IMAGES
  144. bool "Build VirtualBox image files (VDI)"
  145. depends on TARGET_x86 || TARGET_x86_64
  146. select GRUB_IMAGES
  147. select TARGET_ROOTFS_EXT4FS
  148. select PACKAGE_kmod-e1000
  149. config VMDK_IMAGES
  150. bool "Build VMware image files (VMDK)"
  151. depends on TARGET_x86 || TARGET_x86_64
  152. select GRUB_IMAGES
  153. select TARGET_ROOTFS_EXT4FS
  154. select PACKAGE_kmod-e1000
  155. config TARGET_IMAGES_PAD
  156. bool "Pad images to filesystem size (for JFFS2)"
  157. depends on OLPC_BOOTSCRIPT_IMAGES || GRUB_IMAGES
  158. config TARGET_IMAGES_GZIP
  159. bool "GZip images"
  160. depends on TARGET_IMAGES_PAD || TARGET_ROOTFS_EXT4FS
  161. default y
  162. comment "Image Options"
  163. source "target/linux/*/image/Config.in"
  164. config TARGET_KERNEL_PARTSIZE
  165. int "Kernel partition size (in MB)"
  166. depends on OLPC_BOOTSCRIPT_IMAGES || GRUB_IMAGES
  167. default 4
  168. config TARGET_ROOTFS_PARTSIZE
  169. int "Root filesystem partition size (in MB)"
  170. depends on GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532
  171. default 48
  172. help
  173. Allows you to change the root filesystem partition size
  174. config TARGET_ROOTFS_PARTNAME
  175. string "Root partition on target device"
  176. depends on OLPC_BOOTSCRIPT_IMAGES || GRUB_IMAGES
  177. default "/dev/vda2" if TARGET_x86_kvm_guest
  178. default "/dev/xvda2" if TARGET_x86_xen_domu
  179. default "/dev/sda2" if ! (TARGET_x86_kvm_guest || TARGET_x86_xen_domu)
  180. help
  181. The root partition on the final device. If you don't know,
  182. you probably want the default (/dev/sda2).
  183. config TARGET_ROOTFS_MAXINODE
  184. int "Maximum number of inodes in root filesystem"
  185. depends on TARGET_ROOTFS_EXT4FS
  186. default 6000
  187. help
  188. Allows you to change the maximum number of inodes in the root filesystem
  189. config TARGET_ROOTFS_RESERVED_PCT
  190. int "Percentage of reserved blocks in root filesystem"
  191. depends on TARGET_ROOTFS_EXT4FS
  192. default 0
  193. help
  194. Allows you to change the percentage of reserved blocks in the root filesystem
  195. menuconfig TARGET_ROOTFS_INCLUDE_KERNEL
  196. bool "Include kernel in root filesystem"
  197. depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS
  198. default n
  199. help
  200. Include the kernel image in the rootfs. Typically the image is placed
  201. below /boot.
  202. config TARGET_ROOTFS_INCLUDE_UIMAGE
  203. bool "include uImage" if TARGET_ROOTFS_INCLUDE_KERNEL
  204. default y
  205. help
  206. This option might not apply to all targets. Make sure
  207. to check target/linux/<your_target>/image/Makefile to
  208. see if this option will have any effect.
  209. config TARGET_ROOTFS_INCLUDE_ZIMAGE
  210. bool "include zImage" if TARGET_ROOTFS_INCLUDE_KERNEL
  211. default y
  212. help
  213. This option might not apply to all targets. Make sure
  214. to check target/linux/<your_target>/image/Makefile to
  215. see if this option will have any effect.
  216. config TARGET_ROOTFS_INCLUDE_FIT
  217. bool "include FIT" if TARGET_ROOTFS_INCLUDE_KERNEL
  218. default y
  219. help
  220. This option might not apply to all targets. Make sure
  221. to check target/linux/<your_target>/image/Makefile to
  222. see if this option will have any effect.
  223. config TARGET_ROOTFS_INCLUDE_DTB
  224. bool "Include DTB in root filesystem"
  225. depends on USES_DEVICETREE && (TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS)
  226. default n
  227. help
  228. Include the device tree blob file(s) in the rootfs. Typically the DTBs
  229. are placed below /boot.
  230. endmenu