Config-images.in 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Copyright (C) 2006-2013 OpenWrt.org
  4. menu "Target Images"
  5. menuconfig TARGET_ROOTFS_INITRAMFS
  6. bool "ramdisk"
  7. default y if USES_INITRAMFS
  8. help
  9. Embed the root filesystem into the kernel (initramfs).
  10. choice
  11. prompt "Compression"
  12. default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_apm821xx
  13. default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ath79_mikrotik
  14. default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_lantiq
  15. default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_mpc85xx
  16. default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips
  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. config TARGET_INITRAMFS_FORCE
  43. bool "Force"
  44. depends on TARGET_ROOTFS_INITRAMFS
  45. default n
  46. help
  47. Ignore the initramfs passed by the bootloader.
  48. comment "Root filesystem archives"
  49. config TARGET_ROOTFS_CPIOGZ
  50. bool "cpio.gz"
  51. default y if USES_CPIOGZ
  52. help
  53. Build a compressed cpio archive of the root filesystem.
  54. config TARGET_ROOTFS_TARGZ
  55. bool "tar.gz"
  56. default y if USES_TARGZ
  57. help
  58. Build a compressed tar archive of the root filesystem.
  59. comment "Root filesystem images"
  60. menuconfig TARGET_ROOTFS_EXT4FS
  61. bool "ext4"
  62. default y if USES_EXT4
  63. help
  64. Build an ext4 root filesystem.
  65. config TARGET_EXT4_RESERVED_PCT
  66. int "Percentage of reserved blocks in root filesystem"
  67. depends on TARGET_ROOTFS_EXT4FS
  68. default 0
  69. help
  70. Select the percentage of reserved blocks in the root filesystem.
  71. choice
  72. prompt "Root filesystem block size"
  73. default TARGET_EXT4_BLOCKSIZE_4K
  74. depends on TARGET_ROOTFS_EXT4FS
  75. help
  76. Select the block size of the root filesystem.
  77. config TARGET_EXT4_BLOCKSIZE_4K
  78. bool "4k"
  79. config TARGET_EXT4_BLOCKSIZE_2K
  80. bool "2k"
  81. config TARGET_EXT4_BLOCKSIZE_1K
  82. bool "1k"
  83. endchoice
  84. config TARGET_EXT4_BLOCKSIZE
  85. int
  86. default 4096 if TARGET_EXT4_BLOCKSIZE_4K
  87. default 2048 if TARGET_EXT4_BLOCKSIZE_2K
  88. default 1024 if TARGET_EXT4_BLOCKSIZE_1K
  89. depends on TARGET_ROOTFS_EXT4FS
  90. config TARGET_EXT4_JOURNAL
  91. bool "Create a journaling filesystem"
  92. depends on TARGET_ROOTFS_EXT4FS
  93. default n
  94. help
  95. Create an ext4 filesystem with a journal.
  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 1024 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT)
  117. default 256
  118. menuconfig TARGET_ROOTFS_UBIFS
  119. bool "ubifs"
  120. default y if USES_UBIFS
  121. depends on USES_UBIFS
  122. help
  123. Build a UBIFS root filesystem.
  124. choice
  125. prompt "compression"
  126. default TARGET_UBIFS_COMPRESSION_ZLIB
  127. depends on TARGET_ROOTFS_UBIFS
  128. help
  129. Select compression type
  130. config TARGET_UBIFS_COMPRESSION_NONE
  131. bool "none"
  132. config TARGET_UBIFS_COMPRESSION_LZO
  133. bool "lzo"
  134. config TARGET_UBIFS_COMPRESSION_ZLIB
  135. bool "zlib"
  136. endchoice
  137. config TARGET_UBIFS_FREE_SPACE_FIXUP
  138. bool "free space fixup" if TARGET_ROOTFS_UBIFS
  139. default y
  140. help
  141. The filesystem free space has to be fixed up on first mount.
  142. config TARGET_UBIFS_JOURNAL_SIZE
  143. string
  144. prompt "journal size" if TARGET_ROOTFS_UBIFS
  145. default ""
  146. config GRUB_IMAGES
  147. bool "Build GRUB images (Linux x86 or x86_64 host only)"
  148. depends on TARGET_x86
  149. depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
  150. select PACKAGE_grub2
  151. default y
  152. config GRUB_EFI_IMAGES
  153. bool "Build GRUB EFI images (Linux x86 or x86_64 host only)"
  154. depends on TARGET_x86
  155. depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS
  156. select PACKAGE_grub2
  157. select PACKAGE_grub2-efi
  158. select PACKAGE_kmod-fs-vfat
  159. default y
  160. config GRUB_CONSOLE
  161. bool "Use Console Terminal (in addition to Serial)"
  162. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  163. default y
  164. config GRUB_SERIAL
  165. string "Serial port device"
  166. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  167. default "ttyS0"
  168. config GRUB_BAUDRATE
  169. int "Serial port baud rate"
  170. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  171. default 38400 if TARGET_x86_generic
  172. default 115200
  173. config GRUB_FLOWCONTROL
  174. bool "Use RTE/CTS on serial console"
  175. depends on GRUB_SERIAL != ""
  176. default n
  177. config GRUB_BOOTOPTS
  178. string "Extra kernel boot options"
  179. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  180. help
  181. If you don't know, just leave it blank.
  182. config GRUB_TIMEOUT
  183. string "Seconds to wait before booting the default entry"
  184. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  185. default "5"
  186. help
  187. If you don't know, 5 seconds is a reasonable default.
  188. config GRUB_TITLE
  189. string "Title for the menu entry in GRUB"
  190. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  191. default "OpenWrt"
  192. help
  193. This is the title of the GRUB menu entry.
  194. If unspecified, it defaults to OpenWrt.
  195. config ISO_IMAGES
  196. bool "Build LiveCD image (ISO)"
  197. depends on TARGET_x86
  198. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  199. config VDI_IMAGES
  200. bool "Build VirtualBox image files (VDI)"
  201. depends on TARGET_x86
  202. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  203. select PACKAGE_kmod-e1000
  204. config VMDK_IMAGES
  205. bool "Build VMware image files (VMDK)"
  206. depends on TARGET_x86
  207. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  208. select PACKAGE_kmod-e1000
  209. config TARGET_IMAGES_GZIP
  210. bool "GZip images"
  211. depends on TARGET_ROOTFS_EXT4FS || TARGET_x86 || TARGET_armvirt || TARGET_malta
  212. default y
  213. comment "Image Options"
  214. source "target/linux/*/image/Config.in"
  215. config TARGET_KERNEL_PARTSIZE
  216. int "Kernel partition size (in MB)"
  217. depends on USES_BOOT_PART
  218. default 8 if TARGET_apm821xx_sata
  219. default 64 if TARGET_bcm27xx
  220. default 16
  221. config TARGET_ROOTFS_PARTSIZE
  222. int "Root filesystem partition size (in MB)"
  223. depends on USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS || TARGET_omap || TARGET_sunxi || TARGET_uml
  224. default 104
  225. help
  226. Select the root filesystem partition size.
  227. config TARGET_ROOTFS_PARTNAME
  228. string "Root partition on target device"
  229. depends on GRUB_IMAGES || GRUB_EFI_IMAGES
  230. help
  231. Override the root partition on the final device. If left empty,
  232. it will be mounted by PARTUUID which makes the kernel find the
  233. appropriate disk automatically.
  234. endmenu