Config.in 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. config BR2_TARGET_ROOTFS_ISO9660
  2. bool "iso image"
  3. depends on (BR2_i386 || BR2_x86_64)
  4. depends on BR2_LINUX_KERNEL
  5. depends on BR2_TARGET_GRUB2 || BR2_TARGET_SYSLINUX_ISOLINUX
  6. select BR2_LINUX_KERNEL_INSTALL_TARGET \
  7. if (!BR2_TARGET_ROOTFS_ISO9660_INITRD && !BR2_TARGET_ROOTFS_INITRAMFS)
  8. help
  9. Build a bootable ISO9660 image. By default, the root
  10. filesystem is directly packed as the ISO9660 filesystem,
  11. which means the root filesystem will be read-only. It
  12. requires ISO9660 filesystem support and CDROM support in the
  13. kernel.
  14. However, if BR2_TARGET_ROOTFS_INITRAMFS or
  15. BR2_TARGET_ROOTFS_ISO9660_INITRD have been enabled, the
  16. ISO9660 filesystem will only contain a kernel image and
  17. optionally an external initrd image. In this case, the
  18. filesystem being in RAM, it will be read/write. No ISO9660
  19. or CDROM support is needed in the kernel.
  20. if BR2_TARGET_ROOTFS_ISO9660
  21. choice
  22. prompt "Bootloader"
  23. config BR2_TARGET_ROOTFS_ISO9660_GRUB2
  24. bool "grub2"
  25. depends on BR2_TARGET_GRUB2
  26. select BR2_TARGET_ROOTFS_ISO9660_BIOS_BOOTLOADER \
  27. if BR2_TARGET_GRUB2_I386_PC
  28. select BR2_TARGET_ROOTFS_ISO9660_EFI_BOOTLOADER \
  29. if (BR2_TARGET_GRUB2_I386_EFI || BR2_TARGET_GRUB2_X86_64_EFI)
  30. help
  31. Use Grub 2 as the bootloader for the ISO9660 image. Make
  32. sure to enable the 'iso9660' module in
  33. BR2_TARGET_GRUB2_BUILTIN_MODULES_PC or
  34. BR2_TARGET_GRUB2_BUILTIN_MODULES_EFI. Use 'cd' as the boot
  35. partition in BR2_TARGET_GRUB2_BOOT_PARTITION= for GRUB on BIOS
  36. or 'set root=(cd0)' in the configuration file passed to
  37. BR2_TARGET_GRUB2_BUILTIN_CONFIG_EFI for GRUB on EFI.
  38. config BR2_TARGET_ROOTFS_ISO9660_ISOLINUX
  39. bool "isolinux"
  40. depends on BR2_TARGET_SYSLINUX_ISOLINUX
  41. select BR2_TARGET_ROOTFS_ISO9660_BIOS_BOOTLOADER
  42. endchoice
  43. config BR2_TARGET_ROOTFS_ISO9660_BIOS_BOOTLOADER
  44. bool
  45. config BR2_TARGET_ROOTFS_ISO9660_EFI_BOOTLOADER
  46. bool
  47. config BR2_TARGET_ROOTFS_ISO9660_BOOT_MENU
  48. string "Boot menu config file"
  49. default "fs/iso9660/grub.cfg" if BR2_TARGET_ROOTFS_ISO9660_GRUB2
  50. default "fs/iso9660/isolinux.cfg" if BR2_TARGET_ROOTFS_ISO9660_ISOLINUX
  51. help
  52. Use this option to provide a custom bootloader configuration
  53. file (grub.cfg for Grub 2, isolinux.cfg for isolinux).
  54. Note that the strings __KERNEL_PATH__ and __INITRD_PATH__
  55. will automatically be replaced by the path to the kernel and
  56. initrd images respectively.
  57. config BR2_TARGET_ROOTFS_ISO9660_INITRD
  58. bool "Use initrd"
  59. default y
  60. select BR2_TARGET_ROOTFS_CPIO
  61. help
  62. Enable this option to have the root filesystem bundled as an
  63. initrd/initramfs rather than directly as the ISO9660
  64. filesystem. With this option enabled, the ISO9660 will only
  65. contain a kernel image, an initrd image (unless an initramfs
  66. linked into the kernel is used) and the bootloader.
  67. config BR2_TARGET_ROOTFS_ISO9660_TRANSPARENT_COMPRESSION
  68. bool "transparent compression"
  69. depends on !BR2_TARGET_ROOTFS_ISO9660_INITRD
  70. depends on !BR2_TARGET_ROOTFS_INITRAMFS
  71. help
  72. Say 'y' to enable use of transparent (de)compression. Files
  73. are stored compressed and will be decompressed on-the-fly
  74. upon access at runtime.
  75. config BR2_TARGET_ROOTFS_ISO9660_HYBRID
  76. bool "Build hybrid image"
  77. depends on BR2_TARGET_ROOTFS_ISO9660_ISOLINUX
  78. help
  79. Enable this option to build an hybrid image, i.e an image
  80. which can either be booted from a CD-ROM or from a device
  81. which BIOS considers a hard disk or ZIP disk, e.g. a USB key
  82. or similar.
  83. endif
  84. comment "iso image needs a Linux kernel and either grub2 or isolinux to be built"
  85. depends on BR2_i386 || BR2_x86_64
  86. depends on !BR2_LINUX_KERNEL || \
  87. !(BR2_TARGET_GRUB2 || BR2_TARGET_SYSLINUX_ISOLINUX)