2
0

Config-images.in 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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_apm821xx
  15. default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ath79_mikrotik
  16. default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_lantiq
  17. default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_mpc85xx
  18. default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
  19. default TARGET_INITRAMFS_COMPRESSION_NONE
  20. depends on TARGET_ROOTFS_INITRAMFS
  21. help
  22. Select ramdisk compression.
  23. config TARGET_INITRAMFS_COMPRESSION_NONE
  24. bool "none"
  25. config TARGET_INITRAMFS_COMPRESSION_GZIP
  26. bool "gzip"
  27. config TARGET_INITRAMFS_COMPRESSION_BZIP2
  28. bool "bzip2"
  29. config TARGET_INITRAMFS_COMPRESSION_LZMA
  30. bool "lzma"
  31. config TARGET_INITRAMFS_COMPRESSION_LZO
  32. bool "lzo"
  33. config TARGET_INITRAMFS_COMPRESSION_LZ4
  34. bool "lz4"
  35. config TARGET_INITRAMFS_COMPRESSION_XZ
  36. bool "xz"
  37. endchoice
  38. config EXTERNAL_CPIO
  39. string
  40. prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS
  41. default ""
  42. help
  43. Kernel uses specified external cpio as INITRAMFS_SOURCE.
  44. config TARGET_INITRAMFS_FORCE
  45. bool "Force"
  46. depends on TARGET_ROOTFS_INITRAMFS
  47. default n
  48. help
  49. Ignore the initramfs passed by the bootloader.
  50. comment "Root filesystem archives"
  51. config TARGET_ROOTFS_CPIOGZ
  52. bool "cpio.gz"
  53. default y if USES_CPIOGZ
  54. help
  55. Build a compressed cpio archive of the root filesystem.
  56. config TARGET_ROOTFS_TARGZ
  57. bool "tar.gz"
  58. default y if USES_TARGZ
  59. help
  60. Build a compressed tar archive of the root filesystem.
  61. comment "Root filesystem images"
  62. menuconfig TARGET_ROOTFS_EXT4FS
  63. bool "ext4"
  64. default y if USES_EXT4
  65. help
  66. Build an ext4 root filesystem.
  67. config TARGET_EXT4_RESERVED_PCT
  68. int "Percentage of reserved blocks in root filesystem"
  69. depends on TARGET_ROOTFS_EXT4FS
  70. default 0
  71. help
  72. Select the percentage of reserved blocks in the root filesystem.
  73. choice
  74. prompt "Root filesystem block size"
  75. default TARGET_EXT4_BLOCKSIZE_4K
  76. depends on TARGET_ROOTFS_EXT4FS
  77. help
  78. Select the block size of the root filesystem.
  79. config TARGET_EXT4_BLOCKSIZE_4K
  80. bool "4k"
  81. config TARGET_EXT4_BLOCKSIZE_2K
  82. bool "2k"
  83. config TARGET_EXT4_BLOCKSIZE_1K
  84. bool "1k"
  85. endchoice
  86. config TARGET_EXT4_BLOCKSIZE
  87. int
  88. default 4096 if TARGET_EXT4_BLOCKSIZE_4K
  89. default 2048 if TARGET_EXT4_BLOCKSIZE_2K
  90. default 1024 if TARGET_EXT4_BLOCKSIZE_1K
  91. depends on TARGET_ROOTFS_EXT4FS
  92. config TARGET_EXT4_JOURNAL
  93. bool "Create a journaling filesystem"
  94. depends on TARGET_ROOTFS_EXT4FS
  95. default n
  96. help
  97. Create an ext4 filesystem with a journal.
  98. config TARGET_ROOTFS_JFFS2
  99. bool "jffs2"
  100. depends on USES_JFFS2
  101. help
  102. Build a JFFS2 root filesystem.
  103. config TARGET_ROOTFS_JFFS2_NAND
  104. bool "jffs2 for NAND"
  105. default y if USES_JFFS2_NAND
  106. depends on USES_JFFS2_NAND
  107. help
  108. Build a JFFS2 root filesystem for NAND flash.
  109. menuconfig TARGET_ROOTFS_SQUASHFS
  110. bool "squashfs"
  111. default y if USES_SQUASHFS
  112. help
  113. Build a squashfs-lzma root filesystem.
  114. config TARGET_SQUASHFS_BLOCK_SIZE
  115. int "Block size (in KiB)"
  116. depends on TARGET_ROOTFS_SQUASHFS
  117. default 64 if LOW_MEMORY_FOOTPRINT
  118. default 1024 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
  119. default 256
  120. menuconfig TARGET_ROOTFS_UBIFS
  121. bool "ubifs"
  122. default y if USES_UBIFS
  123. depends on USES_UBIFS
  124. help
  125. Build a UBIFS root filesystem.
  126. choice
  127. prompt "compression"
  128. default TARGET_UBIFS_COMPRESSION_ZLIB
  129. depends on TARGET_ROOTFS_UBIFS
  130. help
  131. Select compression type
  132. config TARGET_UBIFS_COMPRESSION_NONE
  133. bool "none"
  134. config TARGET_UBIFS_COMPRESSION_LZO
  135. bool "lzo"
  136. config TARGET_UBIFS_COMPRESSION_ZLIB
  137. bool "zlib"
  138. endchoice
  139. config TARGET_UBIFS_FREE_SPACE_FIXUP
  140. bool "free space fixup" if TARGET_ROOTFS_UBIFS
  141. default y
  142. help
  143. The filesystem free space has to be fixed up on first mount.
  144. config TARGET_UBIFS_JOURNAL_SIZE
  145. string
  146. prompt "journal size" if TARGET_ROOTFS_UBIFS
  147. default ""
  148. config GRUB_IMAGES
  149. bool "Build GRUB images (Linux x86 or x86_64 host only)"
  150. depends on TARGET_x86
  151. depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
  152. select PACKAGE_grub2
  153. default y
  154. config GRUB_EFI_IMAGES
  155. bool "Build GRUB EFI images (Linux x86 or x86_64 host only)"
  156. depends on TARGET_x86
  157. depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
  158. select PACKAGE_grub2
  159. select PACKAGE_grub2-efi
  160. select PACKAGE_kmod-fs-vfat
  161. default y
  162. config GRUB_CONSOLE
  163. bool "Use Console Terminal (in addition to Serial)"
  164. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  165. default y
  166. config GRUB_SERIAL
  167. string "Serial port device"
  168. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  169. default "ttyS0"
  170. config GRUB_BAUDRATE
  171. int "Serial port baud rate"
  172. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  173. default 38400 if TARGET_x86_generic
  174. default 115200
  175. config GRUB_FLOWCONTROL
  176. bool "Use RTE/CTS on serial console"
  177. depends on GRUB_SERIAL != ""
  178. default n
  179. config GRUB_BOOTOPTS
  180. string "Extra kernel boot options"
  181. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  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 || GRUB_EFI_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 || GRUB_EFI_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 ISO_IMAGES
  198. bool "Build LiveCD image (ISO)"
  199. depends on TARGET_x86
  200. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  201. config VDI_IMAGES
  202. bool "Build VirtualBox image files (VDI)"
  203. depends on TARGET_x86
  204. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  205. select PACKAGE_kmod-e1000
  206. config VMDK_IMAGES
  207. bool "Build VMware image files (VMDK)"
  208. depends on TARGET_x86
  209. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  210. select PACKAGE_kmod-e1000
  211. config TARGET_IMAGES_GZIP
  212. bool "GZip images"
  213. depends on TARGET_ROOTFS_EXT4FS || TARGET_x86 || TARGET_armvirt || TARGET_malta
  214. default y
  215. comment "Image Options"
  216. source "target/linux/*/image/Config.in"
  217. config TARGET_KERNEL_PARTSIZE
  218. int "Kernel partition size (in MB)"
  219. depends on USES_BOOT_PART
  220. default 8 if TARGET_apm821xx_sata
  221. default 64 if TARGET_bcm27xx
  222. default 16
  223. config TARGET_ROOTFS_PARTSIZE
  224. int "Root filesystem partition size (in MB)"
  225. depends on USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS || TARGET_omap || TARGET_sunxi || TARGET_uml
  226. default 104
  227. help
  228. Select the root filesystem partition size.
  229. config TARGET_ROOTFS_PARTNAME
  230. string "Root partition on target device"
  231. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  232. help
  233. Override the root partition on the final device. If left empty,
  234. it will be mounted by PARTUUID which makes the kernel find the
  235. appropriate disk automatically.
  236. endmenu