2
0

Config-images.in 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  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_BOOTOPTS
  167. string "Extra kernel boot options"
  168. depends on GRUB_IMAGES
  169. default "xencons=hvc" if TARGET_x86_xen_domu
  170. help
  171. If you don't know, just leave it blank.
  172. config GRUB_TIMEOUT
  173. string "Seconds to wait before booting the default entry"
  174. depends on GRUB_IMAGES
  175. default "5"
  176. help
  177. If you don't know, 5 seconds is a reasonable default.
  178. config VDI_IMAGES
  179. bool "Build VirtualBox image files (VDI)"
  180. depends on TARGET_x86 || TARGET_x86_64
  181. select GRUB_IMAGES
  182. select TARGET_IMAGES_PAD
  183. select PACKAGE_kmod-e1000
  184. config VMDK_IMAGES
  185. bool "Build VMware image files (VMDK)"
  186. depends on TARGET_x86 || TARGET_x86_64
  187. select GRUB_IMAGES
  188. select TARGET_IMAGES_PAD
  189. select PACKAGE_kmod-e1000
  190. config TARGET_IMAGES_PAD
  191. bool "Pad images to filesystem size (for JFFS2)"
  192. depends on GRUB_IMAGES
  193. config TARGET_IMAGES_GZIP
  194. bool "GZip images"
  195. depends on TARGET_IMAGES_PAD || TARGET_ROOTFS_EXT4FS
  196. default y
  197. comment "Image Options"
  198. source "target/linux/*/image/Config.in"
  199. config TARGET_KERNEL_PARTSIZE
  200. int "Kernel partition size (in MB)"
  201. depends on GRUB_IMAGES
  202. default 16
  203. config TARGET_ROOTFS_PARTSIZE
  204. int "Root filesystem partition size (in MB)"
  205. depends on GRUB_IMAGES || TARGET_ROOTFS_EXT4FS || TARGET_rb532 || TARGET_mvebu || TARGET_uml
  206. default 256
  207. help
  208. Select the root filesystem partition size.
  209. config TARGET_ROOTFS_PARTNAME
  210. string "Root partition on target device"
  211. depends on GRUB_IMAGES
  212. help
  213. Override the root partition on the final device. If left empty,
  214. it will be mounted by PARTUUID which makes the kernel find the
  215. appropriate disk automatically.
  216. endmenu