Config.in.rootfs 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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_SH || \
  26. ADK_TARGET_ARCH_SPARC || \
  27. ADK_TARGET_ARCH_X86 || \
  28. ADK_TARGET_ARCH_X86_64
  29. depends on !ADK_TARGET_VBOX
  30. depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB532
  31. help
  32. create an read-only initramfs system.
  33. config ADK_TARGET_ROOTFS_INITRAMFS
  34. bool "initramfs filesystem"
  35. depends on \
  36. ADK_TARGET_QEMU || \
  37. ADK_TARGET_ARCH_ALPHA || \
  38. ADK_TARGET_ARCH_ARM || \
  39. ADK_TARGET_ARCH_M68K || \
  40. ADK_TARGET_ARCH_MICROBLAZE || \
  41. ADK_TARGET_ARCH_MIPS || \
  42. ADK_TARGET_ARCH_MIPS64 || \
  43. ADK_TARGET_ARCH_PPC || \
  44. ADK_TARGET_ARCH_SH || \
  45. ADK_TARGET_ARCH_SPARC || \
  46. ADK_TARGET_ARCH_X86 || \
  47. ADK_TARGET_ARCH_X86_64
  48. depends on !ADK_TARGET_VBOX
  49. depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB532
  50. depends on !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208
  51. depends on !ADK_TARGET_SYSTEM_QEMU_METAG
  52. select ADK_LINUX_KERNEL_BLK_DEV_INITRD if ADK_TARGET_OS_LINUX
  53. select ADK_WALDUX_KERNEL_BLK_DEV_INITRD if ADK_TARGET_OS_WALDUX
  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_WALDUX_KERNEL_JFFS2_FS if ADK_TARGET_OS_WALDUX
  71. select ADK_HOST_NEED_MTD_UTILS
  72. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  73. depends on ADK_TARGET_WITH_MTD \
  74. || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800 \
  75. || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_ML605
  76. help
  77. compressed read-write filesystem for MTD flash systems.
  78. config ADK_TARGET_ROOTFS_UBIFS
  79. bool "UBIFS root filesystem (NAND)"
  80. select ADK_LINUX_KERNEL_UBIFS_FS if ADK_TARGET_OS_LINUX
  81. select ADK_WALDUX_KERNEL_UBIFS_FS if ADK_TARGET_OS_WALDUX
  82. select ADK_HOST_NEED_MTD_UTILS
  83. select ADK_HOST_NEED_KERNEL2MINOR
  84. depends on ADK_TARGET_WITH_NAND
  85. help
  86. Root filesystem on NAND flash with UBI.
  87. config ADK_TARGET_ROOTFS_NFSROOT
  88. bool "NFS root"
  89. select ADK_LINUX_KERNEL_NETWORK_FILESYSTEMS if ADK_TARGET_OS_LINUX
  90. select ADK_LINUX_KERNEL_SUNRPC if ADK_TARGET_OS_LINUX
  91. select ADK_LINUX_KERNEL_NFS_FS if ADK_TARGET_OS_LINUX
  92. select ADK_LINUX_KERNEL_NFS_V3 if ADK_TARGET_OS_LINUX
  93. select ADK_LINUX_KERNEL_ROOT_NFS if ADK_TARGET_OS_LINUX
  94. select ADK_LINUX_KERNEL_NFS_COMMON if ADK_TARGET_OS_LINUX
  95. select ADK_LINUX_KERNEL_IP_PNP if ADK_TARGET_OS_LINUX
  96. select ADK_LINUX_KERNEL_IP_PNP_DHCP if ADK_TARGET_OS_LINUX
  97. select ADK_WALDUX_KERNEL_NETWORK_FILESYSTEMS if ADK_TARGET_OS_WALDUX
  98. select ADK_WALDUX_KERNEL_SUNRPC if ADK_TARGET_OS_WALDUX
  99. select ADK_WALDUX_KERNEL_NFS_FS if ADK_TARGET_OS_WALDUX
  100. select ADK_WALDUX_KERNEL_NFS_V3 if ADK_TARGET_OS_WALDUX
  101. select ADK_WALDUX_KERNEL_ROOT_NFS if ADK_TARGET_OS_WALDUX
  102. select ADK_WALDUX_KERNEL_NFS_COMMON if ADK_TARGET_OS_WALDUX
  103. select ADK_WALDUX_KERNEL_IP_PNP if ADK_TARGET_OS_WALDUX
  104. select ADK_WALDUX_KERNEL_IP_PNP_DHCP if ADK_TARGET_OS_WALDUX
  105. depends on !ADK_TARGET_QEMU && \
  106. !ADK_TARGET_SIM && \
  107. !ADK_TARGET_VBOX && \
  108. !ADK_TARGET_SYSTEM_ARANYM_M68K && \
  109. !ADK_TARGET_SYSTEM_FOXBOARD_LX832 && \
  110. !ADK_TARGET_SYSTEM_LINKSYS_NSLU2
  111. help
  112. Root filesystem mounted via NFS. (DHCP)
  113. config ADK_TARGET_ROOTFS_USB
  114. bool "Boot from USB stick"
  115. select ADK_LINUX_KERNEL_NLS if ADK_TARGET_OS_LINUX
  116. select ADK_LINUX_KERNEL_SCSI if ADK_TARGET_OS_LINUX
  117. select ADK_LINUX_KERNEL_BLK_DEV_SD if ADK_TARGET_OS_LINUX
  118. select ADK_LINUX_KERNEL_USB if ADK_TARGET_OS_LINUX
  119. select ADK_LINUX_KERNEL_USB_EHCI_HCD if ADK_TARGET_OS_LINUX
  120. select ADK_LINUX_KERNEL_USB_OHCI_HCD if ADK_TARGET_OS_LINUX
  121. select ADK_LINUX_KERNEL_USB_UHCI_HCD if ADK_TARGET_OS_LINUX
  122. select ADK_LINUX_KERNEL_USB_STORAGE if ADK_TARGET_OS_LINUX
  123. select ADK_WALDUX_KERNEL_NLS if ADK_TARGET_OS_WALDUX
  124. select ADK_WALDUX_KERNEL_SCSI if ADK_TARGET_OS_WALDUX
  125. select ADK_WALDUX_KERNEL_BLK_DEV_SD if ADK_TARGET_OS_WALDUX
  126. select ADK_WALDUX_KERNEL_USB if ADK_TARGET_OS_WALDUX
  127. select ADK_WALDUX_KERNEL_USB_EHCI_HCD if ADK_TARGET_OS_WALDUX
  128. select ADK_WALDUX_KERNEL_USB_OHCI_HCD if ADK_TARGET_OS_WALDUX
  129. select ADK_WALDUX_KERNEL_USB_UHCI_HCD if ADK_TARGET_OS_WALDUX
  130. select ADK_WALDUX_KERNEL_USB_STORAGE if ADK_TARGET_OS_WALDUX
  131. select ADK_PACKAGE_ADKINSTALL
  132. depends on ADK_TARGET_WITH_USB_BOOT \
  133. || ADK_TARGET_GENERIC
  134. help
  135. Boot system from USB stick.
  136. config ADK_TARGET_ROOTFS_ISO
  137. bool "ISO image"
  138. select ADK_LINUX_KERNEL_ISO9660_FS if ADK_TARGET_OS_LINUX
  139. select ADK_LINUX_KERNEL_JOLIET if ADK_TARGET_OS_LINUX
  140. select ADK_LINUX_KERNEL_SCSI if ADK_TARGET_OS_LINUX
  141. select ADK_LINUX_KERNEL_BLK_DEV_SR if ADK_TARGET_OS_LINUX
  142. select ADK_WALDUX_KERNEL_ISO9660_FS if ADK_TARGET_OS_WALDUX
  143. select ADK_WALDUX_KERNEL_JOLIET if ADK_TARGET_OS_WALDUX
  144. select ADK_WALDUX_KERNEL_SCSI if ADK_TARGET_OS_WALDUX
  145. select ADK_WALDUX_KERNEL_BLK_DEV_SR if ADK_TARGET_OS_WALDUX
  146. select ADK_HOST_NEED_CDRTOOLS
  147. select ADK_HOST_NEED_SYSLINUX
  148. depends on ADK_TARGET_ARCH_X86
  149. help
  150. Use this option to create a bootable ISO image.
  151. config ADK_TARGET_ROOTFS_INITRAMFSARCHIVE
  152. bool "Archive usable for initramfs creation"
  153. depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB532 \
  154. && !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208 \
  155. && !ADK_TARGET_SYSTEM_QEMU_METAG \
  156. && !ADK_TARGET_SIM
  157. select ADK_LINUX_KERNEL_BLK_DEV_INITRD if ADK_TARGET_OS_LINUX
  158. select ADK_WALDUX_KERNEL_BLK_DEV_INITRD if ADK_TARGET_OS_WALDUX
  159. help
  160. Use this option if your planning to create a initramfs.
  161. config ADK_TARGET_ROOTFS_ARCHIVE
  162. bool "Archive usable for ext4 filesystems"
  163. select ADK_HOST_NEED_GENEXT2FS if ADK_TARGET_QEMU || ADK_TARGET_VBOX
  164. select ADK_LINUX_KERNEL_EXT4_FS if ADK_TARGET_OS_LINUX
  165. select ADK_WALDUX_KERNEL_EXT4_FS if ADK_TARGET_OS_WALDUX
  166. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  167. depends on !ADK_TARGET_SIM \
  168. && !ADK_TARGET_ARCH_NDS32 \
  169. && !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208 \
  170. && !ADK_TARGET_SYSTEM_QEMU_METAG
  171. help
  172. Use this option if your root filesystem is ext4 and you use
  173. for example install.sh to install firmware on a block device
  174. connected to your development machine.
  175. config ADK_TARGET_ROOTFS_GENIMAGE
  176. bool "Create a disk image for the target"
  177. select ADK_LINUX_KERNEL_EXT4_FS if ADK_TARGET_OS_LINUX
  178. select ADK_LINUX_KERNEL_VFAT_FS if ADK_TARGET_OS_LINUX
  179. select ADK_WALDUX_KERNEL_EXT4_FS if ADK_TARGET_OS_WALDUX
  180. select ADK_WALDUX_KERNEL_VFAT_FS if ADK_TARGET_OS_WALDUX
  181. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  182. select ADK_TARGET_QEMU_WITH_BOOTLOADER if ADK_TARGET_QEMU
  183. select ADK_HOST_BUILD_GENIMAGE
  184. depends on ADK_TARGET_ARCH_X86_64
  185. help
  186. Create a complete disk image for the target with genimage.
  187. endchoice
  188. config ADK_TARGET_ROOTDEV
  189. string "Root device name"
  190. depends on ADK_TARGET_ROOTFS_GENIMAGE
  191. default "sda"
  192. help
  193. If you a embedded device with multiple block devices and want to
  194. set the root device name.
  195. config ADK_TARGET_DUAL_BOOT
  196. bool "Activate dual-boot partition layout"
  197. depends on ADK_TARGET_ROOTFS_GENIMAGE
  198. select ADK_PACKAGE_FWUPDATE
  199. select ADK_PACKAGE_GRUB if ADK_TARGET_ARCH_X86_64 || ADK_TARGET_ARCH_X86
  200. select ADK_PACKAGE_GRUB_TOOLS if ADK_TARGET_ARCH_X86_64 || ADK_TARGET_ARCH_X86
  201. help
  202. Activate dual-boot partition scheme for simple full updates into
  203. a second unused partition. You can use fwupdate on the target to
  204. update your system. A firmware update tar archive is created in
  205. firmware output directory together with the full image.
  206. config ADK_TARGET_GENIMAGE_FILENAME
  207. string
  208. default "genimage-efi-dual.cfg" if ADK_PACKAGE_GRUB_EFI_X86_64 || ADK_PACKAGE_GRUB_EFI_X86 && ADK_TARGET_DUAL_BOOT
  209. default "genimage-efi.cfg" if ADK_PACKAGE_GRUB_EFI_X86_64 || ADK_PACKAGE_GRUB_EFI_X86
  210. default "genimage-dual.cfg" if ADK_TARGET_DUAL_BOOT
  211. default "genimage.cfg"