Config.in.rootfs 6.0 KB

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