Config.in.rootfs 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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_BLK_DEV_SD if ADK_TARGET_OS_LINUX
  107. select ADK_LINUX_KERNEL_USB if ADK_TARGET_OS_LINUX
  108. select ADK_LINUX_KERNEL_USB_EHCI_HCD if ADK_TARGET_OS_LINUX
  109. select ADK_LINUX_KERNEL_USB_OHCI_HCD if ADK_TARGET_OS_LINUX
  110. select ADK_LINUX_KERNEL_USB_UHCI_HCD if ADK_TARGET_OS_LINUX
  111. select ADK_LINUX_KERNEL_USB_STORAGE if ADK_TARGET_OS_LINUX
  112. select ADK_PACKAGE_FWINSTALL
  113. depends on ADK_TARGET_WITH_USB_BOOT \
  114. || ADK_TARGET_GENERIC
  115. help
  116. Boot system from USB stick.
  117. config ADK_TARGET_ROOTFS_ISO
  118. bool "ISO image"
  119. select ADK_LINUX_KERNEL_ISO9660_FS if ADK_TARGET_OS_LINUX
  120. select ADK_LINUX_KERNEL_JOLIET if ADK_TARGET_OS_LINUX
  121. select ADK_LINUX_KERNEL_SCSI if ADK_TARGET_OS_LINUX
  122. select ADK_LINUX_KERNEL_BLK_DEV_SR if ADK_TARGET_OS_LINUX
  123. select ADK_HOST_NEED_CDRTOOLS
  124. select ADK_HOST_NEED_SYSLINUX
  125. depends on ADK_TARGET_ARCH_X86
  126. help
  127. Use this option to create a bootable ISO image.
  128. config ADK_TARGET_ROOTFS_INITRAMFSARCHIVE
  129. bool "Archive usable for initramfs creation"
  130. depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB532 \
  131. && !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208 \
  132. && !ADK_TARGET_SYSTEM_QEMU_METAG \
  133. && !ADK_TARGET_SIM
  134. select ADK_LINUX_KERNEL_BLK_DEV_INITRD if ADK_TARGET_OS_LINUX
  135. help
  136. Use this option if your planning to create a initramfs.
  137. config ADK_TARGET_ROOTFS_ARCHIVE
  138. bool "Archive usable for ext4 filesystems"
  139. select ADK_HOST_NEED_GENEXT2FS if ADK_TARGET_QEMU
  140. select ADK_LINUX_KERNEL_EXT4_FS if ADK_TARGET_OS_LINUX
  141. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  142. depends on !ADK_TARGET_SIM \
  143. && !ADK_TARGET_ARCH_NDS32 \
  144. && !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208 \
  145. && !ADK_TARGET_SYSTEM_QEMU_METAG
  146. help
  147. Use this option if your root filesystem is ext4 and you use
  148. for example install.sh to install firmware on a block device
  149. connected to your development machine.
  150. config ADK_TARGET_ROOTFS_GENIMAGE
  151. bool "Create a disk image for the target"
  152. select ADK_LINUX_KERNEL_EXT4_FS if ADK_TARGET_OS_LINUX
  153. select ADK_LINUX_KERNEL_VFAT_FS if ADK_TARGET_OS_LINUX
  154. select ADK_LINUX_KERNEL_EFI_PARTITION 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 "mmcblk0" if ADK_TARGET_SYSTEM_ROCKPI4_PLUS
  165. default "sda"
  166. help
  167. If you have a embedded device with multiple block devices and want to
  168. set the root device name.
  169. config ADK_TARGET_DUAL_BOOT
  170. bool "Activate dual-boot partition layout"
  171. depends on ADK_TARGET_ROOTFS_GENIMAGE
  172. select ADK_PACKAGE_FWUPDATE
  173. select ADK_PACKAGE_GRUB if ADK_TARGET_ARCH_X86_64 || ADK_TARGET_ARCH_X86
  174. select ADK_PACKAGE_GRUB_TOOLS if ADK_TARGET_ARCH_X86_64 || ADK_TARGET_ARCH_X86
  175. help
  176. Activate dual-boot partition scheme for simple full updates into
  177. a second unused partition. You can use fwupdate on the target to
  178. update your system. A firmware update tar archive is created in
  179. firmware output directory together with the full image.
  180. config ADK_TARGET_GENIMAGE_FILENAME
  181. string
  182. default "genimage-efi-dual.cfg" if (ADK_PACKAGE_GRUB_EFI_X86_64 || ADK_PACKAGE_GRUB_EFI_X86) && ADK_TARGET_DUAL_BOOT
  183. default "genimage-efi.cfg" if ADK_PACKAGE_GRUB_EFI_X86_64 || ADK_PACKAGE_GRUB_EFI_X86
  184. default "genimage-dual.cfg" if ADK_TARGET_DUAL_BOOT
  185. default "genimage.cfg"
  186. config ADK_TARGET_EXTLINUX_FILENAME
  187. string
  188. default "extlinux.conf"