Config.in.rootfs 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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_ARC || \
  16. ADK_TARGET_ARCH_ARM || \
  17. ADK_TARGET_ARCH_H8300 || \
  18. ADK_TARGET_ARCH_M68K || \
  19. ADK_TARGET_ARCH_MICROBLAZE || \
  20. ADK_TARGET_ARCH_MIPS || \
  21. ADK_TARGET_ARCH_MIPS64 || \
  22. ADK_TARGET_ARCH_PPC || \
  23. ADK_TARGET_ARCH_SH || \
  24. ADK_TARGET_ARCH_SPARC || \
  25. ADK_TARGET_ARCH_X86 || \
  26. ADK_TARGET_ARCH_X86_64
  27. depends on !ADK_TARGET_VBOX
  28. depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB532
  29. help
  30. create an read-only initramfs system.
  31. config ADK_TARGET_ROOTFS_INITRAMFS
  32. bool "initramfs filesystem"
  33. depends on \
  34. ADK_TARGET_QEMU || \
  35. ADK_TARGET_ARCH_M68K || \
  36. ADK_TARGET_ARCH_ARM || \
  37. ADK_TARGET_ARCH_MICROBLAZE || \
  38. ADK_TARGET_ARCH_MIPS || \
  39. ADK_TARGET_ARCH_MIPS64 || \
  40. ADK_TARGET_ARCH_PPC || \
  41. ADK_TARGET_ARCH_SH || \
  42. ADK_TARGET_ARCH_SPARC || \
  43. ADK_TARGET_ARCH_X86 || \
  44. ADK_TARGET_ARCH_X86_64
  45. depends on !ADK_TARGET_VBOX
  46. depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB532
  47. depends on !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208
  48. depends on !ADK_TARGET_SYSTEM_QEMU_METAG
  49. select ADK_KERNEL_BLK_DEV_INITRD
  50. help
  51. create an read-only initramfs system.
  52. config ADK_TARGET_ROOTFS_SQUASHFS
  53. bool "Compressed read-only root filesystem (squashfs)"
  54. select ADK_KERNEL_SQUASHFS
  55. select ADK_HOST_NEED_SQUASHFS
  56. select ADK_HOST_NEED_QEMU if ADK_TARGET_QEMU
  57. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  58. depends on ADK_TARGET_WITH_MTD \
  59. || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800 \
  60. || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_ML605
  61. help
  62. highly compressed read-only filesystem for MTD flash systems.
  63. config ADK_TARGET_ROOTFS_JFFS2
  64. bool "Compressed read-write root filesystem (jffs2)"
  65. select ADK_KERNEL_JFFS2_FS
  66. select ADK_HOST_NEED_MTD_UTILS
  67. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  68. depends on ADK_TARGET_WITH_MTD \
  69. || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_S3ADSP1800 \
  70. || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_ML605
  71. help
  72. compressed read-write filesystem for MTD flash systems.
  73. config ADK_TARGET_ROOTFS_UBIFS
  74. bool "UBIFS root filesystem (NAND)"
  75. select ADK_KERNEL_UBIFS_FS
  76. select ADK_HOST_NEED_MTD_UTILS
  77. select ADK_HOST_NEED_KERNEL2MINOR
  78. depends on ADK_TARGET_WITH_NAND
  79. help
  80. Root filesystem on NAND flash with UBI.
  81. config ADK_TARGET_ROOTFS_NFSROOT
  82. bool "NFS root"
  83. select ADK_KERNEL_NETWORK_FILESYSTEMS
  84. select ADK_KERNEL_SUNRPC
  85. select ADK_KERNEL_NFS_FS
  86. select ADK_KERNEL_NFS_V3
  87. select ADK_KERNEL_ROOT_NFS
  88. select ADK_KERNEL_NFS_COMMON
  89. select ADK_KERNEL_IP_PNP
  90. select ADK_KERNEL_IP_PNP_DHCP
  91. depends on !ADK_TARGET_QEMU && \
  92. !ADK_TARGET_SIM && \
  93. !ADK_TARGET_VBOX && \
  94. !ADK_TARGET_SYSTEM_ARANYM_M68K && \
  95. !ADK_TARGET_SYSTEM_FOXBOARD_LX832 && \
  96. !ADK_TARGET_SYSTEM_LINKSYS_NSLU2
  97. help
  98. Root filesystem mounted via NFS. (DHCP)
  99. config ADK_TARGET_ROOTFS_USB
  100. bool "Boot from USB stick"
  101. select ADK_KERNEL_NLS
  102. select ADK_KERNEL_SCSI
  103. select ADK_KERNEL_BLK_DEV_SD
  104. select ADK_KERNEL_USB
  105. select ADK_KERNEL_USB_EHCI_HCD
  106. select ADK_KERNEL_USB_OHCI_HCD
  107. select ADK_KERNEL_USB_UHCI_HCD
  108. select ADK_KERNEL_USB_STORAGE
  109. select ADK_PACKAGE_ADKINSTALL
  110. depends on ADK_TARGET_WITH_USB_BOOT
  111. help
  112. Boot system from USB stick.
  113. config ADK_TARGET_ROOTFS_ISO
  114. bool "ISO image"
  115. select ADK_KERNEL_ISO9660_FS
  116. select ADK_KERNEL_JOLIET
  117. select ADK_KERNEL_SCSI
  118. select ADK_KERNEL_BLK_DEV_SR
  119. select ADK_HOST_NEED_CDRTOOLS
  120. select ADK_HOST_NEED_SYSLINUX
  121. depends on ADK_TARGET_ARCH_X86
  122. help
  123. Use this option to create a bootable ISO image.
  124. config ADK_TARGET_ROOTFS_INITRAMFSARCHIVE
  125. bool "Archive usable for initramfs creation"
  126. depends on !ADK_TARGET_SYSTEM_MIKROTIK_RB532 \
  127. && !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208 \
  128. && !ADK_TARGET_SYSTEM_QEMU_METAG \
  129. && !ADK_TARGET_SIM
  130. select ADK_KERNEL_BLK_DEV_INITRD
  131. help
  132. Use this option if your planning to create a initramfs.
  133. config ADK_TARGET_ROOTFS_ARCHIVE
  134. bool "Archive usable for ext4 filesystems"
  135. select ADK_HOST_NEED_GENEXT2FS if ADK_TARGET_QEMU || ADK_TARGET_VBOX
  136. select ADK_KERNEL_EXT4_FS
  137. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  138. depends on !ADK_TARGET_SIM \
  139. && !ADK_TARGET_ARCH_NDS32 \
  140. && !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208 \
  141. && !ADK_TARGET_SYSTEM_QEMU_METAG
  142. help
  143. Use this option if your root filesystem is ext4 and you use
  144. for example install.sh to install firmware on a block device
  145. connected to your development machine.
  146. config ADK_TARGET_ROOTFS_GENIMAGE
  147. bool "Create a disk image for the target"
  148. select ADK_KERNEL_EXT4_FS
  149. select ADK_KERNEL_VFAT_FS
  150. select ADK_TARGET_QEMU_WITH_BLOCK if ADK_TARGET_QEMU
  151. select ADK_TARGET_QEMU_WITH_BOOTLOADER if ADK_TARGET_QEMU
  152. select ADK_HOST_BUILD_GENIMAGE
  153. help
  154. Create a complete disk image for the target with genimage.
  155. endchoice
  156. config ADK_TARGET_ROOTDEV
  157. string "Root device name"
  158. depends on ADK_TARGET_ROOTFS_GENIMAGE
  159. default "sda"
  160. help
  161. If you a embedded device with multiple block devices and want to
  162. set the root device name.
  163. config ADK_TARGET_DUAL_BOOT
  164. bool "Activate dual-boot partition layout"
  165. depends on ADK_TARGET_ROOTFS_GENIMAGE
  166. select ADK_PACKAGE_FWUPDATE
  167. select ADK_PACKAGE_GRUB if ADK_TARGET_ARCH_X86_64 || ADK_TARGET_ARCH_X86
  168. select ADK_PACKAGE_GRUB_TOOLS if ADK_TARGET_ARCH_X86_64 || ADK_TARGET_ARCH_X86
  169. help
  170. Activate dual-boot partition scheme for simple full updates into
  171. a second unused partition. You can use fwupdate on the target to
  172. update your system. A firmware update tar archive is created in
  173. firmware output directory together with the full image.
  174. config ADK_TARGET_GENIMAGE_FILENAME
  175. string
  176. default "genimage-efi-dual.cfg" if ADK_PACKAGE_GRUB_EFI_X86_64 || ADK_PACKAGE_GRUB_EFI_X86 && ADK_TARGET_DUAL_BOOT
  177. default "genimage-efi.cfg" if ADK_PACKAGE_GRUB_EFI_X86_64 || ADK_PACKAGE_GRUB_EFI_X86
  178. default "genimage-dual.cfg" if ADK_TARGET_DUAL_BOOT
  179. default "genimage.cfg"