Config.in.rootfs 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. choice
  4. prompt "Filesystem / Image type" if !ADK_TARGET_CHOOSE_ARCH
  5. depends on !ADK_APPLIANCE_TOOLCHAIN && !ADK_TARGET_OS_BAREMETAL
  6. default ADK_TARGET_ROOTFS_INITRAMFSPIGGYBACK if ADK_TARGET_QEMU || ADK_TARGET_SIM
  7. default ADK_TARGET_ROOTFS_ARCHIVE
  8. config ADK_TARGET_ROOTFS_INITRAMFSPIGGYBACK
  9. bool "initramfs filesystem included into kernel image"
  10. select ADK_TARGET_ARCH_INITRAMFS_BUILTIN
  11. depends on \
  12. ADK_TARGET_QEMU || \
  13. ADK_TARGET_SIM || \
  14. ADK_TARGET_ARCH_AARCH64 || \
  15. ADK_TARGET_ARCH_ALPHA || \
  16. ADK_TARGET_ARCH_ARC || \
  17. ADK_TARGET_ARCH_ARM || \
  18. ADK_TARGET_ARCH_H8300 || \
  19. ADK_TARGET_ARCH_HPPA || \
  20. ADK_TARGET_ARCH_M68K || \
  21. ADK_TARGET_ARCH_MICROBLAZE || \
  22. ADK_TARGET_ARCH_MIPS || \
  23. ADK_TARGET_ARCH_MIPS64 || \
  24. ADK_TARGET_ARCH_PPC || \
  25. ADK_TARGET_ARCH_RISCV32 || \
  26. ADK_TARGET_ARCH_RISCV64 || \
  27. ADK_TARGET_ARCH_SH || \
  28. ADK_TARGET_ARCH_SPARC || \
  29. ADK_TARGET_ARCH_X86 || \
  30. ADK_TARGET_ARCH_X86_64
  31. depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB532
  32. help
  33. create an read-only initramfs system.
  34. config ADK_TARGET_ROOTFS_INITRAMFS
  35. bool "initramfs filesystem"
  36. depends on \
  37. ADK_TARGET_QEMU || \
  38. ADK_TARGET_ARCH_ALPHA || \
  39. ADK_TARGET_ARCH_ARC || \
  40. ADK_TARGET_ARCH_ARM || \
  41. ADK_TARGET_ARCH_M68K || \
  42. ADK_TARGET_ARCH_MICROBLAZE || \
  43. ADK_TARGET_ARCH_MIPS || \
  44. ADK_TARGET_ARCH_MIPS64 || \
  45. ADK_TARGET_ARCH_PPC || \
  46. ADK_TARGET_ARCH_SH || \
  47. ADK_TARGET_ARCH_SPARC || \
  48. ADK_TARGET_ARCH_X86 || \
  49. ADK_TARGET_ARCH_X86_64
  50. depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB532
  51. depends on !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208
  52. depends on !ADK_TARGET_SYSTEM_QEMU_METAG
  53. select ADK_LINUX_KERNEL_BLK_DEV_INITRD if ADK_TARGET_OS_LINUX
  54. help
  55. create an read-only initramfs system.
  56. config ADK_TARGET_ROOTFS_SQUASHFS
  57. bool "Compressed read-only root filesystem (squashfs)"
  58. select ADK_KERNEL_SQUASHFS
  59. select ADK_HOST_NEED_SQUASHFS
  60. select ADK_HOST_NEED_QEMU if ADK_TARGET_QEMU
  61. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  62. depends on ADK_TARGET_WITH_MTD \
  63. || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800 \
  64. || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_ML605
  65. help
  66. highly compressed read-only filesystem for MTD flash systems.
  67. config ADK_TARGET_ROOTFS_JFFS2
  68. bool "Compressed read-write root filesystem (jffs2)"
  69. select ADK_LINUX_KERNEL_JFFS2_FS if ADK_TARGET_OS_LINUX
  70. select ADK_HOST_NEED_MTD_UTILS
  71. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  72. depends on ADK_TARGET_WITH_MTD \
  73. || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800 \
  74. || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_ML605
  75. help
  76. compressed read-write filesystem for MTD flash systems.
  77. config ADK_TARGET_ROOTFS_UBIFS
  78. bool "UBIFS root filesystem (NAND)"
  79. select ADK_LINUX_KERNEL_UBIFS_FS if ADK_TARGET_OS_LINUX
  80. select ADK_HOST_NEED_MTD_UTILS
  81. select ADK_HOST_NEED_KERNEL2MINOR
  82. depends on ADK_TARGET_WITH_NAND
  83. help
  84. Root filesystem on NAND flash with UBI.
  85. config ADK_TARGET_ROOTFS_NFSROOT
  86. bool "NFS root"
  87. select ADK_LINUX_KERNEL_NETWORK_FILESYSTEMS if ADK_TARGET_OS_LINUX
  88. select ADK_LINUX_KERNEL_SUNRPC if ADK_TARGET_OS_LINUX
  89. select ADK_LINUX_KERNEL_NFS_FS if ADK_TARGET_OS_LINUX
  90. select ADK_LINUX_KERNEL_NFS_V3 if ADK_TARGET_OS_LINUX
  91. select ADK_LINUX_KERNEL_ROOT_NFS if ADK_TARGET_OS_LINUX
  92. select ADK_LINUX_KERNEL_NFS_COMMON if ADK_TARGET_OS_LINUX
  93. select ADK_LINUX_KERNEL_IP_PNP if ADK_TARGET_OS_LINUX
  94. select ADK_LINUX_KERNEL_IP_PNP_DHCP if ADK_TARGET_OS_LINUX
  95. depends on !ADK_TARGET_QEMU && \
  96. !ADK_TARGET_SIM && \
  97. !ADK_TARGET_SYSTEM_ARANYM_M68K && \
  98. !ADK_TARGET_SYSTEM_LINKSYS_NSLU2
  99. depends on ADK_TARGET_WITH_NETDEVICE
  100. help
  101. Root filesystem mounted via NFS. (DHCP)
  102. config ADK_TARGET_ROOTFS_USB
  103. bool "Boot from USB stick"
  104. select ADK_LINUX_KERNEL_EXT4_FS if ADK_TARGET_OS_LINUX
  105. select ADK_LINUX_KERNEL_SCSI if ADK_TARGET_OS_LINUX
  106. select ADK_LINUX_KERNEL_SCSI if ADK_TARGET_OS_LINUX
  107. select ADK_LINUX_KERNEL_BLK_DEV_SD if ADK_TARGET_OS_LINUX
  108. select ADK_LINUX_KERNEL_USB if ADK_TARGET_OS_LINUX
  109. select ADK_LINUX_KERNEL_USB_EHCI_HCD if ADK_TARGET_OS_LINUX
  110. select ADK_LINUX_KERNEL_USB_OHCI_HCD if ADK_TARGET_OS_LINUX
  111. select ADK_LINUX_KERNEL_USB_UHCI_HCD if ADK_TARGET_OS_LINUX
  112. select ADK_LINUX_KERNEL_USB_STORAGE if ADK_TARGET_OS_LINUX
  113. select ADK_PACKAGE_FWINSTALL
  114. depends on ADK_TARGET_WITH_USB_BOOT \
  115. || ADK_TARGET_GENERIC
  116. help
  117. Boot system from USB stick.
  118. config ADK_TARGET_ROOTFS_ISO
  119. bool "ISO image"
  120. select ADK_LINUX_KERNEL_ISO9660_FS if ADK_TARGET_OS_LINUX
  121. select ADK_LINUX_KERNEL_JOLIET if ADK_TARGET_OS_LINUX
  122. select ADK_LINUX_KERNEL_SCSI if ADK_TARGET_OS_LINUX
  123. select ADK_LINUX_KERNEL_BLK_DEV_SR if ADK_TARGET_OS_LINUX
  124. select ADK_HOST_NEED_CDRTOOLS
  125. select ADK_HOST_NEED_SYSLINUX
  126. depends on ADK_TARGET_ARCH_X86
  127. help
  128. Use this option to create a bootable ISO image.
  129. config ADK_TARGET_ROOTFS_INITRAMFSARCHIVE
  130. bool "Archive usable for initramfs creation"
  131. depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB532 \
  132. && !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208 \
  133. && !ADK_TARGET_SYSTEM_QEMU_METAG \
  134. && !ADK_TARGET_SIM
  135. select ADK_LINUX_KERNEL_BLK_DEV_INITRD if ADK_TARGET_OS_LINUX
  136. help
  137. Use this option if your planning to create a initramfs.
  138. config ADK_TARGET_ROOTFS_ARCHIVE
  139. bool "Archive usable for ext4 filesystems"
  140. select ADK_HOST_NEED_GENEXT2FS if ADK_TARGET_QEMU
  141. select ADK_LINUX_KERNEL_EXT4_FS if ADK_TARGET_OS_LINUX
  142. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  143. depends on !ADK_TARGET_SIM \
  144. && !ADK_TARGET_ARCH_NDS32 \
  145. && !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208 \
  146. && !ADK_TARGET_SYSTEM_QEMU_METAG
  147. help
  148. Use this option if your root filesystem is ext4 and you use
  149. for example install.sh to install firmware on a block device
  150. connected to your development machine.
  151. config ADK_TARGET_ROOTFS_GENIMAGE
  152. bool "Create a disk image for the target"
  153. select ADK_LINUX_KERNEL_EXT4_FS if ADK_TARGET_OS_LINUX
  154. select ADK_LINUX_KERNEL_VFAT_FS if ADK_TARGET_OS_LINUX
  155. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  156. select ADK_TARGET_QEMU_WITH_BOOTLOADER if ADK_TARGET_QEMU
  157. select ADK_HOST_BUILD_GENIMAGE
  158. help
  159. Create a complete disk image for the target with genimage.
  160. endchoice
  161. config ADK_TARGET_ROOTDEV
  162. string "Root device name"
  163. depends on ADK_TARGET_ROOTFS_GENIMAGE
  164. default "sda"
  165. help
  166. If you a embedded device with multiple block devices and want to
  167. set the root device name.
  168. config ADK_TARGET_DUAL_BOOT
  169. bool "Activate dual-boot partition layout"
  170. depends on ADK_TARGET_ROOTFS_GENIMAGE
  171. select ADK_PACKAGE_FWUPDATE
  172. select ADK_PACKAGE_GRUB if ADK_TARGET_ARCH_X86_64 || ADK_TARGET_ARCH_X86
  173. select ADK_PACKAGE_GRUB_TOOLS if ADK_TARGET_ARCH_X86_64 || ADK_TARGET_ARCH_X86
  174. help
  175. Activate dual-boot partition scheme for simple full updates into
  176. a second unused partition. You can use fwupdate on the target to
  177. update your system. A firmware update tar archive is created in
  178. firmware output directory together with the full image.
  179. config ADK_TARGET_GENIMAGE_FILENAME
  180. string
  181. default "genimage-efi-dual.cfg" if ADK_PACKAGE_GRUB_EFI_X86_64 || ADK_PACKAGE_GRUB_EFI_X86 && ADK_TARGET_DUAL_BOOT
  182. default "genimage-efi.cfg" if ADK_PACKAGE_GRUB_EFI_X86_64 || ADK_PACKAGE_GRUB_EFI_X86
  183. default "genimage-dual.cfg" if ADK_TARGET_DUAL_BOOT
  184. default "genimage.cfg"
  185. config ADK_TARGET_EXTLINUX_FILENAME
  186. string
  187. default "extlinux.conf"